Forum

Question: Loops and Shifting

Hi: I am trying to write a strategy that uses a precondition and a current condition to enter a trade. I use a simple trend-following indicator to enter the trade but do not want it to trigger unless the precondition was true. I thought that I could run a loop for the precondition using bar shift

Help Please (sleep or alternative)

Hello all, thank you in advance I am having a whole lot of trouble adding a sleep command or delay in my EA between time the last position was closed until the next one is opened. I am very inexperienced at MQL4 but have taken advantage of the many resources here and all over the net about coding