Lavoro terminato
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Specifiche
This EA job is meant to be an update from an EA this was previously programmed. The current EA behavior is very simple. It opens a trade in a direction, and when TP is hit, it closes the trade and reopen another in the same direction. If SL is hit, it reverses the trade direction and does the same. No real strategy or indicator of any kind.
Attached is the screen shot of the current parameters of the EA. The two thing that perhaps needs explaining is “Trade Time Filter”, means only trade in those times of Day (GMT Time). I can set up to 3 different time frames. The other is “Out of Time Take Profit” (this option can be removed), meaning if a trade is opened outside of “Trade Time Filter, then set a TP.
***Removal Notes – I would like these options to be removed from the set-up screen. Whether the actual coding is removed is up to the programmer. The remaining option must still work and must not conflict with added options.
Remove – Out of Time Take Profit
Remove – Take Profit in $
Remove – Stop Loss in $
Change - Rename EA to “Super Trend Marginal”
Add - Enter at X Forward Pip- EA will add another order of the same size in the same direction once the original order is X amount or Greater. If no TP or SL, this can open infinity orders. Each new opened position will have same rules applied to it.
Add - Enter at X Reverse Pip- EA will add another order of the same size in the reverse direction once the original order is X amount or Less. If no TP or SL, this can open infinity orders. Each new opened position can have rules applied to it.
***Comment for below- TP Equity setting means when equity is a certain amount, all open orders will close. For example, if overall Equity is 5 % hirer then original balance, then close all open positions.
Add – Selection: Exit Equity All Pairs / Exit Equity Current Pair.
If Current Pair – EA will need a way to calculate Equity % and Pips per separate pair
Add – Equity Exit Profit in Pips - All Trades will Close at this amount. Amount always positive balance.
Add – Equity Exit Profit in % - All Trades will Close at this amount. Amount always positive balance.
Add - Order Max – The amount of trades allowed open at once (will still follow All or Current Pair Rules)
Add- All orders must display previous order # in the comments section
Add – Must be able to remember/manager previous opened trades if the EA is removed / updated.
Add - EA should send alerts when a trade fails to open an order or close an order. The EA should have some kind of self-verification mechanism.
If the EA fails to close all open orders from the previous cycle, it must continue to try. Until all order are closed, it should not start a new order cycle. However, if it fails to open an order in a cycle, the EA will only alert, but will continue to keep trading.
Behavior:
· If TP and SL are not set, then the EA should open an infinite loop of orders based on “Enter at X Forward” and “Enter at X Reversed”. Each newly open order will be eligible for the rule to apply to it.
· For all orders, whenever TP (if applied) is hit, the EA will open a new order in that same direction and the same size
· When all orders are closed based on Equity TP Amount, a new order will then be opened based on “The Last Opened Order’s Direction” from the previous cycle. Default 5 seconds between last closed order and next “new cycle” entry order.
· Manually closing out a trade will not affect any other active trades. Each open order is independent.
· EA must be able to be visually back tested.