以下是大智慧彩虹量价副图源码

{彩虹动向}
DRAWGBK((C> 0),STRIP(RGB(10,10,30),RGB(10,10,10),0));
 DRAWTEXTABS(5,3,STKLABEL+’ ‘+STKNAME+”),Culor00DDFF;
 V1:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*300;
黄柱主力量能:stickline(V1>0,V1,0,4,0),color00CCFF;
 {STICKLINE(V1>0,0,V1,8,0),COLOR00AAFF;
 STICKLINE(V1>0,0,V1,6,0),color00BBFF;}
 STICKLINE(V1>0,0,V1,4.4,0),COLOR00CCFF;
 STICKLINE(V1>0,0,V1,3.3,0),COLOR00DDFF;
 STICKLINE(V1>0,0,V1,2,0),COLOR00EEFF;
 STICKLINE(V1>0,0,V1,1,0),COLOR00FFFF;

{筹码定义和显示}
A33:=EMA(IF(L<= LLV(L,40),SMA(ABS(L-REF(L,1)),40,1)/SMA(MAX(L-REF(L,1),0),40,1),0),3)*10;
庄家吸筹留踪影:STICKLINE(A33,0,A33,6,0),CulorEF7B12,LAYER1;
 STICKLINE(A33,0,A33,4,0),CulorF08728,LAYER1;
 STICKLINE(A33,0,A33,2,0),CulorF29540,LAYER1;
 STICKLINE(A33,0,A33,1,0),CulorF5A963,LAYER1;

红包:= IF(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,10,-5);
 PP:= 红包=10 AND A33>10;
价格线:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*300,linethick2,colorred,LAYER0;
 STICKLINE(PP,价格线,A33,3,0),Culor00CCFF,LAYER0;
 STICKLINE(PP,价格线,价格线+10,3,0),Culor485AFB,LAYER0;
 STICKLINE(PP,A33-10,A33,3,0),Culor485AFB,LAYER0;
参考线:EMA(价格线,6),COLORFFFF00,DOTLINE,LAYER1;
 DRAWTEXT(PP,-10,’底部起飞’),COLORWHITE,ALIGN1,VALIGN1,LINETHICK1;
 DRAWICON(PP,价格线-5,1),layer0,ALIGN1,VALIGN1;

 lna:=SMA(vul,5,1);
 wr1:=100-200*(HHV(Hhv(lna,1),14)-lna)/(HHV(Hhv(lna,1),14)-LLV(Llv(lna,1),14));
 wr2:=100-200*(HHV(Hhv(lna,1),34)-lna)/(HHV(Hhv(lna,1),34)-LLV(Llv(lna,1),34));
 wr3:=100-200*(HHV(Hhv(lna,1),55)-lna)/(HHV(Hhv(lna,1),55)-LLV(Llv(lna,1),55));
量能趋势:(wr1+wr2+wr3)/3,COLORF08728,linethick2,LAYER0;

RSI5:=(SMA(MAX(CLOSE-REF(CLOSE,1),0),3,1))/(SMA(ABS(CLOSE-REF(CLOSE,1)),3,1))*100;
 WR10:=100*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3));
活跃度:(RSI5-WR10)/5,LINETHICK0,CulorWHITE;

STICKLINE(活跃度>0,-30,-30+活跃度,2,1),COLORFF00FF;
 STICKLINE(活跃度<0,-30,-30+活跃度,2,0),COLOR808080;
 STICKLINE(活跃度>13 AND 活跃度<16,-30,-30+活跃度,2,0),COLORFFFF00;
 STICKLINE(活跃度>16,-30,-30+活跃度,2,0),COLORGREEN;{危险}

{以下设置强弱区域提示}
M3:=MA(C,3);
 M5:=MA(C,5);
 N1:=BARSLAST(CROSS(M3,M5));
 N2:=BARSLAST(CROSS(M5,M3));
 N:=IF(N1<N2,N1+1,0-N2-1);
强势区:STICKLINE(N>0,0-100,0-90,10,0),COLOR0000FF;
弱势区:STICKLINE(N<0,0-100,0-110,10,0),Culor808080;
 DRAWTEXTABS(100,3,’【量增价平=看多信号 量增价升=买入信号 量平价升=持续买入 量减价升=继续持有 量减价平=警戒信号 ‘),LINETHICK1,colorwhite;
 DRAWTEXTABS(700,3,’量减价跌=卖出信号 量平价跌=继续卖出 量增价跌=高位空仓,低位弃卖观望】’),COLORYELLOW;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。