VWMA Breakout Scanner

V

veerasareddy

New member
@BenTen

Could you please help me to give the scanner for VWMA Breakout strategy in ThinkorSwim.
When the Blue line crosses above or below the Pink line in Daily / 4h Chart.

Image :

Thank you.
 
BenTen

BenTen

Administrative
Staff
VIP
Warehouse
Here you go. Save this as a study. Then switch over to the Scanner and scan for buy and sell signals.

Code:
# VWMA Breakout Strategy
# TD Ameritrade IP Company, Inc. (c) 2017-2019
# Modified by BenTen at useThinkScript.com
# Added arrows to use with the Scanner

input vwmaLength = 50;
input maLength = 70;
input averageType = AverageType.SIMPLE;

plot VWMA = Sum(volume * close, vwmaLength) / Sum(volume, vwmaLength);
plot MA = MovingAverage(averageType, close, maLength);
VWMA.SetDefaultColor(GetColor(1));
MA.SetDefaultColor(GetColor(2));

def buy = VWMA crosses above MA;
def sell = VWMA crosses below MA;

plot bullish = buy;
bullish.SetPaintingStrategy(PaintingStrategy.BOOLEAN_Arrow_UP);
bullish.SetDefaultColor(Color.LIME);
bullish.SetLineWeight(1);

plot bearish = sell;
bearish.SetPaintingStrategy(PaintingStrategy.BOOLEAN_Arrow_DOWN);
bearish.SetDefaultColor(Color.LIME);
bearish.SetLineWeight(1);
 
V

veerasareddy

New member
Here you go. Save this as a study. Then switch over to the Scanner and scan for buy and sell signals.

Code:
# VWMA Breakout Strategy
# TD Ameritrade IP Company, Inc. (c) 2017-2019
# Modified by BenTen at useThinkScript.com
# Added arrows to use with the Scanner

input vwmaLength = 50;
input maLength = 70;
input averageType = AverageType.SIMPLE;

plot VWMA = Sum(volume * close, vwmaLength) / Sum(volume, vwmaLength);
plot MA = MovingAverage(averageType, close, maLength);
VWMA.SetDefaultColor(GetColor(1));
MA.SetDefaultColor(GetColor(2));

def buy = VWMA crosses above MA;
def sell = VWMA crosses below MA;

plot bullish = buy;
bullish.SetPaintingStrategy(PaintingStrategy.BOOLEAN_Arrow_UP);
bullish.SetDefaultColor(Color.LIME);
bullish.SetLineWeight(1);

plot bearish = sell;
bearish.SetPaintingStrategy(PaintingStrategy.BOOLEAN_Arrow_DOWN);
bearish.SetDefaultColor(Color.LIME);
bearish.SetLineWeight(1);
@BenTen Thank you so much. I saved as a study. But I'm not able to scan BUY / SELL as per your instructions. Could you please help one more step. Thank you for your kindness. Probably a screen shot of the scanner code.
 
H

horserider

Well-known member
VIP
Warehouse
MovAvgWeighted("length" = 50) crosses above SimpleMovingAverage("length" = 70) within 3 bars


MovAvgWeighted("length" = 50) crosses below SimpleMovingAverage("length" = 70) within 3 bars

Just try scan similiar to above , Do not have ToS open so unsure if the "SimpleMovingAverage" is the correct spelling for that study. If not just look in studies for the correct wording.
 
BenTen

BenTen

Administrative
Staff
VIP
Warehouse
@veerasareddy Switch to Scan tab, Add new filter study > Select the study I sent you above > Under Plot select the type of signal you want to scan for and also within how many bars.

 
Last edited:
V

veerasareddy

New member
MovAvgWeighted("length" = 50) crosses above SimpleMovingAverage("length" = 70) within 3 bars


MovAvgWeighted("length" = 50) crosses below SimpleMovingAverage("length" = 70) within 3 bars

Just try scan similiar to above , Do not have ToS open so unsure if the "SimpleMovingAverage" is the correct spelling for that study. If not just look in studies for the correct wording.
@horserider Thank you.
 
V

veerasareddy

New member
@veerasareddy Switch to Scan tab, Add new filter study > Select the study I sent you above > Under Plot select the type of signal you want to scan for and also within how many bars.

@BenTen Thank You.
 

Top