Hello
Attached is a ea which constantly tracks the Floating Accountprofit function to track of a fixed profit entered in settings of the ea,
to close all orders as soon as it is reached.
There is also one around which is based on Symbols.
But i think it will be lot better if we have one which tracks/summarizes the net profit and loss of Orders with same magic number only and closes them all after a fixed profit is reached, instead of closing orders initiated manually or of other EA's.
This way by alotting same magic number to a set of trades, be it different symbol, same symbol, different type, etc etc, We can Use this Close all feature based on profit to various strategies!
Can Someone explain on the code how to select net profit/loss of a number of trades having same magic number or provide a solution !
TIA
Attached is a ea which constantly tracks the Floating Accountprofit function to track of a fixed profit entered in settings of the ea,
to close all orders as soon as it is reached.
There is also one around which is based on Symbols.
But i think it will be lot better if we have one which tracks/summarizes the net profit and loss of Orders with same magic number only and closes them all after a fixed profit is reached, instead of closing orders initiated manually or of other EA's.
This way by alotting same magic number to a set of trades, be it different symbol, same symbol, different type, etc etc, We can Use this Close all feature based on profit to various strategies!
Can Someone explain on the code how to select net profit/loss of a number of trades having same magic number or provide a solution !
TIA
Attached File(s)
Close All OPEN orders after SET AccountPROFIT EA.mq4
3 KB
|
1,672 downloads
100 Fold Challenge->Interested? ->https://www.forexfactory.com/thread/32152