炒股这东西思路非常重要,指标虽有好有坏,但终究还是要看你怎么用。内功到处,飞花摘叶,皆为利器!!!此指标是做波段的辅助之用,结合信号你将有足够的底气拿住主升浪!所以我建议前面订阅战法的人都可以参考下这个指标。当然没有订阅战法的人也可以适当的参考,今天将源码发出,希望能给大家带来一些新的思路!
源码
XA_1:=IF(CLOSE<OPEN,(CLOSE-OPEN)/OPEN,0);
XA_2:=IF(CLOSE>OPEN,(CLOSE-OPEN)/OPEN,0);
XA_3:=IF(CLOSE>OPEN,(OPEN-LOW)/OPEN,(CLOSE-LOW)/OPEN);
XA_4:=IF(CLOSE>OPEN,(HIGH-CLOSE)/OPEN,(HIGH-OPEN)/OPEN);
XA_5:=IF(BARSLAST(CLOSE>MA(CLOSE,20))>34,34,BARSLAST(CLOSE>MA(CLOSE,20)));
XA_6:=IF(BARSLAST(CLOSE>MA(CLOSE,60))>120,120,BARSLAST(CLOSE>MA(CLOSE,60)));
XA_7:=IF(COUNT(CLOSE>0,250)<240,CAPITAL,SUM(VOL,480)/8);
控盘程度:MA(IF(CLOSE>MA(CLOSE,240) AND (CLOSE-MA(CLOSE,240))/MA(CLOSE,240)+SUM(XA_1,20)>0,((CLOSE-MA(CLOSE,240))/MA(CLOSE,240)+SUM(XA_1,20))/MA(VOL/XA_7,20),0),10)*10,COLORYELLOW;
控盘度:100,COLORRED;
STICKLINE(控盘程度,0,控盘程度,1.7,0),COLORYELLOW;
STICKLINE(控盘程度 AND 控盘程度>100,100,控盘程度,1.7,0),COLORRED;