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
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
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 terofs, Yesterday, 04:18 PM
|
1 response
21 views
0 likes
|
Last Post
by terofs
Today, 10:14 AM
|
||
Started by CommonWhale, Today, 09:55 AM
|
1 response
3 views
0 likes
|
Last Post Today, 10:11 AM | ||
Started by Gerik, Today, 09:40 AM
|
2 responses
7 views
0 likes
|
Last Post
by Gerik
Today, 10:04 AM
|
||
Started by RookieTrader, Today, 09:37 AM
|
2 responses
13 views
0 likes
|
Last Post
by RookieTrader
Today, 10:02 AM
|
||
Started by alifarahani, Today, 09:40 AM
|
1 response
7 views
0 likes
|
Last Post Today, 10:01 AM |
Comment