i think i generally understand it but I am trying to get a couple of values:
1) Print off the past 3 swing high and low (instance) values. I think this works
Print(High[Math.Max(0, Swing(5).SwingHighBar(0, 1, 100))]); Print(High[Math.Max(0, Swing(5).SwingHighBar(0, 2, 100))] ); Print(High[Math.Max(0, Swing(5).SwingHighBar(0, 3, 100))] );
3) What does the lookback period mean. In the example on the online help documentation, the look back period was set to 10. Does that mean that only the last 10 bars will be looked at to find a swing high. I would probably want to look back at 100 bars (to ensure I get the 1, 2 and 3rd instance of the swing high data series) but reading from this post (post #7 from Josh), i got the impression I should put the look back to 0. I am just not sure what it means..
Thanks
Avi
Comment