What is wrong with this code?
I want to have an alert when price is below previous candle's low or price is above previous candle's high, but i get the alert way to late.
I want to have an alert when price is below previous candle's low or price is above previous candle's high, but i get the alert way to late.
Inserted Code
if (Open[1] < Close[1]) { if ((Bid < Low[1]) || (LowFlag=false)) { Alert ("LowFlag is set: ",Symbol()+" "+Period()+ DoubleToStr(Bid,Digits)); LowFlag = true; } } if (Open[1] > Close[1]) { if ((Bid > High[1]) || (HighFlag=false)) { Alert ("HighFlag is set: ",Symbol()+" "+Period()+ DoubleToStr(Bid,Digits)); HighFlag = true; } } // End - if Open
Blindly following others will make you blind!