RedK VADER - RedK Volume-Accelerated Directional Energy For ThinkOrSwim

mbarcala

Active member
Here another version of RedK VADER - RedK Volume-Accelerated Directional Energy from tradingView converted to TOS, Enjoy!
Original Link: https://www.tradingview.com/script/...elerated-Directional-Energy-Ratio-RedK-VADER/

The Volume-Accelerated Directional Energy Ratio (VADER) makes use of price moves (displacement) and the associated volume (effort) to estimate the positive buying and negative selling energy behind the scenes, enabling traders to read the market action in more details and adjust their trading decisions accordingly.

Lets walk though it as we avoid getting too technical:
Large price moves that are associated with large volume means buyers (if the move is up) or sellers (when the move is down) are serious and are "in control" of the action
On the other hand, when the price moves are small but with large volume, it means there's a fight, or more of a balance of energy, between buying and selling.
Also when large price moves are associated with relatively limited volume, there's a lack of "energy" from either buyers or sellers - and moves likes these are usually short-lived.

The analogy with VADER, is that we look at price moves (change of close between 2 bars) as the displacement (or action result) and the associated volume as the "effort" behind this action. Combining these 2 values together, the displacement and the effort, gives us a representation or a proxy of the underlying energy (in a specific direction).
when both values (displacement and effort) are high, then the resulting energy is high - and if one of these values are low, the resulting energy is low.

we then take an average of that relative energy in each direction (positive = buying - negative = selling) and calculate the net energy.

VADER Plots
1- the blue line with crosses represents the positive energy or the buying strength
2- the orange line with circles represents the negative energy or the selling strength
3- the thick Green / Red main line plot represents the net energy and generally the main signal to be looking out for is when that line crosses 0 up or down - but i find it also very valuable to keep an eye on the individual energy lines as they sometimes tell a story like we see in the chart below.

Upper Indicator here: https://usethinkscript.com/threads/break-keltner-bands-bkb-for-thinkorswim.11220/

photo
13552[/ATTACH]']
5MX5ibk.png


script
Code:
# This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
# RedKTrader - version=5
#Original link: https://www.tradingview.com/script/7s0lx2Bw-RedK-Volume-Accelerated-Directional-Energy-Ratio-RedK-VADER/
#RedK VADER - RedK Volume-Accelerated Directional Energy Ratio converted to TOS by mbarcala

declare lower;

input length = 20;
input DER_avg = 5;
input smooth = 3;
input v_calc = {default Relative, Full, None};
input vlookbk = 20;

def min_value = lowest(volume, vlookbk);
def max_value = highest(volume, vlookbk);

def vola;
switch(v_calc) {
    case Relative:
        vola = 100 * (volume - lowest(min_value, vlookbk)) / (highest(max_value, vlookbk) - lowest(min_value, vlookbk));
    case Full:
        vola = volume;
    case None:
        vola = 1;
}

def R = (highest(high, 2) - lowest(low, 2)) / 2;
def sr = (close - close[1]) / R;
def rsr = max(min(sr, 1), -1);
def c = rsr * vola;
def c_plus = max(c, 0);
def c_minus = -min(c, 0);
def dem = wma(c_plus, length)/ wma(vola, length);
def sup = wma(c_minus, length)/ wma(vola, length);
def adp = 100 * wma(dem, DER_avg);
def asp = 100 * wma(sup, DER_avg);
def anp = adp - asp;
def anp_s = wma(anp, smooth);

plot Signal = anp_s;
Signal.AssignValueColor(if anp_s >= 0 then Color.LIME else Color.RED);
Signal.SetLineWeight(3);


plot Bull = asp;
Bull.SetDefaultColor(Color.MAGENTA);
Bull.SetPaintingStrategy(PaintingStrategy.LINE_VS_POINTS);

plot Bear = adp;
Bear.SetDefaultColor(Color.CYAN);
Bear.SetPaintingStrategy(PaintingStrategy.LINE_VS_POINTS);

AddCloud(Bear, Bull, Color.CYAN, Color.MAGENTA);

plot cline = 0;
cline.SetDefaultColor(Color.GRAY);
 

Attachments

  • 5MX5ibk.png
    5MX5ibk.png
    400.4 KB · Views: 331
Last edited by a moderator:

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
348 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