第一部分 副图公式 手机/电脑
趋势线:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1),COLORYELLOW;
DRAWBAND(趋势线,RGB(155,50,50),50,RGB(0,100,50));
转牛:IF(趋势线>50,趋势线,DRAWNULL),COLORRED;
转熊:IF(趋势线D AND CCI>0 AND DIFF>DEA AND MACD>0,1,0);
STICKLINE(转向=1,50,50,2,0),COLORYELLOW;
STICKLINE(转向=0,50,50,2,0),COLORCYAN;
STICKLINE(C,90,90,1,0),COLORYELLOW;
STICKLINE(C,10,10,1,0),COLORCYAN;
辨势:SMA(趋势线,3,1),COLORYELLOW;
IF(辨势>50 AND 趋势线>辨势,辨势,DRAWNULL ),COLORYELLOW,LINETHICK2;
IF(辨势辨势,辨势,DRAWNULL),COLORFF00FF;
IF(辨势>50 AND 趋势线<辨势,辨势,DRAWNULL),COLORGREEN,LINETHICK2;
危险区:80,COLORFF85FF;
安全区:20,COLORYELLOW,POINTDOT;
顶部:90,COLORFFFF00;
强弱线:50,COLORGREEN,POINTDOT;
DRAWICON(CROSS(趋势线,辨势) AND 趋势线50,趋势线,DRAWNULL),COLORRED;
转熊:IF(趋势线<50,趋势线,DRAWNULL),COLORGREEN;}
辨势:=SMA(趋势线,3,1),COLORYELLOW;
{DRAWICON(CROSS(趋势线,辨势) AND 趋势线<80,辨势,1);}
红箭头图标:CROSS(趋势线,辨势) AND 趋势线50,趋势线,DRAWNULL),COLORRED;
转熊:IF(趋势线<50,趋势线,DRAWNULL),COLORGREEN;}
顶部:=90,COLORFFFF00;
{DRAWICON(CROSS(趋势线,顶部),顶部,2);}
绿箭头图标:CROSS(趋势线,顶部);
{卖出公式二:抛}
RSV:=(CLOSE-LLV(CLOSE,9))/(HHV(CLOSE,9)-LLV(CLOSE,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
CAIHR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
{DRAWICON(CROSS(82,CAIHR1),10,2);
DRAWTEXT(CROSS(82,CAIHR1),35,'抛'),COLORYELLOW;}
抛:CROSS(82,CAIHR1);
|