Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
SMA on Range Bar chart
Collapse
X
-
Tags: None
-
Hello AnotherTrader,
NinjaTrader will calculate the average of the last available bars till the total bars equals or more than the period value. For example on bar 20 it will calculate the average of SMA 20, on the 25th bar it will be the SMA 25 and so on till the total bars reaches 30 or more.
If you like to see the formula on how injaTrader calulates thee SMA you can do so from:- In Control Center menu bar goto Tools>Edit Ninjascript>Indicators...
- In the Indicators dialog select SMA and click on the Ok button.
Please let me know if I can assist you any further.JoydeepNinjaTrader Customer Service
-
Originally posted by NinjaTrader_Joydeep View PostHello AnotherTrader,
NinjaTrader will calculate the average of the last available bars till the total bars equals or more than the period value. For example on bar 20 it will calculate the average of SMA 20, on the 25th bar it will be the SMA 25 and so on till the total bars reaches 30 or more.
If you like to see the formula on how injaTrader calulates thee SMA you can do so from:- In Control Center menu bar goto Tools>Edit Ninjascript>Indicators...
- In the Indicators dialog select SMA and click on the Ok button.
Comment
-
Hello AnotherTrader,
Every indicator has a BarsRequired property. By default it is set to 20. Thus you are seeing the SMA starting from the 20th bar.
You can change the BarsRequired property by editing the NinjaScript code.
Please apply this modified SMA indicator where I have set the BarsRequiredd to 0 (zero). You will be able to see the SMA from the first bar itself.
Attached FilesJoydeepNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by WHICKED, 03-27-2024, 12:33 PM
|
4 responses
41 views
0 likes
|
Last Post Today, 12:28 AM | ||
Started by f.saeidi, Today, 12:12 AM
|
0 responses
3 views
0 likes
|
Last Post
by f.saeidi
Today, 12:12 AM
|
||
Started by Conall, Today, 12:06 AM
|
0 responses
5 views
0 likes
|
Last Post
by Conall
Today, 12:06 AM
|
||
Started by proptradingshop, 03-21-2024, 09:50 AM
|
6 responses
27 views
0 likes
|
Last Post Today, 12:02 AM | ||
Started by mly916, Yesterday, 09:48 PM
|
1 response
12 views
0 likes
|
Last Post Yesterday, 11:54 PM |
Comment