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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      80 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X