i have created an indicator which use lines to send notification when crossed with specific conditions. the indicator alerts me for 4 different type of crossing. It's working for 3 of them, but this one never trigger, can't find why, if someone could give me a hand it would be great , here is the code :
if (iOpen(NULL,0,1) <= line && iClose(NULL,0,1) > line && Linecolor == Purple && BUYCOLOR != DarkSlateGray)
if (Time0 != Time)
if( ObjectFind("BSL") != -1 )
if( ObjectFind("BUY") != -1 )
if( ObjectFind("B") != -1 )
Alert(Symbol() + "Push Thru");
SendMail("Push Thru", "Push Thru");
SendNotification( Symbol() + "Push Thru");
Time0 = Time;
Linecolor, line and BUYCOLOR are already defined and work on the others functions, so it doesn't come from that.
As you can see it's suppose to change some lines color and send alerts. The other functions are built the same way and work.