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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      72 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      143 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      76 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      47 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      51 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X