PS: For the updated version which has a toggle button, please see Kvak's code: Dynamic Pivot Points for all timeframes (Toggle Button).
From Mladen Rakic:
Based on the Austin Passamonte's idea , this indicator calculates pivots for any time frame (provided that the chosen time frame is higher than the chart time frame).
Two modes of calculation :
- original (when it calculates as in the Austin Passamonte's idea)
- or alternate mode (when it is more support / resistance inclined)
Recommendations:
- Use it as any other pivots
- Since the code is optimized (only last bar calculated on new ticks), it can easily be used from any other code via iCustom()