Volume Gradient + Heikin Ashii Trend Indicator - Page 3 - Traders Laboratory

Go Back   Traders Laboratory > Trading Resources > Trading Indicators

Trading Indicators Post your custom trading indicators. If you download, remember to click INSTALL.


Comment
 
LinkBack (3) Release Tools Display Modes
 
Old 03-18-2007, 04:40 PM
GCB's Avatar
GCB GCB is offline
GCB has no status.

Trader Specs
 
Join Date: Feb 2007
Location: Texas
Posts: 144
Thanks: 0
Thanked 2 Times in 1 Post
Volume Gradient + Heikin Ashii Trend Indicator

In the spirit of the current interest in volume-based indicators, I wrote this TradeStation hybrid of Volume Gradient and Heikin Ashii Trend. It will create a chart with two distinct ranges of colors. One color range, defaulted to green, indicates an uptrend--the other, defaulted to red, indicates a downtrend. The relative darkness of each color reflects the amount of volume in a particular bar relative to a previous sample average. The number of bars in the sample both for determining the...


Last edited by GCB; 03-18-2007 at 04:48 PM.
Reply With Quote
  #20 (permalink)  
By keymoo on 03-30-2007, 10:09 AM
Re: Volume Gradient + TTM Trend Indicator

Yes their volume gradient indicator does a similar thing on my charts.
Reply With Quote
  #21 (permalink)  
By Anonymous on 03-30-2007, 01:54 PM
Re: Volume Gradient + TTM Trend Indicator

GCB;

While VSA makes different assumptions about volume, I must say that this is a great idea. I commend you on your work. Would love to see more charts and then of course......trading ideas/set-ups that this tool brings about.
Reply With Quote
  #22 (permalink)  
By walterw on 03-30-2007, 01:59 PM
Re: Volume Gradient + TTM Trend Indicator

gcb : you can load a workspace on zip file...
Reply With Quote
  #23 (permalink)  
By Robert2617 on 03-30-2007, 02:24 PM
Re: Volume Gradient + TTM Trend Indicator

Here are a couple screens. With and without trend enabled.
Attached Images
File Type: gif volpaint.gif (32.0 KB, 155 views)
File Type: gif volpaint1.gif (30.9 KB, 148 views)
Reply With Quote
  #24 (permalink)  
By Anonymous on 03-30-2007, 03:02 PM
Re: Volume Gradient + TTM Trend Indicator

Robert2617;

nice pics. I like it without the TTM on the bars. All are green bars close>open?

I hope you don't mind but I am using one of the pics in the WRB thread, check it out.
Reply With Quote
  #25 (permalink)  
By Anonymous on 03-30-2007, 03:27 PM
Re: Volume Gradient + TTM Trend Indicator

GCB:

1. Am I correct in thinking this tool has elements of Market Delta within it?

2. Can you code it up for MetaStock (without TTM version)?

I think this could create a powerful way to view PRICE ACTION. Very nice. Just goes to show the quality of members on this forum.
Reply With Quote
  #26 (permalink)  
By GCB on 03-31-2007, 09:59 PM
Re: Volume Gradient + TTM Trend Indicator

Quote:
View Post
GCB:

1. Am I correct in thinking this tool has elements of Market Delta within it?

2. Can you code it up for MetaStock (without TTM version)?

I think this could create a powerful way to view PRICE ACTION. Very nice. Just goes to show the quality of members on this forum.
1. Yes, in the sense that I only reflect up volume for up bars (close>open) and down volume for down bars(close<open) and I keep separate running moving averages of both up and down volume to compare bar to--up bars compare their up volume to the moving average of up volume to get their shading, and down bars compare their down volume to the moving average of down volume for their shading.

2. I don't know MetaStock but I'll include the TS EasyLanguage code below and if you can find someone to translate that would be fine. The TTM feature is optional.

Thanks very much for the compliment. I actually do use this now. I still keep a volume delta on the screen as well, for a detailed view of volume. But putting the volume right on the price bar as this does has really helped keep me focused on the volume aspect of what is going on.

If you look at the attached screen shot of Friday's action the breakdown with volume from the morning range at around 10:25 CT is clearly seen, as well as the the meager retracement from 10:32-40. I actually got short at 12396 and rode half down to 12315. I wish I could say I covered at 12315 but I didn't. But I still got a nice slice of the move.

Below is the TS EL code for the indicatre with comments.


{
$P-Trend Volume Bars -- Paint bar study shows trend and volume density on price bars.

Price = Calculation of price to be used to determine trend. e.g. Close, or, (High+Low+Close)/3)
PriceLength = Number of price bars to look back to determine trend.
VolLength = Number of volume bars to look back to determine volume trend.
ShowTrend = Paint the bars showing the trend. If false, up bars are green, down are red.
ShowVolume = Paint the bars show showing volume density. If false, all bars are the same density.
UpHR, etc, = RGB color codes.
This is a TradeStation hybrid of Volume Gradient and TTM Trend. It will create a chart with
two distinct ranges of colors. One color range, defaulted to green, indicates an uptrend--the other,
defaulted to red, indicates a downtrend. The relative darkness of each color reflects the amount
of volume in a particular bar relative to a previous sample average. The number of bars looked at to
determine the trend is determined by the input PriceLength, the number of bars for volume comparison,
VolLength.

Since PlotPaintBar takes RGB color numbers, to provide the full range of colors, the inputs to this
indicator allow a completely customizable red, green and blue setting for each end of each color range.
For example, UpHR = The uptrend, high volume red component, UpHG = the uptrend, high volume green component,
and so forth. DnLB = the downtrend, low volume blue component, and so forth.
You can use any typical Windows color selection dialog box to select colors and find out the Reg, Green, Blue
component numbers for the color.
I suggest using washed-out colors for the low volume colors and rich colors in the same basic color for the
high volume colors. For example, faded pink to deep red. But of course you can do whatever makes sense to
you and looks good to your eye. But be aware, I've discovered that for the colors to show consistent density
they must parallel each other. This is hard to explain, but if you look at the settings below you can see
what I mean.
UpHR(0),
UpHG(135),
UpHB(0),
UpLR(205),
UpLG(255),
UpLB(205),
DnHR(135),
DnHG(0),
DnHB(0),
DnLR(255),
DnLG(205),
DnLB(205);
Note that the algorithm used for determining trend is not exactly the same as TTM trend, but the results are
pretty much the same.)
}

inputs:
Price((High+Low+Close)/3),
PriceLength (18),
VolLength(30),
ShowTrend(true),
ShowVolume(true),
UpHR(0),
UpHG(135),
UpHB(0),
UpLR(205),
UpLG(255),
UpLB(205),
DnHR(135),
DnHG(0),
DnHB(0),
DnLR(255),
DnLG(205),
DnLB(205);

variables:
MA(0), HighColor(0), LowColor(0), Color(0), UpVol(0), DownVol(0), TotVol(0);

MA = XAverage (Price, PriceLength);

if BarType >= 2 then { ie, not tick/minute data }
begin
UpVol = Volume;
DownVol = Volume;
end
else { if tick/minute data }
begin
UpVol = UpTicks;
DownVol = DownTicks ;
end;

TotVol = UpVol + DownVol;

if ShowTrend then
begin
if MA > MA[1] then
begin
HighColor = RGB(UpHR, UpHG, UpHB);
LowColor = RGB(UpLR, UpLG, UpLB);
end
else
begin
HighColor = RGB(DnHR, DnHG, DnHB);
LowColor = RGB(DnLR, DnLG, DnLB);
end;
end
else
begin
if Close > Open then
begin
HighColor = RGB(UpHR, UpHG, UpHB);
LowColor = RGB(UpLR, UpLG, UpLB);
end
else
begin
HighColor = RGB(DnHR, DnHG, DnHB);
LowColor = RGB(DnLR, DnLG, DnLB);
end;
end;

if ShowVolume then
begin
if High > Low then
Color = NormGradientColor(UpVol, false, VolLength, HighColor, LowColor)
else
if High < Low then
Color = NormGradientColor(DownVol , false, VolLength, HighColor, LowColor)
else
Color = NormGradientColor(TotVol, false, VolLength, HighColor, LowColor);
end
else
Color = HighColor;

PlotPaintBar(High, Low, Open, Close, "MATrendUp", Color);
Attached Images
File Type: jpg TrendVol.jpg (113.3 KB, 119 views)
Reply With Quote
  #27 (permalink)  
By keymoo on 04-07-2007, 08:29 AM
Re: Volume Gradient + TTM Trend Indicator

For people that are having issues with the candlesticks getting painted, I trawled through all the options in tradestation and managed to solve the problem. It's a setting.

On the view menu select 'Chart analysis preferences...'


Then select the General Tab. On the general tab ensure that 'When a study paints a candlestick bar, paint the body and wick' is checked.
Attached Images
File Type: gif 2007-04-06 view chart analysis.gif (12.7 KB, 269 views)
File Type: gif 2007-04-06 paint candlestick.gif (15.8 KB, 263 views)
Reply With Quote
Comment



LinkBacks (?)
LinkBack to this Thread: http://www.traderslaboratory.com/forums/f46/volume-gradient-heikin-ashii-trend-indicator-1438.html
Posted By For Type Date
jadedragon's bookmarks tagged with This thread Refback 01-24-2008 01:01 AM
jadedragon's bookmarks on del.icio.us This thread Refback 01-14-2008 01:56 PM
Traders Laboratory This thread Refback 03-20-2007 02:30 PM

Currently Active Users Viewing This Release: 1 (0 members and 1 guests)
 
Release Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Release Release Starter Category Comments Last Post
Heikin Ashi Trend Indicator Soultrader Trading Indicators 25 02-21-2008 06:24 PM
Add-on For Heikin Ashii and Volume Delta Soultrader Trading Indicators 22 12-11-2007 09:01 AM
Heiking Ashii & Volume Delta Add On Version 2 Soultrader Trading Indicators 5 09-03-2007 01:39 PM
Retest on Lower Volume with Volume Gradient walterw Technical Analysis 0 03-18-2007 03:16 PM
Volume Gradient walterw Trading Indicators 0 03-18-2007 01:41 PM


All times are GMT -4. The time now is 03:10 PM.

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76