Thanks!
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!
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
NinjaTrader
Moving Average calculated on candle mean
Collapse
X
-
Moving Average calculated on candle mean
Hi there, Is there an existing indicator, or a variable that can be modified to make a SMA that instead of calculating the mean using the close, calculates the mean using the mean of each candle involved? (when I said the mean of each candle I refer to the average between the hight and the low of each candle)
Thanks!Tags: None
-
Hello Joaqvil,
Thank you for your post.
You could always change the input series for the SMA to something other than the close price; the different price types for the data series on the chart include Close, High, Low, Median, Open, Typical, and Weighted. I am not sure if one of these options is calculated in the same way that you have in mind for the "average" of a candle. For example, typical price is equal to (High + Low + Close) / 3. For more information about changing an indicator's input series, please see the "Indicator Input Series" section at the following link:
If you are working with the SMA programmatically, you would just need to refer to the desired input series within your syntax:
Please let me know if I may be of further assistance.Emily C.NinjaTrader Customer Service
- Likes 1
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by PhillT, 04-19-2024, 02:16 PM
|
4 responses
31 views
0 likes
|
Last Post
by PhillT
Today, 04:24 PM
|
||
Started by ageeholdings, 05-01-2024, 05:22 AM
|
5 responses
36 views
0 likes
|
Last Post
by ageeholdings
Today, 03:21 PM
|
||
Started by reynoldsn, Today, 02:34 PM
|
0 responses
10 views
0 likes
|
Last Post
by reynoldsn
Today, 02:34 PM
|
||
Started by nightstalker, Today, 02:05 PM
|
0 responses
17 views
0 likes
|
Last Post
by nightstalker
Today, 02:05 PM
|
||
Started by llanqui, Yesterday, 09:59 AM
|
8 responses
30 views
0 likes
|
Last Post
by llanqui
Today, 01:57 PM
|
Comment