3LineBreak Indicator For MT4
The 3LineBreak Indicator For MT4 paints the candlestick in the price charts so that the traders know where to execute the trades. If the candle is colored in red, you should never buy the pair. On the contrary, when the candles are colored in blue, stop looking for the short trade setups. But use the knowledge of support and resistance level to improve your win rate.
Installing the 3LineBreak Indicator For MT4
After you downloaded the indicator via the form above you need to unzip the zip-file. Then you need to copy the file 3LineBreak.mq4 into the folder MQL4\Indicators of your MT4 installation. After that please restart MT4 and then you will be able to see the indicator in the list of indicators.
Parameters of the 3LineBreak Indicator For MT4
The 3LineBreak Indicator For MT4 has 1 parameters to configure.
extern int Lines_Break = 3;
Buffers of the 3LineBreak Indicator For MT4
The 3LineBreak Indicator For MT4 provides 2 buffers.
SetIndexBuffer(0, HighBuffer);
SetIndexBuffer(1, LowBuffer);
Main Parts Of The Code
int start()
{
int counted_bars = IndicatorCounted(), i, shift;
//---- TODO: add your code here
if(counted_bars == 0)
counted_bars = Lines_Break + 1;
i = (Bars - counted_bars);
//----
for(shift = i; shift gt = 0; shift--)
{
OLDSwing = Swing;
VALUE1 = High[Highest(NULL, 0, MODE_HIGH, Lines_Break, shift + 1)];
VALUE2 = Low[Lowest(NULL, 0, MODE_LOW, Lines_Break, shift + 1)];
if(OLDSwing == 1 && Low[shift] lt VALUE2)
Swing = -1;
if(OLDSwing == -1 && High[shift] gt VALUE1 )
Swing = 1;
if(Swing == 1)
{
HighBuffer[shift] = High[shift];
LowBuffer[shift] = Low[shift];
}
if(Swing == -1)
{
LowBuffer[shift] = High[shift];
HighBuffer[shift] = Low[shift];
}
//----
}
return(0);
}
//+------------------------------------------------------------------+