input:p1(5,1,999),p2(13,1,999),p3(21,1,999),p4(34,1,999);
{----------移动平均线线---------------------------}
MA1:MA(REVERSE(CLOSE),P1),ColorFFFFFF,LINETHICK2,LAYER0;
MA2:MA(REVERSE(CLOSE),P2),Color80FFFF,LINETHICK2,LAYER0;
MA3:MA(REVERSE(CLOSE),P3),Color80FF00,LINETHICK2,LAYER0;
MA4:MA(REVERSE(CLOSE),P4),Color8000FF,LINETHICK2,LAYER0;
{----------3DK线---------------------------}
STICKLINE((REVERSE(OPEN) >= REVERSE(CLOSE)),REVERSE(CLOSE),REVERSE(OPEN),9,0),colorFF5B00;
STICKLINE((REVERSE(OPEN) >= REVERSE(CLOSE)),REVERSE(CLOSE),REVERSE(OPEN),8,0),colorFF6C00;
STICKLINE((REVERSE(OPEN) >= REVERSE(CLOSE)),REVERSE(CLOSE),REVERSE(OPEN),7,0),colorFF7B00;
STICKLINE((REVERSE(OPEN) >= REVERSE(CLOSE)),REVERSE(CLOSE),REVERSE(OPEN),6,0),colorFF9C00;
STICKLINE((REVERSE(OPEN) >= REVERSE(CLOSE)),REVERSE(CLOSE),REVERSE(OPEN),5,0),colorFFBE00;
STICKLINE((REVERSE(OPEN) >= REVERSE(CLOSE)),REVERSE(CLOSE),REVERSE(OPEN),3.5,0),colorFFCC00;
STICKLINE((REVERSE(OPEN) >= REVERSE(CLOSE)),REVERSE(CLOSE),REVERSE(OPEN),1.5,0),colorFFFF00;
STICKLINE((REVERSE(CLOSE) >= REVERSE(OPEN)),REVERSE(CLOSE),REVERSE(OPEN),9,0),color070084;
STICKLINE((REVERSE(CLOSE) >= REVERSE(OPEN)),REVERSE(CLOSE),REVERSE(OPEN),8,0),color0000A3;
STICKLINE((REVERSE(CLOSE) >= REVERSE(OPEN)),REVERSE(CLOSE),REVERSE(OPEN),7,0),color0000B7;
STICKLINE((REVERSE(CLOSE) >= REVERSE(OPEN)),REVERSE(CLOSE),REVERSE(OPEN),6,0),color0000CD;
STICKLINE((REVERSE(CLOSE) >= REVERSE(OPEN)),REVERSE(CLOSE),REVERSE(OPEN),5,0),color0000E9;
STICKLINE((REVERSE(CLOSE) >= REVERSE(OPEN)),REVERSE(CLOSE),REVERSE(OPEN),3,0),color0754E9;
STICKLINE((REVERSE(CLOSE) >= REVERSE(OPEN)),REVERSE(CLOSE),REVERSE(OPEN),1.5,0),color076fF3;
STICKLINE((REVERSE(CLOSE) >= REVERSE(OPEN)),REVERSE(CLOSE),REVERSE(OPEN),1,0),color079BF3;
STICKLINE(REVERSE(CLOSE)>REVERSE(OPEN),REVERSE(CLOSE),REVERSE(OPEN),0,0) ,COLORFFBBFF;
STICKLINE(REVERSE(CLOSE)>REVERSE(OPEN),REVERSE(CLOSE),REVERSE(OPEN),8,0) ,COLORFF00FF;
STICKLINE(REVERSE(CLOSE)>REVERSE(OPEN),REVERSE(CLOSE),REVERSE(OPEN),7,0) ,COLORFF22FF;
STICKLINE(REVERSE(CLOSE)>REVERSE(OPEN),REVERSE(CLOSE),REVERSE(OPEN),6,0) ,COLORFF44FF;
STICKLINE(REVERSE(CLOSE)>REVERSE(OPEN),REVERSE(CLOSE),REVERSE(OPEN),5,0) ,COLORFF66FF;
STICKLINE(REVERSE(CLOSE)>REVERSE(OPEN),REVERSE(CLOSE),REVERSE(OPEN),4,0) ,COLORFF88FF;
STICKLINE(REVERSE(CLOSE)>REVERSE(OPEN),REVERSE(CLOSE),REVERSE(OPEN),3,0) ,COLORFF99FF;
STICKLINE(REVERSE(CLOSE)>REVERSE(OPEN),REVERSE(CLOSE),REVERSE(OPEN),2,0) ,COLORFFAAFF;
STICKLINE(REVERSE(CLOSE)>REVERSE(OPEN),REVERSE(CLOSE),REVERSE(OPEN),1,0) ,COLORFFBBFF;
STICKLINE((REVERSE(CLOSE) > REVERSE(OPEN)),REVERSE(OPEN),REVERSE(LOW),1,0),color0726CA;
STICKLINE((REVERSE(CLOSE) > REVERSE(OPEN)),REVERSE(CLOSE),REVERSE(HIGH),1,0),color0726CA;
STICKLINE((REVERSE(OPEN) > REVERSE(CLOSE)),REVERSE(CLOSE),REVERSE(LOW),1,0),colorDE9100;
STICKLINE((REVERSE(OPEN) > REVERSE(CLOSE)),REVERSE(OPEN),REVERSE(HIGH),1,0),colorDE9100;
{K线倒图 通达信源码,参数自己设置吧}
MA1:MA(REVERSE(CLOSE),P1),COLORFFFFFF,LINETHICK2;
MA2:MA(REVERSE(CLOSE),P2),COLOR80FFFF,LINETHICK2;
MA3:MA(REVERSE(CLOSE),P3),COLOR80FF00,LINETHICK2;
MA4:MA(REVERSE(CLOSE),P4),COLOR8000FF,LINETHICK2;
STICKLINE((REVERSE(OPEN) >= REVERSE(CLOSE)),REVERSE(CLOSE),REVERSE(OPEN),9,0),COLORFF5B00;
STICKLINE((REVERSE(OPEN) >= REVERSE(CLOSE)),REVERSE(CLOSE),REVERSE(OPEN),8,0),COLORFF6C00;
STICKLINE((REVERSE(OPEN) >= REVERSE(CLOSE)),REVERSE(CLOSE),REVERSE(OPEN),7,0),COLORFF7B00;
STICKLINE((REVERSE(OPEN) >= REVERSE(CLOSE)),REVERSE(CLOSE),REVERSE(OPEN),6,0),COLORFF9C00;
STICKLINE((REVERSE(OPEN) >= REVERSE(CLOSE)),REVERSE(CLOSE),REVERSE(OPEN),5,0),COLORFFBE00;
STICKLINE((REVERSE(OPEN) >= REVERSE(CLOSE)),REVERSE(CLOSE),REVERSE(OPEN),3.5,0),COLORFFCC00;
STICKLINE((REVERSE(OPEN) >= REVERSE(CLOSE)),REVERSE(CLOSE),REVERSE(OPEN),1.5,0),COLORFFFF00;
STICKLINE((REVERSE(CLOSE) >= REVERSE(OPEN)),REVERSE(CLOSE),REVERSE(OPEN),9,0),COLOR070084;
STICKLINE((REVERSE(CLOSE) >= REVERSE(OPEN)),REVERSE(CLOSE),REVERSE(OPEN),8,0),COLOR0000A3;
STICKLINE((REVERSE(CLOSE) >= REVERSE(OPEN)),REVERSE(CLOSE),REVERSE(OPEN),7,0),COLOR0000B7;
STICKLINE((REVERSE(CLOSE) >= REVERSE(OPEN)),REVERSE(CLOSE),REVERSE(OPEN),6,0),COLOR0000CD;
STICKLINE((REVERSE(CLOSE) >= REVERSE(OPEN)),REVERSE(CLOSE),REVERSE(OPEN),5,0),COLOR0000E9;
STICKLINE((REVERSE(CLOSE) >= REVERSE(OPEN)),REVERSE(CLOSE),REVERSE(OPEN),3,0),COLOR0754E9;
STICKLINE((REVERSE(CLOSE) >= REVERSE(OPEN)),REVERSE(CLOSE),REVERSE(OPEN),1.5,0),COLOR076FF3;
STICKLINE((REVERSE(CLOSE) >= REVERSE(OPEN)),REVERSE(CLOSE),REVERSE(OPEN),1,0),COLOR079BF3;
STICKLINE(REVERSE(CLOSE)>REVERSE(OPEN),REVERSE(CLOSE),REVERSE(OPEN),0,0) ,COLORFFBBFF;
STICKLINE(REVERSE(CLOSE)>REVERSE(OPEN),REVERSE(CLOSE),REVERSE(OPEN),8,0) ,COLORFF00FF;
STICKLINE(REVERSE(CLOSE)>REVERSE(OPEN),REVERSE(CLOSE),REVERSE(OPEN),7,0) ,COLORFF22FF;
STICKLINE(REVERSE(CLOSE)>REVERSE(OPEN),REVERSE(CLOSE),REVERSE(OPEN),6,0) ,COLORFF44FF;
STICKLINE(REVERSE(CLOSE)>REVERSE(OPEN),REVERSE(CLOSE),REVERSE(OPEN),5,0) ,COLORFF66FF;
STICKLINE(REVERSE(CLOSE)>REVERSE(OPEN),REVERSE(CLOSE),REVERSE(OPEN),4,0) ,COLORFF88FF;
STICKLINE(REVERSE(CLOSE)>REVERSE(OPEN),REVERSE(CLOSE),REVERSE(OPEN),3,0) ,COLORFF99FF;
STICKLINE(REVERSE(CLOSE)>REVERSE(OPEN),REVERSE(CLOSE),REVERSE(OPEN),2,0) ,COLORFFAAFF;
STICKLINE(REVERSE(CLOSE)>REVERSE(OPEN),REVERSE(CLOSE),REVERSE(OPEN),1,0) ,COLORFFBBFF;
STICKLINE((REVERSE(CLOSE) > REVERSE(OPEN)),REVERSE(OPEN),REVERSE(LOW),1,0),COLOR0726CA;
STICKLINE((REVERSE(CLOSE) > REVERSE(OPEN)),REVERSE(CLOSE),REVERSE(HIGH),1,0),COLOR0726CA;
STICKLINE((REVERSE(OPEN) > REVERSE(CLOSE)),REVERSE(CLOSE),REVERSE(LOW),1,0),COLORDE9100;
STICKLINE((REVERSE(OPEN) > REVERSE(CLOSE)),REVERSE(OPEN),REVERSE(HIGH),1,0),COLORDE9100;
|