Tâche terminée
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Spécifications
Generics:
Option to allow short/long trade (or both - default)
Show side panel - true /false:
- Lot
- Spread
- Magic Number
- balance
- Equity
- Free Margin
- Used Margin
- Open Orders
TOP - Two butons - Close Buys (with value)/Close Sells ( With Value)
Top Show EA Name - True False
EA Name
Equity Stop Loss: true/false
value = %
Stop Loss: True/false
Value of stop loss : X*ATR
Trailing SL: True/ false
Trailing stop start:
Trailing stop step:
Take profit - X*ATR
Lot size:
Tme frame - the one where EA is atached
When to open orders -
Max spread
Max slipage
Open buy order if the close of last candle is Higher than the High of previous candle ( IF D1, GMT+2, for my broker, winter time)
This will happens allways even if there are open trades in same direction, so we can have multiple trades in one direction
Open sell order if the close of last candle is Lower than the Low of previous candle ( IF D1 GMT+2, for my broker, winter time)
This will happens allways even if there are open trades in same direction, so we can have multiple trades in one direction.
If last candle doesn´t meet one of this conditions nothing is done
IF we have one or more buytrades running, and the last candle close is Lower Than the Low of previous candle, all long trades are closed, and one short is open.
IF we have one or more selltrades running, and the last candle close is Higher Than the High of previous candle, all short trades are closed, and one long is open.
This rules override what we may have about sl and tp.
Ma filter - True/ false
a)
conditions to open a
short trade, verified at the open of next candle - the tf is that of the graph where EA is atached:
1 - EMA 5 is below EMA11
2- EMA 5 and EMA 11, are below EMA21
3 - Price is below EMA21
4 - The EMA5 slope is negative
This conditions are only to open trade and will be check each time a trade have price action signal to open ( if this filter is activated ofc)
b) conditions to open a long trade, verified at the open of next candle - the tf is that of the graph where EA is atached:
1 - EMA 5 is Above EMA11
2- EMA 5 and EMA 11, are above EMA21
3 - Price is above EMA21
4 - The EMA5 slope is positive
This conditions are only checked to open the trade and will be check each time a trade have price action signal to open ( if this filter is activated ofc)
Basically that´s what i need
Thanks for your attention