Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
I'm beginning to not trust my broker's MT4 feed. I'd like to compare this indicator in MT3's charting vs. the MT4. It's very, very simple - can anyone convert it for me? It's VERY good for determining when breakouts are about to occur.
Thank you!
SB
Code:
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Aqua
#property indicator_color2 Aqua
//#property indicator_width1 5
//#property indicator_width2 5
extern int period = 8;
double vftop[];
double vfbot[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
IndicatorBuffers(2);
SetIndexBuffer(0, vfbot);
SetIndexStyle(0, DRAW_ARROW);
SetIndexArrow(0, 117);
SetIndexEmptyValue(0, 0);
SetIndexBuffer(1, vftop);
SetIndexStyle(1, DRAW_ARROW);
SetIndexArrow(1, 117);
SetIndexEmptyValue(1, 0);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int counted_bars=IndicatorCounted();
int i = Bars - counted_bars;
if(counted_bars == 0) i = Bars - period*2;
int j = 0;
double t1, t2;
while(i >= 0)
{
t1 = Low[i];
t2 = High[i];
for(j = i+1; j < i + period; j++)
{
t1 = MathMax(t1, Low[j]);
t2 = MathMin(t2, High[j]);
}
if(t1 <= t2)
{
vftop[i] = t2;
vfbot[i] = t1;
}
i--;
}
//----
return(0);
}
//+------------------------------------------------------------------+
I opened it up in MT4 and it does look like it places dots right before major breakouts. It's seems similar to the Bollinger Squeeze, but a little better.
I opened it up in MT4 and it does look like it places dots right before major breakouts. It's seems similar to the Bollinger Squeeze, but a little better.
you have to be careful with it.
often times it will fire off a nice line of plots and then the market will run up, pause, and reverse right back through that level to make the new real trend. so beware of this when using it. you have to view that level as an area where many positions have been taken, but it isn't always indicative of direction.
Hi scott, programming in old MT3 language isn't so easy if you haven't done it for long time.
But perhaps there is another possibility to check if your broker is worth your mistrust.
When Im right your indicator simply draws arrows to any bar where the highest Low of the previous 8(=periodNumber) bars is equal or lower than the lowest High of this period.
So if you have got a bar of mistrust look at the previous 8 bars. If they are different in MT3 from MT4 you might have reason for mistrust.