Auftrag beendet
Spezifikation
MT 5 – EA Brief (Heikin Ashi Smoothened – Multiple Settings) 4 Aug 2025
Trading Platform
The Expert advisor will be used to trade Deriv.com markets and more specifically Crash and Boom markets. Trading is via MT5 trading platform.
Indicator
Only one indicator being Heiken Ashi Smoothed (HAS) (please note that this is a variation of the Heiken Ashi that comes standard with most trading platforms). Attached is the code for this indicator.
Settings for Heikin Ashi Smoothed is
Smoothing Period = 10
Smoothing Method = Linear Weighted
T3 Volume Factor = Not Applicable – Did not select T3
T3 Calculation Mode - Not Applicable – Did not select T3
Use Sorted Values = False
Use Better Formula = False
Bullish Candle Colour = Blue
Bearish Candle Colour = Crimson
Value of Accuracy in Data Window = 5
Colour settings are set to blue and red (Crimson) with blue indicating a bull / buy trend and red indicating a bear / sell trend.
Timeframes
I trade all timeframes, from 1min up to 1d (daily).
Buy Signal
Buy signal will be a combination of the following:
· Buy when HAS indicator change from red to blue. Thus, buy signal will be at the first blue bar after a red bar. For Example – let’s assume the timeframe is 5 min.
· The HAS indicator for a higher timeframe is also blue. For Example, let’s assume this is the 15 min timeframe. This will not be the timeframe that the trading platform will be set to (which is 5 min in this example). Let’s call this filter 1
· The HAS indicator for a higher timeframe is also blue. For example, the 1 hour timeframe. This will not be the timeframe that the trading platform is set to (which is 5 min in this example). Let’s call this filter 2
The logic behind this is to look at a higher timeframe, then at an intermediate timeframe and then at the lowest timeframe. If they all three provide a buy signal, then only a buy will occur. Please note that the first time that all 3 time frames are blue (buy signal), a buy should be executed. This might result in the reality that it might not be the first blue after a red for the lowest timeframe (in this example 5 min timeframe)
For as long as the two upper timeframes (Filter 1 and filter 2) remains blue, there will then be a buy signal every time the lowest timeframe (5 min in this example) turn from red to blue.
I would like to select the time frame for the two upper timeframe (15 min and 1 hour in this example) and would also like to be able to switch one or both filters on or off. The selection of the lowest timeframe will be done attaching the Expert Advisor to a chart that is set to the required timeframe.
Observation = Deriv.com’s Crash & Boom markets have sudden spikes. During a spike, trades are not implemented / closed and only occurs after a spike. I am ok with this.
Sell Signal
Sell signal is the inverse / opposite of the buy signal. Description as above but swap the word blue for red and red for blue.
Take Profit
Take profit will be as per below. I would like to enable or disengage options as part of the input parameters.
· Option 1 – take profit on each open trade on an “z” amount of pips with “z” being an input parameter. This is like the standard take profit setting that is available on MT5.
· Option 2 – Take profit when all open trades have achieved an average pip profit of “y” pips with “y” being an input parameter. For example, there are 7 open trades and “y” is set at 50 pips. Thus take profit will be when the overall pip profit of all open trades are 350 pips. This might mean that some open trades are closed at a loss, but the remainder will be in profit ensuring a total of 350 pip profit.
· Option 3 – Take profit occurs when all open trades add up to a pip profit of “x” with “x” being an input parameter. This is similar to option 2 above with the difference that the take profit occurs on a fixed amount of pips regardless of the quantity of open trades. For example, “x” is set at 150 pips. Take profit will then occur when the sum total of all open buy and sell trades equates to 150 pip profit (regardless of the quantity of open trades)
Stop Loss
Stop Loss will be a selection or combination of the below options. I would like to enable or disengage the individual options as part of the input parameters. This should also allow me to select no stop loss (by disengaging all options).
· Option 1 – Stop loss on each open trade on an “w” quantity of pips with “w” being an input parameter. This is like the standard stop loss setting that is available on MT5.
· Option 2 – Stop loss is set on a trailing stop like the standard option available om MT5. Trailing stop will be at “v” pips with “v” being an input parameter. Stop loss will be applicable for each individual trade (and not combined with other trades)
Please take note that the input parameters (v, w, x, y & z) are unique to each option.
Single vs Multiple Trades
Please insert an option whereby it can be selected to only have 1 open trade at any given time. In this scenario, all other buy / sell signals will be ignored until the open trade is closed. The next buy / sell signal (after previous trade is closed) will then open a new trade. I would like to switch this function on / off allowing a single trade at a time or multiple trades to be open at the same time.
Long Only and Short Only
Please include a function that will allow me to select long / buy trades only or short / sell trades only. This will allow me to trade market:
· Long / buy trades only
· Short / sell trades only
· Buy and sell trades (by not implementing above)
Input Parameters & Requirements
· Magic Number – To allow me to trade more than one market. I will run this EA on multiple charts on the same trading account. It is important that the EA recognises that it should buy, sell and take profit on a chart-by-chart basis and keep calculations separate from other charts.
· To select the trading time frame (from 1min to daily) – This will be achieved by linking the EA to the relevant chart and setting the chart to the required timeframe.
· To select higher timeframes (filter 1 and filter 2). I also would like to switch each filter off if I don’t use one or both.
· To select between the options for take profit and stop loss as detailed above. I would like to be able to select all combinations
· To select the input parameters v, w, x, y & z as detailed above.
· To select the lot size.
· Trading will occur on MT5 Trading platform (Deriv.com)
· Allow for single vs multiple open trades at any given time.
· Allow for long / short trades only or both directions (as per above explanation)
