Reply To: Days since last 5% swing low

Optuma Forums Optuma Scripting Days since last 5% swing low Reply To: Days since last 5% swing low

#65581
Thomas
  • Topics: 104
  • Replies: 131
  • Posts: 235

Hi Darren,

Thank you very much for all your work. The script works perfectly with TIMESINCESIGNAL(LOW()==Var2).

Here is the complete script for calculating with High/Low:

But there is a special issue if I change the property “Calculate Using” from “High/Low” to “Close”. The results of the script are completely wrong.

Here is the script for calculating with the Close:

Is there something I have missed?

When I use the tool “Percent Swing Chart Overlay (PCSC)” and change the property “Calculate Using” from “High/Low” to “Close” the tool works as it should and changes the calculation from High/Low to Close.

Thanks again a lot,
Thomas

  • This reply was modified 1 month ago by Thomas.

Pin It on Pinterest