How to keep a running total of profit/loss once EA has started
-
Can anyone give me pointers on how to include a running total of the Profit (or Loss) from several trades once an EA has started, with a view to closing the trading when a specific profit total has been reached (from more than one trade).
-
https://fxdreema.com/shared/yRzNNgC3b
This will show profit from current trades. Combine it with loop "for each closed trade" to find total profit.
Remember to reset the variable totalprofit before beginning new calculations
-
Thanks for your reply. Much appreciated.