Lavoro terminato
Specifiche
The opening of trades is based on the crossing of 2 EMA's (example 20EMA and 100 EMA) and a pullback after that crossing.
When the 20 EMA crosses up over the 100EMA we will be looking for a buy trade. A trade will only be opened when price retraces and closes below the short EMA and then goes up again and closes above the short EMA without closing below the long EMA for x bars or more. Depending on the Trading logic settings, the SL will be x times current ATR and the TP will be ratio x.
There's also an advanced money management logic where trade sizes can be increased (martingale) after one or more lost trades. This money management I'm already using in other EA's (MQL5) so I can send the MQL5 source code for this so it should help in the development of the EA.
The only new thing in the money management logic is the prop firm stop of trades when x % daily loss has occured. This does not exist yet in my other EA's.
Needed parameters:
General:
-
Magic Number: (Blank for no magic number)
-
Trading pairs: Ex: EURUSD, AUDCAD, GBPJPY,...
-
Max simultaniously open trades: ex: 1, 2, 3...
Risk Management:
-
Use fixed starting lot: Yes / No (No = use risk %)
-
Starting Lot: (ex: 0.01 , 0.05, 1, ...)
-
Starting risk (%): (ex: 0.1% / 0.5% / 1% ...)
-
Max Risk used: (ex: 4% , 5%, 10% , ...)
-
Martingale enabled: Yes/No
-
Martingale factor: (ex: x1.5 / x2 / x3 / ...)
-
Martingale every x losses: (ex: 1 , 2 , 3 ...)
-
Martingale after win: Initial trade / One step back
-
Assymetric Compounding wins enabled: Yes/No
-
Compounding x trades: (ex: 1, 2, 3 ...)
-
Compound factor (ex: x1.5 , x2 , ...)
-
Close trades & stop trading 24h when x % daily loss is reached: (ex: 4.5%)
-
Daily loss calculated from: Equity / Balance
Time Management:
-
Start trading Time: (ex: 03:00)
-
End trading time: (ex: 22:00)
-
Trade on Monday: (Yes / No)
-
Trade on Tuesday: (Yes/No)
-
Trade on Wednesday: (Yes/No)
-
Trade on Thursday: (Yes/No)
-
Trade on Friday: (Yes/No)
-
Close all trades on Friday at: (00:00 = disabled, ex: 22:00 = time to close trades)
==> When close trades on friday is enabled, no new trades should be opened until after the weekend. This is when no holding over the weekend is allowed.
Trade entry management:
-
Slippage: (ex: 0.5) => When entry pice is more than 5 pipettes (0.5 pips) from ask price, do not open the trade.
-
Spread: ex: 0.3 (max spread to open a trade, when higher then 0.3 pips do not open trade)
Trading logic:
-
Short EMA: (ex: 50)
-
Long EMA: (ex: 200)
-
Stop Loss ATR factor: (ex: 2, 3 , ..) => SL will be 2x, 3x,.. current ATR
-
Minimum SL size: (ex: 3) => even if the ATR is only 1 pip and SL ATR factor is 2, the SL will be set to a minimum of 3 pips.
-
Take Profit RR: (ex: 1 , 1.5 , 2 , ...) => Risk Reward factor
-
Max. retracement to Long EMA: (ex: 0, 1, 2 ..)