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

CCI request



PureBytes Links

Trading Reference Links

Inputs: CCILength1(6),CCILENGTH2(14),
HistAbove0(green),HistBelow0(red);

Plot1(CCI(CCILength1), "CCI" );
Plot2(CCI(CCILength2), "CCIhist" );
plot3(100);
plot4(-100);

if plot2 > 0 and plot2[1] > 0 and plot2[2] > 0 and plot2[3] > 0 and plot2[4] > 0 then
begin
condition1 = true;
condition2 = false;
end;

if plot2 < 0 and plot2[1] < 0 and plot2[2] < 0 and plot2[3] < 0 and plot2[4] < 0 then
begin
condition1 = false;
condition2 = true;
end;

if condition1 then SetPlotColor(2,HistAbove0);
if condition2 then SetPlotColor(2,HistBelow0);