I have played around with the optimisation previously and its worked fine but I am now unable to get any different results. Very basic code and strategy but first time playing around with this all, so slowly learning.
I am trying to change the c1 and c2 so that it tests different RSI levels. Have even tried entering into optimisation as the indicator1 and 2 for the lable in program.
Secondly I have also tried testing the optimisation for the Starting and Adding variables for buying different cash amounts of shares. Again, still same gain and % on each variables result.
//If no position and RSI goes below 30 then BUY "starting" worth of shares
IFc1ANDNotLongOnMarketTHEN
BUYstartingCASHATMARKET
ENDIF
//If in a long position and the last trade put on is more than (daystradeopen) days old and RSI has been below 30 for "test" consecutive days then buy "Adding" more shares
To test RSI level replace 30 and 70 with x1 and x2, or whatever name you prefer, then in the variable form enter them assigning a start, end and a step value for each one of them, then activate walk forward, then start backtest.
To test RSI level replace 30 and 70 with x1 and x2, or whatever name you prefer, then in the variable form enter them assigning a start, end and a step value for each one of them, then activate walk forward, then start backtest.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.