Thank you very much for offering to code ea’s, very generous of you to give your time and expertise, I have been
trying to learn but afraid am not very good at coding.
I am trying to develop a strategy but need ea coding for the following strategy, Ineed to test all variables to optimise:
I want to Buy when the PRICE is ABOVE the moving average and RSI is below 30. (variable)(user defined)
I want to Sell when PRICE is BELOW the moving average and RSI is above 80. (variable)(user defined)
Condition should be:
FOR BUY = The CLOSING price of the crossing candle has to be ABOVE the MA and the OPENING price of the NEXT
candle also has to be ABOVE the MA and the RSI below 30 then buy at open of this candle.
FOR SELL = The CLOSING price of the crossing candle has to be BELOW the MA and the OPENING price of the next
candle also has to be BELOW the MA and the RSI above 80 then SELL at open of this candle.
BUY or Sell ONLY on first candle AFTER crossover not/never in between (except when already in a trade
and is only adding to a trade)
Stop loss = user defined
Trailing stop = user defined
Take profit for a buy = Exit when the candle closes below the MA and the RSI is above 80 for BUY (variable)
Take profit for a sell = Exit when the candle closes above the MA and the RSI is below 30 for SELL (variable)
If at all possible I want to be able to add to a winning trade.
Add 1 lot when in profit by 20-25 pips or less (variable) then Add 1 more lot when in profit by a further
20-25 pips profit up to maximum of 4 lots or (variable)
I hope you can do this for me much appreciated