Hello everybody,
I’m trying to write a backtest code in which a sell order will be given when rsi crosses over 70.
The limit sell price should be set to the close price of the day prior to the rsi crossed over 70.
Any ideas?
JSParticipant
Senior
TimeFrame (1 day, UpdateOnClose)
MyLimit = Close[1]
TimeFrame (10 minutes, UpdateOnClose)
If RSI crosses Over 70 then
SellShort 1 contract at MyLimit Limit
EndIf
Hi @assafn
Maybe this is a start…