bombay
Posts: 3 since Sep 2010
Thanks Given: 1
Thanks Received: 0
|
Is there any trade station code for gravity color bars
=========================================
if you have tradestation, they're free on the forums OR you could easily code them yourself if you just read some easy language code.
A moving average that changes colour when up/ down combined with heikin ashi bars.
people ve done some research and found that the colour charts turn blue or red in relation to a moving average which is based on the wieght of the price relative to the high or low.
Meaning, if, for a particular bar, the prices 'tick count' is around the lower half of the bar, than the top half, it will turn red.
if there is more activity in the top half than the bottom, it turns blue.
Im not sure how this average is writtin in code, but i do know it goes something like the difference between the number of ticks (regardless of time period) above the open (or top half of bar) and the bottom half (or lower than the open).
im sure there is a simpler way to explain.
people ve done some research and found
that the colour charts turn blue or red in relation to a moving average which is based on the wieght of the price relative to the high or low.
read this with extra care
================
Meaning, if, for a particular bar, the prices 'Tick Count' is around the lower half of the bar, than the top half, it will turn Red.
if there is more activity in the top half than the bottom, it turns blue.
. it seems to work better on very low time frames,
if not for beginners, here is the code
=============================================================
Here is the txt code for HA coloured charts.eld
HA(HEIKIN ASHI)
Code:
---------
Input: period(8);
Condition1 = close > value1 ;
Condition2 = close < value1 ;
{ OPTIONAL STEP: Replace HIGH and LOW with your own formulas for the high and low
prices of the PaintBar. Note that Value1 and Value2 are numeric variables, temporary
holding places for the results of the numeric formulas. }
Value1 = average(close,8)[3] ;
Value2 = 10925 ;
{ Leave the following as is. The plot is not named because there is only one PaintBar
plot - with two sub-plots - and the default names Plot1, Plot2 will be adequate. The
alert does not include a description because the alerting criteria and the plotting
criteria are the same, and the description will be redundant. }
if Condition1 then
begin
PlotPaintBar( high, low, open, close, "range", Blue, default, 3 ) ;
end ;
if condition2 then
begin
PlotPaintBar( high, low, open, close, "range", Red, default, 3 ) ;
Alert ;
end ;
plot5(value1,"TTWHA");
======================
Code:
---------
[LegacyColorValue = true];
inputs: Price(Close), Length(10), BarsBack(3), UpColor(blue), DownColor(red),Displace( 0 ) ;
var: AvgExp( 0 );
AvgExp = XAverage( Price, Length ) ;
if AvgExp > AvgExp[BarsBack] then setplotcolor(1,UpColor);
if AvgExp < AvgExp[BarsBack] then setplotcolor(1,DownColor);
Plot1[Displace]( AvgExp, "AvgExp" ) ;
==========================================
an expert here can fine tune or modify this code and repost
Can somebody post a eld txt code to meet this part of concept,please!
colour charts turn blue or red in relation to a moving average which is based on the wieght of the price relative to the high or low.
Meaning,
if, for a particular bar, the prices 'tick count' is around the lower half of the bar, than the top half, it will turn red.
if there is more activity in the top half than the bottom, it turns blue.
Im not sure how this average is writtin in code,
but i do know it goes something like the difference between the number of ticks (regardless of time period) above the open (or top half of bar) and the bottom half (or lower than the open).
thanks
|