NexusFi: Find Your Edge


Home Menu

 





color bars in tradestation


Discussion in EasyLanguage Programming

Updated
    1. trending_up 7,249 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread

color bars in tradestation

(login for full post details)
  #1 (permalink)
ford7k
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

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Volume profile TradeStation
EasyLanguage Programming
ISO Equity Curve Indicator
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Request for MACD with option to use different MAs for fa …
NinjaTrader
Trader Dale [email protected] or Scammer Dale
Trading Reviews and Vendors
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Tao te Trade: way of the WLD
30 thanks
GFIs1 1 DAX trade per day journal
28 thanks
Supertradersams Thread Journal on NQ/MNQ
26 thanks
Just another trading journal: PA, Wyckoff & Trends
12 thanks
1% Risk Journal
11 thanks






Last Updated on September 10, 2010


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts