TheRumpledOne wrote:Just load the indicator into a chart that has 89 and 377 ticks and it should work.
Today, it's raining in Antwerp.
The problem is, I don't think TS allows 2 tick charts on same workspace.
Hope the sun comes out soon!
Moderator: moderators
Code: Select all
[LegacyColorValue = true];
{ _TRO_2_Candle_Trade }
{Attn: TradeStation
if this indicator is posted on the TradeStation Forum, I, TheRumpledOne, did NOT post it there,
so I can't be blamed for this indicator having my contact info.}
{Programmer: Avery T. Horton, Jr. aka TheRumpledOne,
gifts and donations accepted, PO Box 43575, Tucson, AZ 85733 }
{ ? Copyright 2006 Avery T. Horton, Jr.}
inputs:
iDecimals(4),
iLongColor(cyan),
iShortColor(magenta),
iWaitColor(yellow) ;
variables:
xMaxDiffDate(999999),
xMinDiffDate(999999),
xMaxDiff(0),
xMinDiff(999999999),
xAvgDiff(0),
xDiff1(0),
xDiff2(0);
variables:
FG1(white),
BG1(black),
fg2(white),
bg2(black),
fg3(white),
bg3(black),
fg4(white),
bg4(black);
{commentary variables}
variables:
xcomm(0),
oComm1( "" ),
oComm2( "" ),
oComm3( "" ),
oComm4( "" ),
oComm5( "" ),
oComm6( "" ),
oComm7( "" ),
oComm8( "" ),
oComm9( "" ),
oComm10( "" );
{ INITIALIZE }
FG1 = WHITE;
BG1 = BLACK;
fg2 = WHITE;
bg2 = BLACK;
fg3 = WHITE;
bg3 = BLACK;
fg4 = WHITE;
bg4 = BLACK;
xDiff1 = Close of data1 - Open of data1 ;
xDiff2 = Close of data2 - Open of data2 ;
{ Alert criteria }
if xDiff1 > 0
and xDiff2 > 0
then begin
Fg1 = iLongColor;
Bg1 = BLACK;
end
else
if xDiff1 < 0
and xDiff2 < 0
then begin
Fg1 = iShortColor;
Bg1 = BLACK;
end
else
begin
Fg1 = iWaitColor;
Bg1 = BLACK;
end;
Plot1( 0 , "Trade", Fg1 ) ;
xComm = _fCommentary(oComm1, oComm2, oComm3, oComm4, oComm5, oComm6, oComm7, oComm8, oComm9, oComm10);
CommentaryCl(oComm1 );
CommentaryCl(oComm2 );
CommentaryCl(oComm3 );
CommentaryCl(oComm4 );
CommentaryCl(oComm5 );
CommentaryCl(oComm6 );
CommentaryCl(oComm7 );
CommentaryCl(oComm8 );
CommentaryCl(oComm9 );
CommentaryCl(oComm10 );