Eccolo:
If Time = 172500 and Rsi[14](close) < 30 then
Buy 1 contract at Market
Endif
If LongOnMarket and Rsi[14](close) >= 70 then
Sell at Market
Endif
Salve
Ho testato questo sistema, pero’ mi acquista solamente una volta, da quando l’RSI e’ sotto i 30. Vorrei facesse acquisti consecutivi giornalieri, uno dopo l’altro fintanto che l’RSI non raggiunge quota 70, x poi vendere il tutto. Si puo’ fare ?
Grazie
Prova questa modifica:
If Time = 172500 and (((Rsi[14](close) < 30) and (abs(Countofposition) = 0)) or ((Rsi[14](close) < 70) and (abs(Countofposition) > 0))) then
Buy 1 contract at Market
Endif
If LongOnMarket and Rsi[14](close) >= 70 then
Sell at Market
Endif