Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding Indicator that calculates on each tick

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

    Adding Indicator that calculates on each tick

    Hi,

    I want several of my WMA indicators to calculate on each tick, not on bar close, how can I do this?

    Every example I see uses close ex: WMA(Close, 5);

    I haven't been able to find it in the ninjascript documentation, thanks!

    #2
    Originally posted by ntcoder256 View Post
    Hi,

    I want several of my WMA indicators to calculate on each tick, not on bar close, how can I do this?

    Every example I see uses close ex: WMA(Close, 5);

    I haven't been able to find it in the ninjascript documentation, thanks!
    Select this link https://ninjatrader.com/support/helpGuides/nt8/, On search , Type 'tick' and read the third option.

    Comment


      #3
      Hello ntcoder256,

      To make indicators use OnEachTick from calling it in a strategy you need to turn on OnEachTick for the strategy. The host script sets the child scripts to the same Calculate setting.

      If your strategy needs to still work OnBarClose you would use OnEachTick but then use IsFirstTickOfBar to simulate OnBarClose logic.


      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      45 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      21 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      31 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X