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

Indicator look-back influences new session

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

    Indicator look-back influences new session

    My NinjaScript strategy requires a look-back period prior to the beginning of a new session. However, I only wish the buys, sells, and profit targets to apply to the NEW session. As it is currently, I get carryovers from the previous session which messes up my strategy. Any suggestions?

    #2
    On your prior session close out any position, cancel any working order when that session is over. You can check sessions through Bars.SessionBreak. Note that anything you do with this will result in cleaning up your strategy at the first few bars of the new session. If you need it cleaned up before then you will need to come up with another way to know the old session is over.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by memonic, Yesterday, 01:23 PM
    2 responses
    11 views
    0 likes
    Last Post memonic
    by memonic
     
    Started by merc410, Today, 03:41 AM
    2 responses
    10 views
    0 likes
    Last Post merc410
    by merc410
     
    Started by sugalt, 04-30-2024, 04:02 AM
    2 responses
    13 views
    0 likes
    Last Post sugalt
    by sugalt
     
    Started by Ndakotan1313, 03-14-2024, 05:02 PM
    2 responses
    63 views
    0 likes
    Last Post blaise_code  
    Started by claxxical, 05-30-2017, 12:30 PM
    37 responses
    4,462 views
    0 likes
    Last Post Padan
    by Padan
     
    Working...
    X