VWAP Volume Breakout Indicator for ThinkorSwim

BenTen

BenTen

Administrative
Staff
VIP
@RichSprinkles Weird. I'm not exactly sure why. The conditions are pretty simple and straightforward.
 
BenTen

BenTen

Administrative
Staff
VIP
@RichSprinkles Actually, I found the reason. It was due to the condition below:

Code:
def above_volume = Vol crosses above VolAvg;

I changed it to:

Code:
def above_volume = Vol > VolAvg;

And that seems to fix the issue. Recheck the code in the first post. I just updated it.
 
R

RichSprinkles

New member
@BenTen Yeah that totally fixes it. Great find and thanks a lot. Interesting how the crosses function doesn't work every time as it's essentially the same idea as greater than.
 

Similar threads

Top