• 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 priceisking, Today, 12:51 PM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by chartish, Today, 10:33 AM
    3 responses
    21 views
    0 likes
    Last Post chartish  
    Started by casabella, Today, 11:51 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by Johnny, Today, 11:42 AM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_Jermaine  
    Started by habibalex, Today, 09:03 AM
    2 responses
    14 views
    0 likes
    Last Post sledge
    by sledge
     
    Working...
    X