Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NOOB Best Practice Q:How to run a strategy

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

    NOOB Best Practice Q:How to run a strategy

    I have a strategy that run's between 7 am and 2 pm. Originally, not thinking I simply went to the Strategies Tab, Right Click, New Strategy, pulled up my strat and hit start. It didn't automatically pull up a chart with the indicators on it so I stopped the strategy.

    I then pulled up a chart of the product and right clicked on the chart and chose the strategy from in there. Unfortunately there wasn't a Time filter so the strategy traded overnight.

    I then pulled up a chart, set the chart to display 7 am to 2 pm, right clicked and ran the strategy. I did this before 7 am and because it ran a quick backtest and found it needed to buy it immediately bought, despite the time constraints.

    I am wondering what the best practice is for starting and stopping a strategy each day, especially one with time constraints.

    Thanks

    Shiptastic

    #2
    Hello,


    >>I have a strategy that run's between 7 am and 2 pm. Originally, not thinking I simply went to the Strategies Tab, Right Click, New Strategy, pulled up my strat and hit start. It didn't automatically pull up a chart with the indicators on it so I stopped the strategy.

    This is expected behavior, it trades without a chart if you use the Strategy tab. This link will help:


    >>I then pulled up a chart of the product and right clicked on the chart and chose the strategy from in there. Unfortunately there wasn't a Time filter so the strategy traded overnight.

    Strategies run on charts run off the session times. Please right click the chart>Properties and change the session begins and ends times.

    >>I then pulled up a chart, set the chart to display 7 am to 2 pm, right clicked and ran the strategy. I did this before 7 am and because it ran a quick backtest and found it needed to buy it immediately bought, despite the time constraints.

    To change this go to Tools>Options>Strategy tab>NinjaScript tab and check Wait until flat before executing live.

    >>I am wondering what the best practice is for starting and stopping a strategy each day, especially one with time constraints.

    Please see above and this link if you are a programmer:
    DenNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    342 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    223 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    197 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    288 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    245 views
    0 likes
    Last Post CarlTrading  
    Working...
    X