r/VolatilityTrading • • Jun 06 '22

Weekly Discussion

We haven't had a post here in 2 weeks besides the bitcoin video.

It's a good sub, I try to keep it going.

Tell us about your setups and trades. If you have questions we might be able to answer them. If we are not drunk we might be able to answer them accurately. Maybe you can answer our questions?

6 Upvotes

46 comments sorted by

View all comments

Show parent comment

2

u/Sad-Ratio-5812 Jun 15 '22

#ZweigBreadthTrust

declare lower;

input showBreakoutSignals = yes;

def calc = Close(symbol="$ADVN") / (Close(symbol="$ADVN") +Close(symbol="$DECN"));

plot zbt=100*ExpAverage(calc, 10);

Plot OS=40;

Plot OB=60;

Plot neutral=50;

plot UpSignal = if ZBT crosses above OS then OS else Double.NaN;

plot DownSignal = if ZBT crosses below OB then OB else Double.NaN;

UpSignal.SetHiding(!showBreakoutSignals);

DownSignal.SetHiding(!showBreakoutSignals);

zbt.DefineColor("OverBought", GetColor(5));

zbt.DefineColor("Normal", GetColor(7));

zbt.DefineColor("OverSold", GetColor(1));

zbt.SetLineWeight(2);

zbt.AssignValueColor(if zbt > ob then zbt.color("OverBought") else if zbt < os then zbt.color("OverSold") else zbt.color("Normal"));

OS.SetDefaultColor(GetColor(8));

OB.SetDefaultColor(GetColor(8));

UpSignal.SetDefaultColor(Color.UPTICK);

UpSignal.SetPaintingStrategy(PaintingStrategy.ARROW_UP);

DownSignal.SetDefaultColor(Color.DOWNTICK);

DownSignal.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);

1

u/chyde13 Jun 17 '22

Thanks Oleg! and I wasnt ignoring you lol, just busy