Download 3LB On Chart indicators

3lbWhenever we execute a check on this mql file, we have figured out its capability with Meta Trader 4 and MT5 (Metatrader 5) version and maybe, all MT programs will be working to it.

If you find 3LB On Chart as helpful indicator for Forex, then you could rate the indicator and give some comments and views and publish it on the comment section. We will be pleased if you do that. In addition, you can help your fellow Forex traders to try such indicators along with your remarks, ratings, and reviews.

So that you can attain the greatest results Forex traders will first choose just the best indicator that will operate in sync with their projects. With that in mind, we’re also doing our very best to offer you the best experience through the help of this free 3LB On Chart indicator. Furthermore, we are constantly searching for wonderful Forex indicators such as 3LB On Chart. When we have found such indicators, then we’ll post it to our website in order that traders just like you can download and use them.

 

[php]</pre>
//+——————————————————————+
//| Alijaan.mq4 |
//| http://www.4-iran.com |
//| E-Mail:[email protected] |
//+——————————————————————+
#property copyright “Alijaan”
#property link “http://www.sarmaye.com”
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Blue
#property indicator_color2 Red
//—- input parameters
extern int TLB_Start=500;

//—- buffers
double Buffer1[];
double Buffer2[];
//+——————————————————————+
//| Custom indicator initialization function |
//+——————————————————————+
int init()
{
//—- indicators
SetIndexStyle(0,DRAW_HISTOGRAM);
SetIndexBuffer(0,Buffer1);
SetIndexStyle(1,DRAW_HISTOGRAM);
SetIndexBuffer(1,Buffer2);
//—-
return(0);
}
//+——————————————————————+
//| Custom indicator deinitialization function |
//+——————————————————————+
int deinit()
{
//—-

//—-
return(0);
}
//+——————————————————————+
//| Custom indicator iteration function |
//+——————————————————————+
int start()
{
//————————————————————————————–
int i,Counter;
double Line1,Line2,Line3,Line4;
double s1[];
bool First,End,End_Up,End_Down,Trend,Trend_Back;
//————————————————————————————–
i = TLB_Start;
First = True;
Trend_Back = False;
//————————————————————————————–
double t;
int m,s,k;
m=Time[0]+Period()*60-CurTime();
t=m/60.0;
s=m%60;
m=(m-m%60)/60;
t=NormalizeDouble(t,1);
for (k=1;k<=Bars-1;k++) s1[k]=0.0000001;
for (k=1;k<=2;k++) s1[k]=t;
//————————————————————————————–
Buffer2[i] = Open[i];
Buffer1[i] = Close[i];
First = False;
End = False;
Counter = 1;
if (Close[i]>Open[i])
{
Trend = True ;
End_Up = False;
End_Down = True;

}
else
{
Trend = False;
End_Up = True;
End_Down = False;
}
Line1 = Close[i];
Line2 = Open[i];
Line3 = Open[i];
Line4 = Open[i];
i–;

&nbsp;
while(End==False)
{

&nbsp;
//Down Trend—————————————————————————–

while(End_Down==false)
{
if(Trend==False)
{
if(Line1>Close[i])
{
if(Trend_Back == False)
{
Buffer2[i] = Line1;
Buffer1[i] = Close[i];
Line4=Line3;
Line3=Line2;
Line2=Line1;
Line1=Close[i];
Counter++;
i–;
if(i<1)
{
End = True;
End_Up = True;
End_Down = True;
}
}
if(Trend_Back == True)
{
Buffer2[i] = Line2;
Buffer1[i] = Close[i];
Line4=Line1;
Line3=Line1;
Line2 = Line2;
Line1 = Close[i];
Trend_Back = False;
Counter++;
i–;
if(i<1)
{
End = True;
End_Up = True;
End_Down = True;
}
}
}
else
{
if(Close[i]>Line4)
{
Trend = True;
Trend_Back = True;
if(i<1)
{
End = True;
End_Up = True;
End_Down = True;
}
}
else
{
i–;
if(i<1)
{
End = True;
End_Up = True;
End_Down = True;
}
}
}
//if(Open[i]==Close[i])
//{
// i–;
// if(i<1)
// {
// End = True;
// End_Up = True;
// End_Down = True;
// }
//}
}

if(Trend_Back == True)
{
End_Down = True;
End_Up = False;
Counter = 0;
}
}
//————————————————————————————–

&nbsp;

&nbsp;

//Up Trend——————————————————————————
while(End_Up==false)
{
if(Trend==True)
{
if(Line1<Close[i])
{
if(Trend_Back == False)
{
Buffer2[i] = Line1;
Buffer1[i] = Close[i];
Line4=Line3;
Line3=Line2;
Line2=Line1;
Line1=Close[i];
Counter++;
i–;
if(i<1)
{
End = True;
End_Up = True;
End_Down = True;
}
}
if(Trend_Back == True)
{
Buffer2[i] = Line2;
Buffer1[i] = Close[i];
Line4=Line1;
Line3=Line1;
Line2 = Line2;
Line1 = Close[i];
Trend_Back = False;
Counter++;
i–;
if(i<1)
{
End = True;
End_Up = True;
End_Down = True;
}
}
}
else
{
if(Close[i]<Line4)
{
Trend = False;
Trend_Back = True;
if(i<1)
{
End = True;
End_Up = True;
End_Down = True;
}
}
else
{
i–;
if(i<1)
{
End = True;
End_Up = True;
End_Down = True;
}
}
}
//if(Open[i]==Close[i])
//{
// i–;
// if(i<1)
// {
// End = True;
// End_Up = True;
// End_Down = True;
// }
//}
}
if(Trend_Back == True)
{
End_Up = True;
End_Down = False;
Counter = 0;
}

}
//————————————————————————————–

&nbsp;
switch (Counter)
{
case 1 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… For The Next Candle To Confirm||>>>”);
return(0);
break;
case 2 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Open… New Position||>>>”);
return(0);
break;
case 3 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Close… The Old Position||>>>”);
return(0);
break;
case 4 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Open… New Position||>>>”);
return(0);
break;
case 5 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Close… The Old Position||>>>”);
return(0);
break;
case 6 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Open… New Position||>>>”);
return(0);
break;
case 7 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Keep… Your Position||>>>”);
return(0);
break;
case 8 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Close… The Old Position||>>>”);
return(0);
break;
case 9 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Open… New Position||>>>”);
return(0);
break;
case 10 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Keep… Your Position||>>>”);
return(0);
break;
case 11 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Keep… Your Position||>>>”);
return(0);
break;
case 12 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Keep… Your Position||>>>”);
return(0);
break;
case 13 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Close… The Old Position||>>>”);
return(0);
break;
case 14 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 15 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 16 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 17 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 18 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 19 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 20 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 21 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 22 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 23 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 24 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 25 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 26 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 27 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 28 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 29 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 30 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 31 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 32 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 33 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 34 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;
case 35 :
Comment(“Block Number < ” + Counter + ” > —– ” + m + ” minutes ” + s + ” Seconds Left To Bar End —– ” + “Suggestion <<<||Wait… No Suggestion||>>>”);
return(0);
break;

}

&nbsp;

&nbsp;

}
}
//+——————————————————————+

&nbsp;
<pre>[/php]

Click Here to Download

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *