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
Indicator on indicator
Collapse
X
-
Indicator on indicator
If I write an indicator that calls another indicator as part of it's main function, and the called indicator defaults to calculating at end of bar, will the called indicator always calculate at bar's end or will it, if I set my calling indicator to update intrabar, update intrabar?Tags: None
-
It will update intrabar, but as the indicator it is calling only updates at end of bar you will always get the same value returned until the next bar closes. You could be calling lots of indicators from your indicator, so you don't want to change the default behaviour of other indicators, but if you do, you should probably create another indicator.
-
No, you could just declare a DataSeries.
The important bit is in the properties. If it was a Plot it would look like :-
Code:public DataSeries myLine { get Values[0]; }
Code:public DataSeries myLine { get myDataSeries; }
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by DanielSanMartin, Yesterday, 02:37 PM
|
2 responses
13 views
0 likes
|
Last Post Today, 05:26 PM | ||
Started by DJ888, 04-16-2024, 06:09 PM
|
4 responses
12 views
0 likes
|
Last Post
by DJ888
Today, 04:28 PM
|
||
Started by terofs, Today, 04:18 PM
|
0 responses
11 views
0 likes
|
Last Post
by terofs
Today, 04:18 PM
|
||
Started by nandhumca, Today, 03:41 PM
|
0 responses
8 views
0 likes
|
Last Post
by nandhumca
Today, 03:41 PM
|
||
Started by The_Sec, Today, 03:37 PM
|
0 responses
7 views
0 likes
|
Last Post
by The_Sec
Today, 03:37 PM
|
Comment