Extend lines from high Relative Vol and Vwap at close script.

nelc

New member
Hello, I'm looking for some help with the below script. This script is what i use for identifying support and resistance levels on the daily, two days and weekly chart. The script works flawless but what i want to do is simplify the process by having the levels extended forward to the current trading day on the daily TF and on smaller time frames. Also if i run the script on smaller TF other than what is set in the script, then the script plots for every session instead of only the sessions that had higher vol on the HTF and plots broken up like in the image attached. I've tried several ideas but i can't get the levels to extend forward or keep it from plotting on every session on the smaller TF. Thanks in advance.

declare upper;
input Period = AggregationPeriod.DAY;
input price = VWAP;
input length2 = 1;
input length = 14;
input allowNegativeValues = no;
def rawRelVol = (volume - Average(volume, length)) / StDev(volume, length);
def RelVol = if allowNegativeValues then rawRelVol else Max(0, rawRelVol);
def VWAP = Average(data = vwap (PERIOD = Period),length = length2);
plot data = if (RelVol is greater than .001) then VWAP else 0;
data.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
data.SetLineWeight(1);
 

Attachments

  • MRVL Screenshot.png
    MRVL Screenshot.png
    231.4 KB · Views: 31

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
193 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