Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
How to reference and plot same indicator 2x on different data series
Could someone please tell me how to do that when you have the time ...
or should I make another indicator all together? Thanks
"Successful trading is one long journey, not a destination" Peter Borish Former Head of Research for Paul Tudor Jones speaking on conversations with John F. Carter
Can you help answer these questions from other members on NexusFi?
(1) please pay attention that the first bar series is BarsInProgress == 0, the second one is BarsInProgress == 1
(2) you need to add two SMAs in the variables section, for example
(3) you also need to add a second bar series in the Initialize() section
(4) in a third step you would define those SMAs in the OnStartUp() section of the indicator
Now myFirstSMA will be calculated from the first BarSeries, mySecondSMA from the second Bar Series. You can simply call them in OnBarUpdate(), whenever you like. If you have two PlotSeries, then you can affect values to your PlotSeries, for example
Thanks a bunch , the only thing I am a bit confused about is that when the indicator is already named and uses the value as seems to be already coded ... but I copied from the ninja trader example so I guess the calculation in the bottom is the actual code and I can rename it?... Thank You
"Successful trading is one long journey, not a destination" Peter Borish Former Head of Research for Paul Tudor Jones speaking on conversations with John F. Carter