工作已完成
指定
I have an RSI expert advisor that opens either buy or sell trades based on chosen RSI settings (overbought, oversold, rsi period, RSI price etc).
I have an RSI indicator that provides signals and alerts on the chart (pictures attached at bottom)
I now need a new option in the EA:
I want the option of using two separate RSI sets of data with two separate inputs (Bullish RSI inputs or Bearish RSI inputs).
If this option is chosen, the EA will need to decide between Bullish RSI inputs or Bearish RSI inputs.
To choose which inputs to use, the EA will use my RSI indicator on a different timeframe and look at the most recent signal. (let's call this "bias function")
If the most recent signal was a buy, then EA uses bullish template. If the most recent signal was sell, then the EA uses bearish template.
The "bias function" will have inputs for RSI and timeframe to choose.
An example scenario:
In the EA options, for the "Bias Function", I choose inputs of 70 30 RSI with 14 periods on the daily chart.
I choose to use two separate RSI sets in the EA options.
I choose Bullish RSI inputs of 80 40 RSI with 8 periods and I choose Bearish RSI inputs of 60 20 RSI with 8 periods.
Using these numbers, let's assume we open the charts and activate the EA.
Let's assume that the "bias function" has identified that the most recent signal on the daily chart is a buy signal.
The EA will automatically choose to use the Bullish RSI inputs to trade with.
Now let's assume, 4 weeks later, that the "bias function" has looked on the daily chart and identified a new signal, a sell signal, it will now change the RSI settings to the Bearish RSI inputs and trade with those.
The EA will need to dynamically change the RSI inputs, based on the signals received from a higher timeframe.
The EA will need to be able to do this with back testing as well.
Source code required.
Thank you