[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Verify fancy cci



PureBytes Links

Trading Reference Links

Hello Ben

Several variables are not defined. You can define them, for example, by adding these two lines before any other lines:

Inputs: CCILength(14), CCILength2(9), BarsAboveBelow0(3) ;
Vars: Up(Blue), Down(Red), Longs(Cyan), Shorts(Magenta), Above0(Green), Below0(Yellow) ;

(Note: These values are for illustration purpose only. You need to pick what are appropriate for your application.)

Then go experimenting from there. Hope it goes well for you.

-- Harrison

Ben wrote:

Could someone get this to verify in 2000i???

Mine wigs out starting with the first line.

No, I'm not that E.L. savy. Grin





Plot1(CCI(CCILength), "CCI" );
Plot2(CCI(CCILength), "CCIhist" );
Plot3(CCI(CCILength2), "CCI2" );
Plot4(0,"ZeroLine");

if plot1 > plot1[1] then setplotcolor[1](1,up);
if plot1 < plot1[1] then setplotcolor[1](1,down);

if lowest(plot2,BarsAboveBelow0) >= 0 then
begin
condition1 = true;
condition2 = false;
end;

if highest(plot2,BarsAboveBelow0) <= 0 then
begin
condition1 = false;
condition2 = true;
end;

if plot2[1] crosses above 100 then begin
condition3 = true;
condition4 = false;
end;

if plot2[1] crosses below -100 then begin
condition3 = false;
condition4 = true;
end;

if condition1 then if condition3 then SetPlotColor(2,Longs) else
SetPlotColor(2,Above0);
if condition2 then if condition4 then SetPlotColor(2,Shorts) else
SetPlotColor(2,Below0);