Forum

Creating an EA that opens trades only upon an indicator placing an arrow on the current bar or the previous bar

Is it possible for an EA to open a trade when an indicator places an arrow on the current candle or a previous candle? If yes, how

Prevent EA from ppening another trade once it closes

I have an EA which I have developed to trade on reversal using EMAs and other indicators. The EA works fine, but on a M15 chart, it opens a trade after it closes one because the trade on that candle is still valid. I want it to not open any more trades until a the next reversal. How can I implement

Accessing Opened orders in the order in which they were opened

Hi, I am still trying to understand MQl4, so my question may be basic. My EA has ability of opening upto 10 orders, and I need to place a trailing stop to all trades depending on the order in which they were opened. Looking at topics like https://www.mql5.com/en/forum/191264 , I note that the orders