VWAP Volume Breakout Indicator for ThinkorSwim

How do we add this code and where do we add these codes I'm new
Add the code from here: https://usethinkscript.com/threads/vwap-volume-breakout-indicator-for-thinkorswim.573/#post-4317
following these instructions:
https://usethinkscript.com/threads/how-to-import-existing-thinkscript-code-on-thinkorswim.10/

If you want alerts add this code to the bottom of the study that you just created:
# Alerts
Alert(bull, " ", Alert.Bar, Sound.Chimes);
Alert(bear, " ", Alert.Bar, Sound.Bell);
Keep in mind these alert caveats:
https://usethinkscript.com/threads/answers-to-commonly-asked-questions.6006/#post-58010
 
@BenTen Super new to coding here. But I feel I have found a simple yet effective trading theory. I am looking for a code and alert to stocks that close above VWAP on one minute candles. Happy to share this theory to someone that can help. Without an alert and just placing trades by watching them myself I have seen +85% success.

Also is there a video to watch to input this code? Again super new to coding.

Thank you!
 
@BenTen Super new to coding here. But I feel I have found a simple yet effective trading theory. I am looking for a code and alert to stocks that close above VWAP on one minute candles. Happy to share this theory to someone that can help. Without an alert and just placing trades by watching them myself I have seen +85% success.

Also is there a video to watch to input this code? Again super new to coding.

Thank you!
Close Crosses Above VWAP Scanner
  1. Shared Scan Link: http://tos.mx/LFD2nFg Click here for --> Easiest way to load shared links
  2. To create alerts. See image below.
    1. click on
      BET2vMT.png
      menu icon that is down by results
    2. click on alert scan results change
zEYK7wl.png
 
@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.
Thanks @BenTen, love this indicator, definitely adds value to the VWAP.
I've added below to the script
input n = 5; # hint: input number to multiply VolAvg times this number

and changed below code

def above_volume = Vol > VolAvg;
to
def above_volume = Vol > n * VolAvg;

I find that this helps with different time frames and eliminates a lot of the noise where volume is just above the average and not enough to be significant. I use 5x volume average for 30 minutes or higher and 2x volume average for below 30 minutes, but feel free to set whatever figure suits your trading style.

Hope this helps anyone and thanks again BenTen!
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
252 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top