Forum

MQL5 Strategy tester only drawing my objects once yet they are meant to run every new day.

Please help debug this code, I have tried for days and failed. The EA is meant to draw these sessions every day but it only works once when I try it in the strategy tester . When I forward test it seems to work. Where would my error be

How to draw a trendline from price A until price B. But only when price B has a broken the low of price A.

This is my draw function: void DrawSwingLow( datetime time_to){ string objName = "Swing Low " + TimeToString (time); if ( ObjectFind ( 0 ,objName) < 0 ){ ObjectCreate ( 0 ,objName, OBJ_TREND , 0 ,time,candleLowPrice,time_to,candleLowPrice); ObjectSetInteger ( 0

How to find the Highest High and Lowest Low between time A and time B

I am trying to loop through the candles to find the highest high and lowest lowest low between time A and time B. How could I go about doing this in MQL5