仕事が完了した
指定
Need an EA based from the strategy discussed in this YT video - https://www.youtube.com/watch?v=nmffSjdZbWQ
+ some modifications/notes
-
Multiple EMAs - 8, 21, 50 and 200. Only 200 is enabled by default but the rest can be individually toggled by the user. For instance, if both 50-EMA and 200-EMA are enabled, the EA must check if the trend is the same for both 50 and 200 EMA. The idea is to have fanned-out EMAs to confirm a trend (see https://www.youtube.com/watch?v=zhEukjCzXwM&t=230s for more info)
-
Checking if the previous x candles are bullish (x white soldiers - for a long position) or bearish (x black crows - for short). This flag can be enabled/disabled via user option. Values are 0, 1, 2, 3. Examples.
-
If 0, then disabled
-
If 1 - For a buy trade, 1 previous candle should be bullish. Same logic for sell trade.
-
If 2 - For a buy trade, 2 previous candles should be bullish. Closing price of candle [1] should be higher than the closing price of candle[2]. Same logic for sell trade.
-
If3 - For a buy trade, 3 previous candles should be bullish. Closing price of candle [1] should be higher than the closing price of candle[2]. Closing price of candle [2] should be higher than the closing price of candle[3]. Same logic for sell trade.
-
Candle (used for checking the previous item) - can be a regular candle or Heiken Ashi candle. Default to regular candles. This should be user configurable as well.
-
Other user options:
-
mode: trade (auto trade) or signal (arrow or icon on chart, sound alert, or via push notification)
-
money management:
-
volume: user input, default to 0.01
-
TP level
-
Risk/Reward: 1:1, 1:2, 1:3, 3:1, 2:1, default to 1:2
-
option to TP half of volume if TP target is reached (if volume is > 0.01), then adjust TP to x pips (another user-configurable option)
-
trailing stop option/flag and amount if #3 above is enabled
-
news trading - e.g. disable trading x number of hours before NFP (or any high impact news) until x number of hours after - if this is possible. Open position(s), if profitable will be closed instantly (add comment). If position is at a loss, just continue unless condition in next item (#6) is met.
-
toggle on/off to prematurely close position if trend shifts to the opposite direction (multiple EMAs)
-
number of concurrent trades allowed. default to 1. Obviously, if multiple instances of EA are run on different symbols, this constraint should be applied for each symbol.
-
other standard options like magic number, comment, etc
-
(addendum) debug mode - print important data in debug window
-
(addendum) testdebug mode - When in the strategy testing window, pause test before a trade/signal is executed (using dll file). See https://www.mql5.com/en/forum/270837. Since DLL is not allowed in VPN, code should still work by just commenting out the #import line and recompiling.
Developer to provide source code. Hopefully optimized (fast), with comments and clean coding (segregate tasks to small logical functions instead of bundling everything in 1 giant function) so EA can be conveniently updated later.
Obviously, I will need to test the final product. My preferences are the major forex pairs and 1M-15M time frames.
Please let me know if these are feasible, or if you have questions/concerns.