I try to write a strategy that use two different range bar series. The primary is 8 tick range bars and second is 2 tick range bars. I want to run Swing() indicator only with 8 tick range bars. I know that this can be done by checking (BarsInProgress == 0) in OnBarUpdate(), then call Swing(n)... The Swing will automatic use primary bar data series.
What I need to know is when (BarsInProgress == 1), how do I call
Swing(??,n).... with primary bar series?
I checked the NT online manual for Swing() indicator. It has two formats:
Swing(int strength).SwingHighBar(int barsAgo, int instance, int lookBackPeriod)
Swing(IDataSeries inputData, int strength).SwingHighBar(int barsAgo, int instance, int lookBackPeriod)
How to use the second format? Please help.
Regards,
JD
Comment