Weis Waive Indicator


Category:
0
0

Hi Hahn! Thank you very much for your helpful videos. I would like to know if you could generate an indicator displaying Weis Waves Volume and a study chart that displays zigzag lines, the angle of the zigzags and Weis Waves Volume number on the slope of the zigzag as shown on the screenshots. Thank you very much!

Attachments:
Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on October 31, 2019 9:26 pm
798 views
0
Private answer

You can call me by my first name. Pete. No need to call me by my last name.

A zigzag study is already included with Thinkorswim (actually there are several).

I've never heard of Weis Waves so you will need to provide specifications. A screenshot does not provide the specifications. We don't reverse engineer studies here. We provide solutions based on a set of specifications provided by the audience.

Marked as spam
Posted by (Questions: 37, Answers: 4087)
Answered on November 1, 2019 12:25 pm
0
Private answer

Frank, here is the Weis Wave Volume thinkscript.

 

declare lower;

def price = hlc3;

input reversalAmount = 1.5;

input reversalMode = {price, default percent};

 

def mode = if reversalMode == reversalMode.price then ZigZagTrendSign(price = price, reversalAmount = reversalAmount) else ZigZagTrendPercent(price = price, reversalAmount = reversalAmount);

def inflection = if reversalMode == reversalMode.price then if !IsNaN(ZigZagSign(price = price, reversalAmount = reversalAmount)) then 1 else 0 else if !IsNaN(ZigZagPercent(price = price, reversalAmount = reversalAmount)) then 1 else 0;

rec trend = if inflection == 1 and mode == -1 then 1 else if inflection == 1 and mode == 1 then -1 else trend[1];

 

rec upWaveVolume = if inflection == 1 and trend == 1 and close > open then volume else if inflection == 1 and trend == 1 and close <= open then 0 else if trend == 1 or (inflection == 1 and trend == -1 and close >= open) then upWaveVolume[1] + volume else 0;

rec downWaveVolume = if inflection == 1 and trend == -1 and close < open then volume else if inflection == 1 and trend == -1 and close >= open then 0 else if trend == -1 or (inflection == 1 and trend == 1 and close <= open) then downWaveVolume[1] + volume else 0;

 

plot upvol = upWaveVolume;

upvol.SetDefaultColor(color.dark_green);

upvol.SetPaintingStrategy(PaintingStrategy.Histogram);

upvol.SetLineWeight(5);

plot dnvol = downWaveVolume;

dnvol.SetDefaultColor( Color.DownTICK);

dnvol.SetPaintingStrategy(PaintingStrategy.Histogram);

dnvol.SetLineWeight(5);

Marked as spam
Posted by (Questions: 15, Answers: 23)
Answered on November 7, 2019 2:45 pm
0
This is great. Thanks!
( at December 30, 2023 1:24 pm)