收集:中国股票市场经济分析网
[通达信] 无未来极品主图源码
{极品主图}
{N 1 100 20}
中:= MA(CLOSE,20);
2009-5-15 00:59
上:=中+3*STD(CLOSE,20);
下:=中-3*STD(CLOSE,20);
STICKLINE(C>中,上,中,6,0),COLOR905000;
STICKLINE(C<中,下,中,6,0),COLOR009000;
STICKLINE(C<MA(C,5) AND C>中,上,中,0,-1),COLOR999999;
上极:中+2*STD(CLOSE,N),COLOR00DDDD;
下极:中-2*STD(CLOSE,N),COLOR00DDDD;
上轨:中+STD(CLOSE,N),COLOR004900;
下轨:中-STD(CLOSE,N),COLOR004900;
上警:中+3*STD(CLOSE,N),COLORDD00DD,LINETHICK1;
下警:中-3*STD(CLOSE,N),COLORDD00DD,LINETHICK1;
中轴:中,,COLOR009000,LINETHICK2;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE(C>O,C,O,3,0),COLOR000099;
STICKLINE(C>O,C,O,2,0),COLOR0000CC;
STICKLINE(C>O,C,O,1,0),COLOR0000FF;
STICKLINE(C>O,C,O,0,0),COLORCC66FF;
STICKLINE(O>=C,C,O,3,0),COLOR777700;
STICKLINE(O>=C,C,O,2,0),COLOR999900;
STICKLINE(O>=C,C,O,1,0),COLORBBBB00;
STICKLINE(O>=C,C,O,0,0),COLORFFFF00;
STICKLINE(CLOSE>REF(CLOSE,1)*1.095 AND CLOSE=HIGH,CLOSE,OPEN,0,1),COLOR00FFFF;{涨停}
STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,0,1),COLORFFFFFF;{跌停};
AA:=IF((CLOSE < 100),CLOSE,(CLOSE / 100));
AAA:=INTPART(((4 * (LOG(AA) / LOG(2))) + 1));
BBB:=((AAA - 1) / 4);
支撑:IF((CLOSE > 100),(POW(2,BBB) * 100),POW(2,BBB)),POINTDOT,LINETHICK1,COLORBROWN;
压力:IF((CLOSE > 100),(POW(2,(BBB + (1 / 4))) * 100),POW(2,(BBB + (1 / 4)))),POINTDOT,LINETHICK1;