Thanks in advance
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
Using Better ProAM indicator in a strategy
Collapse
X
-
Using Better ProAM indicator in a strategy
I would like to use Barry's Better Pro AM indicator in a strategy, Specifically when a blue bar is painted. Indicator Script appears closed (at least it doesn't come up on the edit list so it could be viewed). When the indicator is referenced in the strategy everything comes up so it is hard to tell what is being referenced. Thinking someone out there has already solved this. Would appreciate any help or advice.
Thanks in advance -
Hello yngtrader,
Detecting the bar color directly from the indicator will not be possible.
The indicator will have a BarColorSeries that holds the color values of the bars historically, however, if you access this from the strategy these values will be empty (unique to the strategy).
Attempting to access these from the indicator instance will work in real time but does not work historically. (If only having them in real-time and not historically works for you then this would be a solution)
Below is a link to an example of this.
http://ninjatrader.com/support/forum....php?t=52451#9
Basically, there needs to be some kind of flag that is set in the indicator that can be accessed from the script other than the color of the bar.
This could be a StringSeries, or a plot...
You may want to check with the developer of this script to see if there is already some kind of public series that has a flag such as this written into it.
Otherwise, if the script is open source, you will need to add the series in yourself.Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by algospoke, Today, 06:40 PM
|
0 responses
9 views
0 likes
|
Last Post
by algospoke
Today, 06:40 PM
|
||
Started by maybeimnotrader, Today, 05:46 PM
|
0 responses
7 views
0 likes
|
Last Post Today, 05:46 PM | ||
Started by quantismo, Today, 05:13 PM
|
0 responses
7 views
0 likes
|
Last Post
by quantismo
Today, 05:13 PM
|
||
Started by AttiM, 02-14-2024, 05:20 PM
|
8 responses
168 views
0 likes
|
Last Post
by jeronymite
Today, 05:00 PM
|
||
Started by cre8able, Today, 04:22 PM
|
0 responses
10 views
0 likes
|
Last Post
by cre8able
Today, 04:22 PM
|
Comment