indiTraders - Forum for the Active Indian Trader  

Go Back   indiTraders - Forum for the Active Indian Trader > Tools > Software > Tradestation

Reply
 
Bookmark and Share LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-09-2010, 06:02 PM
devanand25 devanand25 is offline
Regulars
 
Join Date: Mar 2010
Posts: 110
Thanks: 30
Thanked 116 Times in 47 Posts
devanand25 will become famous soon enoughdevanand25 will become famous soon enough
Default Req Gravity color bars - Please post code as txt

Hi friends,
I request the tradestation experts to check the ELD file and decode it for use in Amibroker and metastock.
please convert the ELD file into txt or notepad and post it here.
the ELD file is attached here.

Thanks
regards
dev

http://www.inditraders.com/amibroker...colorbars.html
Attached Files
File Type: eld HA and colour charts.ELD (5.3 KB, 20 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-09-2010, 11:05 AM
devanand25 devanand25 is offline
Regulars
 
Join Date: Mar 2010
Posts: 110
Thanks: 30
Thanked 116 Times in 47 Posts
devanand25 will become famous soon enoughdevanand25 will become famous soon enough
Default

Here is the txt code for HA coloured charts.eld

HA



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" ) ;
---------
regards
dev
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 2 Users Say Thank You to devanand25 For This Useful Post:
  #3 (permalink)  
Old 05-10-2013, 11:09 AM
AmiSmart AmiSmart is offline
Regular
 
Join Date: Sep 2013
Posts: 53
Thanks: 2
Thanked 79 Times in 37 Posts
AmiSmart is on a distinguished roadAmiSmart is on a distinguished road
Default

Originally Posted by devanand25 View Post
Hi friends,
I request the tradestation experts to check the ELD file and decode it for use in Amibroker and metastock.
please convert the ELD file into txt or notepad and post it here.
the ELD file is attached here.

Thanks
regards
dev

http://www.inditraders.com/amibroker...colorbars.html

Amibroker AFL
PHP Code:
_SECTION_BEGIN("ColorHA");
period=Param("Period",8,1);
Price =ParamField("Price");

 
Value1 Ref(MA(Priceperiod), -3);
 
Condition1 Close value1;
 
Condition2 Close value1;
 
color IIf(Condition1colorBlueIIf(Condition2colorRedcolorDarkGrey));

PlotOHLC(OpenHighLowClose"range"ColorstyleCandle|styleThick);

Plot(Value1"TTWHA"colorRedstyleNoLine);
_SECTION_END();

_SECTION_BEGIN("Color_Chart");
Price=ParamField("Price",3); 
Length=Param("Length",10); 
BarsBack=Param("BarsBack",3); 
UpColor=ParamColor("UpColor",colorBlue);
DownColor=ParamColor("DownColor",colorRed);
Displace=Param("Displace",0); 


AvgExp 0;

AvgExp EMAPriceLength ) ;

color =IIf(AvgExp Ref(AvgExp, -BarsBack), UpColor,
                
IIfAvgExp Ref(AvgExp,-BarsBack), DownColorcolorDarkGrey));


Plot(AvgExp"AvgExp"ColorParamStyle("AvgExp Style"), 00Displace );
_SECTION_END(); 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 3 Users Say Thank You to AmiSmart For This Useful Post:
Reply

indiTraders - Forum for the Active Indian Trader > Tools > Software > Tradestation


Thread 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 Off
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 08:31 PM.


vBulletin Copyright by vBulletin

Content Relevant URLs by vBSEO 3.3.2