• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

wait until flat

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

    wait until flat

    Is it possible to hardcode into the ninjascript that the strategy would wait until it is flat before entering a position? That way, if the code is started on another ninjatrader platform that did not have this setting already set, it would still run properly?

    #2
    jg123, there would be no documented NinjaScript method for this task, however in Initialize() you could try working with -

    Code:
    StrategySync = StrategySync.WaitUntilFlat;
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rainbow47, Today, 06:10 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChristopherD  
    Started by oscsoft, Yesterday, 07:07 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by pjsmith, Today, 03:28 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by Leeroy_Jenkins, Today, 06:54 AM
    0 responses
    3 views
    0 likes
    Last Post Leeroy_Jenkins  
    Started by stenberg98, Today, 04:53 AM
    2 responses
    7 views
    0 likes
    Last Post NinjaTrader_Marco  
    Working...
    X