I am trying to close out all positions at 1300 hours Pacific time. This is what I tried. What do I need to change?
isOnePM = currentHour == desiredHour
// Exit all positions if it's 1:00 PM
if (isOnePM)
strategy.close("ExitAll")
I am trying to close out all positions at 1300 hours Pacific time. This is what I tried. What do I need to change?
isOnePM = currentHour == desiredHour
// Exit all positions if it's 1:00 PM
if (isOnePM)
strategy.close("ExitAll")
Copyright © 2021 Jogjafile Inc.