通达信改造指标,主力踪迹,副图源码
DH:=(MIN(C,O)+2*H)/3;XL:=(MAX(C,O)+2*l)/3;
重心:=(DH+XL)/2;
均价:=AMOUNT/(VOL*100);
折价:=if(INDEXC=C,(重心+2*c)/3,(重心+均价+C)/3);
LB:=((SUM(v,10)/SUM(v,40)+ma(v,6)/SUM(v,18)+v/SUM(v,8))/3+(SUM(v,5)/SUM(v,20)+ma(v,3)/SUM(v,9)+v/SUM(v,4))/3+(v/SUM(v,4)+v/SUM(v,3)+v/SUM(v,2))/3)/3;
TYP := 折价-REF(折价,1);
ZJL:=SUM(IF(TYP>0,折价*VOL,0),32)/SUM(IF(TYP<0,折价*VOL,0),32);
运作线:100-(100/(1+ZJL)),COLORWHITE;
踪迹线:DMA(运作线,LB),COLOR6600FF,COLORYELLOW;
底线:32,COLOR00bb00;
反弹线:40,COLORMAGENTA,DOTLINE;
分界线:52,COLORRED;
强势线:64,COLOR1188FF,DOTLINE;
风险线:72,COLORAAAA00;
612266335.jpg
|