Trabajo finalizado
Tarea técnica
Hey, I would like to run EA on muliple symbols and on each symbol can have different preset depending on strategy optimation. It should run on MT5.
==
I am a beginner in mql5, tried to write it on my own so some code exists, but open positions on the next opened bar, and trailing stop is fixed, not ATR based. It calculates SL as % of risk but doesn't work when position size is bigger than balance allows (so no max set);/ I can present the code to the one that decides to write it.
====
Description:
simple strategy that should open trades when EMA1 and EMA2 are in the right order, so basically it will work when the market is trending.
Requirements
Buy postition:
Buy when price touches the faster EMA1 from above AND EMA1 is above slower EMA2
It should open the trade instantly when EMA1 touched, not waiting for candle close
I shoud be able to set up timeframe on which EA operates for particular symbol (usually CFD indexes but might happen to trade forex, so points must be normalised
Short position:
Sell when price touches the faster EMA1 from below and EMA1 is below slower EMA2
It should open the trade instantly when EMA1 touched, not waiting for candle close
I shoud be able to set up timeframe on which EA operates for particular symbol (usually CFD for indexes but might happen to trade forex, so points must be normalised
General:
-Stoploss / TP fixed (different for TP and SL) OR based on ATR (range to define) and it's multiplier so example SL = 2 * ATR(14) and TP = 3 * ATR(14)
-Should have possiblity to define moving SL to BE after x pips in your favor
-Should have true false flag if possible to open only one trade daily or can open multiple if signal appears
-Should have ability to set trading hours
- Position size based on %of equity in risk as set for stop loss OR fixed size
- Shoud have Trailing stop (different for Buy and sell) fixed OR based on ATR (range to define) and it's multiplier so example Trailisng stop for Buy position = 2 * ATR(14) and Trailing stop for Sell = 3 * ATR(14)
- should alllow to set slippage parameter because bounce from the EMA can be fast
I should have possibility to avoid "false signals" . So for Buy position example: when price is above EMA2, and crosses EMA1, and then falls again. So strategy should have a parameter that in this particular day price was above EMA1 (if only one signal daily considered)