Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    JesseNinjaTrader Customer Service

    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 llanqui, Today, 11:10 AM
      0 responses
      7 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by llanqui, Today, 10:29 AM
      0 responses
      9 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by llanqui, Today, 08:32 AM
      1 response
      16 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by lollers, Yesterday, 03:26 AM
      1 response
      54 views
      0 likes
      Last Post lollers
      by lollers
       
      Started by Salahinho99, 05-05-2024, 04:13 AM
      7 responses
      63 views
      0 likes
      Last Post Salahinho99  
      Working...
      X