As I have no coding ability whatsoever I took apart other EAs I ran across and pieced this one together. Unfortunately it is not exactly what I wanted. It works but I want to get it to work better. It opens and closes orders but instead of doing it all on a switch of the #mtf_dmi~ indicator, it will close an order on a switch and then open another order on the next candle. Basically I just need the EA to do an order swap on the same candle as the switch in color of the #mtf_dmi~.
See pictures for examples but basically it is taking 2 candles to get an order closed and a new one open and I want it to just take 1 candle.
Anyone with a clue on how to program an order swap it would be much appreciated.
All files attached.
See pictures for examples but basically it is taking 2 candles to get an order closed and a new one open and I want it to just take 1 candle.
Anyone with a clue on how to program an order swap it would be much appreciated.
All files attached.
Attached File(s)