You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to backtest this simple strategy of buying today and selling tomorrow or from n days but I dont know how to code the strategy in this package
strategy=iif(open>lag(open),1,iif(nextday,0,NA))
The above strategy is simple if yesterdays open price is less than todays open price then buy and sell the share next day.
The buy part I am able to code but how should I tell SIT to sell it the next day or after n days?
The text was updated successfully, but these errors were encountered:
I am trying to backtest this simple strategy of buying today and selling tomorrow or from n days but I dont know how to code the strategy in this package
strategy=iif(open>lag(open),1,iif(nextday,0,NA))
The above strategy is simple if yesterdays open price is less than todays open price then buy and sell the share next day.
The buy part I am able to code but how should I tell SIT to sell it the next day or after n days?
The text was updated successfully, but these errors were encountered: