Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Session Close in Strategy

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

    Session Close in Strategy

    Session close will sometimes occur at different times of the day when there is a holiday coming up. How can the strategy automatically know that a session close has occurred? I'm exiting positions at the close of session and I want to reset all variables. I'm using the Ninjatrader 8 strategy builder.

    #2
    Hello ronaldgreene828,

    Thanks for your post.

    In NinjaTrader8 if you are using the trading hours assigned to the instrument then the strategy will correctly work with the trading hours in terms of the session close.

    In the strategy builder, you could access in the conditions builder Misc>First bar of session = true as a trigger to reset your variables.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by junkone, 04-21-2024, 07:17 AM
    9 responses
    67 views
    0 likes
    Last Post jeronymite  
    Started by trilliantrader, 04-18-2024, 08:16 AM
    4 responses
    18 views
    0 likes
    Last Post trilliantrader  
    Started by mgco4you, Today, 09:46 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by wzgy0920, Today, 09:53 PM
    0 responses
    10 views
    0 likes
    Last Post wzgy0920  
    Started by Rapine Heihei, Today, 08:19 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X