Hi All,
Here is the trade management EA I made up for scalping with. It allows for easy modifying of an orders SL and TP by drag and drop on the chart, as well as closing partial amounts of a position when a certain level is hit. It also facilitates hidden SL and TP from the brøker's server.
The rooicol - Manage Orders EA goes in your experts folder.
Inputs:
ModifySLTPActive - This toggles whether or not it will modify the SL and TP orders or not
EACloseSLActive - This toggles whether it will close out trades by market order (True) or by SL order (False) on the stop side.
EACloseTPActive - This toggles whether it will close out trades by market order (True) or by TP order (False) on the limit side.
EAClosePartialActive - This toggles whether or not it will close partial amounts of trades at defined levels.
ExceptMagicNumber - This is just if you want to exclude it from running on any specific trades, but want it running on others
Distance - This is the number of points the EA will close out a trade before the SL or TP order if EACloseSLActive or EACloseTPActive are set to true.
For the partial close feature, drag the "Manage Orders: Arrow Close Partial" chart object to the price you want to close part of the trade out, set the object description to the percentage of the order's lots you want to close at that price, default is 66%.
You can only run it on one chart for each instrument at a time, otherwise the order modify commands will conflict with each other.
You must create a new folder in your experts/files/ directory called "Execution Log" for the expert write the executions to log file in.
Here is the trade management EA I made up for scalping with. It allows for easy modifying of an orders SL and TP by drag and drop on the chart, as well as closing partial amounts of a position when a certain level is hit. It also facilitates hidden SL and TP from the brøker's server.
The rooicol - Manage Orders EA goes in your experts folder.
Inputs:
ModifySLTPActive - This toggles whether or not it will modify the SL and TP orders or not
EACloseSLActive - This toggles whether it will close out trades by market order (True) or by SL order (False) on the stop side.
EACloseTPActive - This toggles whether it will close out trades by market order (True) or by TP order (False) on the limit side.
EAClosePartialActive - This toggles whether or not it will close partial amounts of trades at defined levels.
ExceptMagicNumber - This is just if you want to exclude it from running on any specific trades, but want it running on others
Distance - This is the number of points the EA will close out a trade before the SL or TP order if EACloseSLActive or EACloseTPActive are set to true.
For the partial close feature, drag the "Manage Orders: Arrow Close Partial" chart object to the price you want to close part of the trade out, set the object description to the percentage of the order's lots you want to close at that price, default is 66%.
You can only run it on one chart for each instrument at a time, otherwise the order modify commands will conflict with each other.
You must create a new folder in your experts/files/ directory called "Execution Log" for the expert write the executions to log file in.
Attached File(s)
rooicol - Manage Orders.ex4
13 KB
|
3,699 downloads
|
Uploaded May 12, 2012 5:41am