Dear senior members,

I have the following AFL. I want to add to it an upward arrow when the color is green, and a downward arrow when the color is red, and no arrow when the color is gold or pink.

Can someone please help me with this?

Thanks,

vgakkhar

Ctmpl = E_TSKPCOLORTMPL(Open,High,Low,Close,Volume);
total = 0;
total = total + IIf(tskp_colortmplcnd0 > 0, 1, -1);
total = total + IIf(tskp_colortmplcnd1 > 0, 1, -1);
total = total + IIf(tskp_colortmplcnd2 > 0, 1, -1);
total = total + IIf(tskp_colortmplcnd3 > 0, 1, -1);
total = total + IIf(tskp_colortmplcnd4 > 0, 1, -1);
total = total + IIf(tskp_colortmplcnd5 > 0, 1, -1);
total = total + IIf(tskp_colortmplcnd6 > 0, 1, -1);
total = total + IIf(tskp_colortmplcnd7 > 0, 1, -1);
total = total + IIf(tskp_colortmplcnd8 > 0, 1, -1);
//tskp_fast2val1, tskp_fast2val2
dummy = E_TSKPFAST2(Open,High,Low,Close,Volume);
KPFast2Val = IIf ((tskp_fast2val1 > 0),1,-1);
PrevFast2Val = Ref(KPFast2Val,-1);

for( i = 1; i < BarCount; i++ )
{

if( total[i] >= 5 )
Color[i] = colorGreen;
else if( total[i] <= -5 )
Color[i] = colorRed;
else
Color[i] = colorPink;

if(KPFast2Val[i] != PrevFast2Val[i])
Color[i] = colorGold;

}

CO = Open;
CH = High;
CL = Low;
CC = Close;
PlotOHLC( CO,CH,CL,CC, "Price", color,styleLine | styleDots );//Plot Selected Ticker


Reply via email to