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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    31 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, Yesterday, 02:41 AM
    0 responses
    14 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    22 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    34 views
    0 likes
    Last Post CarlTrading  
    Working...
    X