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

enforcing on each tick

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

    enforcing on each tick

    How can I enforce that Calculate is "on each tick" ? if they are other values like on price change or bar close, have it override that to be "on each tick"

    #2
    Hello NinjaCustomer,

    Thanks for your post.

    In the OnStateChange():

    else if (State == State.Historical)
    {
    if (Calculate != Calculate.OnEachTick)
    {
    Calculate = Calculate.OnEachTick;
    }
    }
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ScottWalsh, Today, 06:52 PM
    3 responses
    18 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    17 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    1 view
    0 likes
    Last Post cre8able  
    Started by Haiasi, Today, 06:53 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by ScottW, Today, 06:09 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X