Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
SMA default is/isn't onbarupdate=false??
Collapse
X
-
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.Tags: None
-
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.
-
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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
648 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
369 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
572 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment