Hello
I am making Swing High/Low Indicator.Swing points are formed when the high/low of a price is greater/lesser than a given number of highs/lows positioned around it . For example: If Strenth = 2 Bar = 0 , High = 1.34 , Low = 1.25 Bar = 1 , High = 1.345 , Low = 1.29 Bar = 2 , High = 1.350, Low = 1.15 (Swing High) Bar = 3 , High = 1.341 , Low = 1.05 (Swing Low) Bar = 4 , High = 1.342 , Low = 1.26 Bar = 5 , High = 1.342 , Low = 1.23
Draw() function draw indicator value on current index. How can I specify x - axis in Draw() so that I can draw indicator value on specific index?
Thanks
|