第一部分 副图公式 手机/电脑
CAIH2:=(2*CLOSE+HIGH+LOW)/4;
CAIH3:=IF(YEAR>=2099 AND MONTH>2,0,1);
CAIH4:=LLV(LOW,5);
CAIH5:=HHV(HIGH,4);
散:=EMA((CAIH2-CAIH4)/(CAIH5-CAIH4)*100,4)*CAIH3;
庄:=EMA(0.667*REF(散,1)+0.333*散,2)*CAIH3;
DRAWICON(CROSS(散,庄) AND 散70,H+0.05,2);
CAIH9:=CLOSE-REF(CLOSE,5);
CAIHA:=EMA(EMA(CAIH9,5),5)/EMA(EMA(ABS(CAIH9),5),5);
CAIHC:=EMA(EMA(CAIH9,20),20)/EMA(EMA(ABS(CAIH9),20),20);
卖:=IF(CAIHA>0 AND CROSS(CAIHC,CAIHA),90,100);
DRAWICON(卖=0 AND BARSLAST(CROSS(CHA3,0))>0,REF((C+O)/2,BARSLAST(CROSS(CHA3,0))),DRAWNULL),COLORMAGENTA,LINETHICK2;
看空:IF(CHA30,REF((C+O)/2,BARSLAST(CROSS(0,CHA3))),DRAWNULL),COLORCYAN,LINETHICK2;
做多:IF(CHA3>=0,CHA1,DRAWNULL),COLORRED,LINETHICK3;
做空:IF(CHA3<0 AND CHA4=2099 AND MONTH>2,0,1);
CAIH4:=LLV(LOW,5);
CAIH5:=HHV(HIGH,4);
CAIH9:=CLOSE-REF(CLOSE,5);
CAIHA:=EMA(EMA(CAIH9,5),5)/EMA(EMA(ABS(CAIH9),5),5);
CAIHC:=EMA(EMA(CAIH9,20),20)/EMA(EMA(ABS(CAIH9),20),20);
散:=EMA((CAIH2-CAIH4)/(CAIH5-CAIH4)*100,4)*CAIH3;
庄:=EMA(0.667*REF(散,1)+0.333*散,2)*CAIH3;
{DRAWICON(CROSS(散,庄) AND 散<30,L-0.05,1);}
红箭头图标:CROSS(散,庄) AND 散<30;
|