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 futures io?
(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
The following user says Thank You to Fat Tails for this post:
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