TP and SL modified in loop
-
hi, i made a simple EA with grid. Every time i start the EA, a grid of pending orders is made. Then with the TP and SL that i assign in a Constant (input), the EA is modifying the TP and SL repeatedly and makes the EA looks slow. What am i doing wrong? please help me
this is my project https://fxdreema.com/shared/TNOgIo1pd
-
@yogajangkung You are combining both 'once per bar' and 'once per day' blocks on the same tree branch. What do you exactly need?
-
i need once per bar for the horizontal line draws the highest/lowest close price and i need the once per day so the pending order grid just open once for a day
-
@yogajangkung But what is supposed to happen first? Lines to be drawn maybe? Additionally, I do not recommend to over burden the EA witj objects. Why not storing the values into variables and then let the EA to calculate if price is above/below any of them?