Disliked{quote} sorry please take your time. Thank You in advance. Kind regards PennyIgnored
I think I have finally got this to work correctly!
This Expert Advisor manages trades.
The idea is to close any position at a specified percentage of Take Profit and/or Stop Loss.
Obviously, this can be done only when the position already has a Stop Loss order and/or Take Profit order.
By default both options are set to 80 = 80%.
It can Manage All Symbols Positions - in the default setting, or
it can Manage Chart Symbol Positions - option to select.
The EA will plot the Close SL Percent Line and/or the Close TP Percent Line when Display Lines On Chart? = Yes.
Those lines are customizable for colors, style, width, and in background.
The Close Percent Lines will be visible on all open charts of the given Symbol.
If You want the descriptions to be visible on the Lines, You must select Show object descriptions in Chart properties.
Only one instance of the EA is neccessary for the whole MT4 platform.
The EA can manage up to 128 open charts, if MT4 allows this number.
By default, the EA plays the OK sound when a position is closed - option to switch off.
The EA also prints a message in the log when a position is closed - always.
The EA can also show a PopUp alert when a position is closed - No by default, option to switch on.
I have spent a lot of hours on this one, making sure everything works as expected.
I will not provide the source code!
Attached File(s)
ClosePosition@PercentOfProfit_Loss_EA.ex4
40 KB
|
91 downloads
If you're looking for the Holy Grail indicator - STOP!
3