Announcement

Collapse
No announcement yet.

Wizard Command Help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wizard Command Help

    I need help putting in the commands in the backtester that allow me to tell the formula wizard to sell stock if long after a certain amount of time. And commands that intstruct the program to closeout position at the market close.

    The commands I have been trying include:

    For Closeout at Market Close
    If:
    strategy is long = true
    get hour = 16
    get minute = 00

    Then:
    strategy is sell

    For Closeout after Certain Time
    If:
    Strategy is long = true
    get minute() > get minute (-10) === for example, 10 minutes

    Then:
    strategy is sell

    I appreciate any help that I can get, thanks.
Working...
X