Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SMA default is/isn't onbarupdate=false??

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

    SMA default is/isn't onbarupdate=false??

    Hi - just wondering if when using the NT8 supplied SMA/Simple Moving Average indicator, what is the default value for onbarupdate? I'm trying to tune some code for efficiency and wanna check how this stock indicator was setup. I didn't find anything in the code, but I'm not a C# coder, so am unsure...
    Last edited by AMATX; 02-13-2020, 10:47 AM.

    #2
    Hello AMATX ,

    Thank you for the post.

    When you say the default value for OnBarUpdate, do you mean what the default Calculation mode is? For example Calculate.OnBarClose or OnEachTick?

    The default for the SMA is OnBarClose. This is the case if it is not specified in the scripts code as well.

    I look forward to being of further assistance.

    Comment


      #3
      Ok, I wanted to know what the default is and it appears to be OnBarClose, which is what I'd expect.

      I did not know that was the default for ALL scripts, too, so will keep that in mind when browsing scripts and occasionally doing a bit of coding, as well.

      Thx for quick response...

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      68 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      151 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      162 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      100 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      288 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X