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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      91 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      137 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      121 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      72 views
      0 likes
      Last Post PaulMohn  
      Working...
      X