通达信简单的公式,主散筹,副图,源码
STICKLINE(C>0,0,0,10,0),COLORGRAY;
bc:=((H*0.5+L*0.5)*0.382+(O*0.382+C*0.618)*0.618);
lj:=if(INDEXC=c,bc,(bc+AMOUNT/(V*100))/2),COLORGRAY;
WQFS:=if(INDEXC=C,48,SUMBARS(VOL,CAPITAL));
FSH:=ma(HHV(bc,WQFS*0.382),WQFS);
FSL:=ma(LLV(bc,WQFS*0.618),WQFS);
主筹线:(LJ-FSL)/((FSH+FSL)/2)*100,COLORYELLOW;
散筹线:(FSH-LJ)/((FSL+FSH)/2)*100,COLORCYAN;
87177899.jpg
|