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
MR
Collapse
X
-
Hello brucegale69,
Thanks for your post and welcome to the NinjaTrader forums!
In NinjaTrader7 most indicators, by default, are run with CalculateOnBarClose = true which means that the indicator is calculated when the current bar closes (finishes) so it would not adjust "real time" while the bar is forming until the last tick of the bar.
To provide a real-time response while the bar is forming, in the indicator panel of the selected indicator, you can change the CalculateOnBarClose from true to false. This setting of false will update the indicator on every incoming tick. This mode does use more of your CPU resources and should be used when needed and is why it is not set this way by default.
Using an SMA period of 1 set to CalculateOnBarClose = false will be the current price. You can also change the "input series" in the indicator panel to change from the default "Close" data series to "High, Low, Median, Open, Typical, or weighted", so you can have an SMA calculate on the Low or High of the series.
Reference information:
-
MR
Hi,
My name is Bruce.
I would like to code and indicator that replicates the market price action at real time. I tried with a moving average; 1 period; which is the closest I can be from the real price action candle.
Unfortunately is not working, and I do not know why. Is there any other option to do this?
Maybe If I can use the same code from the price action in the tick chart I could add one moving average.
Could you please provide your suggestion?
Thank you very much in advance,
Regards,
BruceLast edited by brucegale69; 06-14-2018, 03:15 AM.Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by GussJ, 03-04-2020, 03:11 PM
|
16 responses
3,281 views
0 likes
|
Last Post
by Leafcutter
Today, 04:14 PM
|
||
Started by WHICKED, Today, 12:45 PM
|
2 responses
19 views
0 likes
|
Last Post
by WHICKED
Today, 03:36 PM
|
||
Started by Tim-c, Today, 02:10 PM
|
1 response
9 views
0 likes
|
Last Post Today, 02:52 PM | ||
Started by Taddypole, Today, 02:47 PM
|
0 responses
5 views
0 likes
|
Last Post
by Taddypole
Today, 02:47 PM
|
||
Started by chbruno, 04-24-2024, 04:10 PM
|
4 responses
53 views
0 likes
|
Last Post
by chbruno
Today, 02:38 PM
|
Leave a comment: