if (ToTime(Time[0]) = 180000)
Value.Set(0);
which didn't work, so I tried (for a midnight reset):
if (ToDay(Time[0]) != ToDay(Time[1]))
Value.Set(0);
which also didn't work. I didn't touch anything else in the indicator, except changing all the OBV references to myOBV, and inserting the above lines as the first line under the OnBarUpdate. Both options compiled fine... the first one didn't reset the OBV, and the second one didn't even produce an indicator plot?????
What am I doing wrong?
Comment