VWAP Bands Problem with Exception Floating-point division by zero
Posted: Oct 05 2023
MultiCharts64 Version 14.0 Release (Build 25218)
Can anybody help? I am not a coder.
I am getting inconsistent results with the attached Study and Function.
The Study works OK on the SPY, OXY and VXX but not on VIX or other charts like DVN etc but not always, there tends to be inconsistency, are there too many data points for it to cope with or too many decimal points ? However it never works on EUR.USD or other currencies.
I get a message as follows:
Error in Study "VWAP_BANDS(ERY-3Minute)" ; {EXCEPTION} Floating-point division by zero
I cannot identify where the floating point problem is occurring.
I have attached the Study and Function.
Any suggestions as to how I could fix it would be much appreciated.
Can anybody help? I am not a coder.
I am getting inconsistent results with the attached Study and Function.
The Study works OK on the SPY, OXY and VXX but not on VIX or other charts like DVN etc but not always, there tends to be inconsistency, are there too many data points for it to cope with or too many decimal points ? However it never works on EUR.USD or other currencies.
I get a message as follows:
Error in Study "VWAP_BANDS(ERY-3Minute)" ; {EXCEPTION} Floating-point division by zero
I cannot identify where the floating point problem is occurring.
I have attached the Study and Function.
Any suggestions as to how I could fix it would be much appreciated.