飞狐两上一下指标公式
2020/9/22 18:29:00
X1:=EMA(((2*C+H+L)/4-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,13)-21;
X2:=EMA(0.618*REF(X1,1)+0.382*X1,3);
if(x2>x1,x1,x1),colorff00ff;
if(x1>x2,x2,x1),color00ff00;
lmx1:=WINNER(CLOSE)*100;
lmx2:=100-lmx1;
lmx3:=ABS(lmx1-lmx2);
TD:=Backset(ISLASTBAR,1);
P:=SYSPARAM(1);
STICKLINE(TD,lmx3[P],0,3,0),COLORMAGENTA,shift2,align0,PXUP20;
STICKLINE(TD,lmx2[P],0,3,0 ),COLORCYAN,shift1,align0,PXUP20;
STICKLINE(TD,lmx1[P],0,3,0),COLORRED,shift3,align0,PXUP20;
DRAWTEXT(TD AND lmx1,lmx1[P],'牛'),COLORRED,shift3,align0,PXUP30;
DRAWTEXT(TD AND lmx2,lmx2[P],'熊'),COLORCYAN,shift1,align0,PXUP30;
DRAWTEXT(TD AND lmx3,lmx3[P],'马'),COLORMAGENTA,shift2,align0,PXUP30;
投 股票网 www .tou18.cn
股市公式下载推荐