• LIMITED TIME ONLY: Take $40 off VIP with code: BTD40.

Hawkeye Volume Indicator for ThinkorSwim

BenTen

Administrative
Staff member
Staff
VIP
A volume indicator developed by Nigel Hawks to show bullish, bearish, and neutral sentiment. There aren't many documentations about it, but I found a YouTube video and a post from Hawkeye Traders that might be useful.
  • Green volume bars = bullish
  • Red volume bars = bearish
  • Gray volume bars = neutral
Credit also goes to LazyBear from TradingView.

4E0eUpm.png


thinkScript Code

Code:
# HawkEye Volume Indicator
# Assembled by BenTen at useThinkScript.com
# Converted from https://www.tradingview.com/script/gci6llVF-Indicator-HawkEye-Volume-Indicator/

declare lower;

input length = 200;
input divisor = 3.6;
def range = high - low;
def rangeAvg = simpleMovingAvg(range, length);
def volumeA = simpleMovingAvg(volume, length);

def high1 = high[1];
def low1 = low[1];
def mid1 = hl2[1];

def u1 = mid1 + (high1 - low1) / divisor;
def d1 = mid1 - (high1 - low1) / divisor;

def r_enabled1 = (range > rangeAvg) and(close<d1) and volume > volumeA;
def r_enabled2 = close < mid1;
def r_enabled = r_enabled1 or r_enabled2;

def g_enabled1 = close > mid1;
def g_enabled2 = (range > rangeAvg) and(close > u1) and(volume > volumeA);
def g_enabled3 = (high > high1) and(range<rangeAvg/1.5) and(volume<volumeA);
def g_enabled4 = (low < low1) and(range<rangeAvg/1.5) and(volume > volumeA);
def g_enabled = g_enabled1 or g_enabled2 or g_enabled3 or g_enabled4;

def gr_enabled1 = (range > rangeAvg) and(close > d1) and(close<u1) and(volume > volumeA) and(volume<volumeA*1.5) and(volume > volume[1]);
def gr_enabled2 = (range < rangeAvg / 1.5) and(volume<volumeA/1.5);
def gr_enabled3 = (close > d1) and(close<u1);
def gr_enabled = gr_enabled1 or gr_enabled2 or gr_enabled3;

plot histogram = volume;
histogram.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
histogram.assignValueColor(if gr_enabled then color.gray else if g_enabled then color.green else if r_enabled then color.red else color.white);

 

Al_S

New member
Ben, so sorry.
I've imported the script, but nothing shows up on the chart (yes, it's in lower, and I can eve edit the parameters, but, still)

Any thoughts?

BTW, thanks so very much for scripting Hawkeye VSA!
7xhFyFw.jpg
 
Last edited by a moderator:

MerryDay

Administrative
Staff member
Staff
VIP
Lifetime
@Al_S
The Future Indices and the Forex data channels do not include volume.
Volume for an index depends on the construction of the index -- the S&P is capitalization-weighted, so summed-constituent volume is not meaningful.
Therefore, Volume Indicators do not work with SPX :(
 
Last edited:

Patshan

New member
VIP
Hi Ben,
I used this indicator on my old Tradestation platform. Is it possible to code for the heatmap? Being a visual vs. numbers trader, I found this to be the most helpful with Hawkeye. Thanks for all the work you do. It is profoundly helpful for a luddite like me.
 
Thread starter Similar threads Forum Replies Date
O Volume script - adjust existing script Questions 2
S Current Volume Questions 0
O create Volume Buzz Questions 0
N LAST CANDLE VOLUME % INCREASE Questions 2
R Volume Profile Since Event Questions 2

Similar threads

Top