Kris![]() Legend ![]() ![]() ![]() ![]() Posts: 347 Joined: 4/20/2006 Location: JNB, ZA ![]() | I am experiencing intellectual difficulty with auto-detecting the chart periodicity, so attached please find Hourly Floor Pivots for 1-min, 2-min and 5-min charts respectively. The last indicator (Pivots1hr05min.txt) code includes my current thinking on detecting chart periodicity, but it isn't working (yet). To avoid confusion all three indicators will draw pivots only on correctly specified chart period, i.e. it will draw 5-min rolling pivots only on 5-min chart, but will not draw the garbage that Greg alerted me to on e.g. 2-min chart. Maybe one of the more accomplished developers could have a look at the Pivots1hr05min.txt code and help us get the auto-chart-periodicity to work. Cheers, Kris ![]() ![]() ![]() |