In the stochastic indicator the last value is displayed for the closed bar, and I want to change so that it will compute/display the value for the current bar, the real time value
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
NinjaScript Documentation
Collapse
X
-
NinjaScript Documentation
Is there a documentation available online for the libraries that are offered so it is possible to write NinjaScripts ??
In the stochastic indicator the last value is displayed for the closed bar, and I want to change so that it will compute/display the value for the current bar, the real time valueLast edited by acmarius83; 01-11-2012, 10:52 AM.Tags: None
-
acmarius,
I am happy to assist you.
Here is a link to our help guide with NinjaScript resources : http://www.ninjatrader.com/support/h...nt7/index.html
Here is a link to reference samples on coding various things : http://www.ninjatrader.com/support/f...splay.php?f=30
You would want to set CalculateOnBarClose = false to get the "real-time" value of indicators.
Please let me know if I may assist further.Adam P.NinjaTrader Customer Service
-
this means that I have to modify this :
Stochastics indicator = new Stochastics();
indicator.BarsRequired = BarsRequired;
>> indicator.CalculateOnBarClose = CalculateOnBarClose;
into this:
Stochastics indicator = new Stochastics();
indicator.BarsRequired = BarsRequired;
>> indicator.CalculateOnBarClose = false;
am I write?
Comment
-
i modified in the original stochastic indicator that comes whit nt7 like this...
Stochastics indicator = new Stochastics();
// indicator.BarsRequired = BarsRequired;
indicator.CalculateOnBarClose = false;
it is not working .......
Comment
-
acmarius,
I would recommend just creating a Stochastics indicator with CalculateOnBarClose = false in its Initialize() method. You will also want CalculateOnBarClose to be false in your indicator/strategy calling it.
You can then access it as follows : Stochastics_My(periodk,periodd,smooth)[X]
Please let me know if I may assist further.Adam P.NinjaTrader Customer Service
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
152 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
89 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
131 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
127 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
107 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment