公式源碼:
- 上線(xiàn):=SMA(C,6.5,1);
- 下線(xiàn):=SMA(C,13.5,1);
- 上線(xiàn)1:=SMA(C,3,1);
- 下線(xiàn)1:=SMA(C,8,1);
- STICKLINE(上線(xiàn)>下線(xiàn) , 上線(xiàn),下線(xiàn) ,2, 0),COLORRED,LINETHICK2;
- STICKLINE(下線(xiàn)>上線(xiàn),上線(xiàn),下線(xiàn),2,0),COLORYELLOW,LINETHICK2;
- DRAWTEXT( CROSS(上線(xiàn),下線(xiàn)),LOW *0.98,''買(mǎi)點(diǎn)吧'' ),COLOR00FF00;
- DRAWTEXT(CROSS(下線(xiàn)1,上線(xiàn)1),H*1.02,''清倉(cāng)''),COLORYELLOW;
- BBI:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
- UPR:=BBI+3*STD(BBI,13),LINETHICK2;
- DWN:=BBI-3*STD(BBI,13);
- 安全:=MA(C,60),LINETHICK2;
- LC:=REF(C,1);
- RSI:=SMA(MAX(C-LC,0),6,1)/SMA(ABS(C-LC),6,1)*100;
- DRAWTEXT( CROSS(82,RSI) , H*1.02,''減倉(cāng)'') ,COLORFF9966,LINETHICK2;
- A7:=(2*C+H+L)/4;
- 操作:MA(A7,5),LINETHICK2;
- 操作1:=MA(A7,5)*1.03,LINETHICK2;
- 操作2:=MA(A7,5)*0.97,LINETHICK2;
- VAR1:LLV(A7,21);
- VAR2:HHV(A7,21);
- SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);
- SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
- DRAWTEXT(IF(COUNT(C<REF(C,1),8)/8>6/10 AND V>=1.5*MA(V,5) AND
- COUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW*0.98,''買(mǎi)進(jìn)'') ,COLOR0099FF;
- DRAWTEXT(IF(COUNT(C<REF(C,1),13)/13>6/10 AND
- COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(C>=O,4) AND
- REF(C>O,3) AND REF(C>O,2) AND REF(O>C,1) AND
- O>REF(C,1),1,0),LOW*0.98,''買(mǎi)進(jìn)'') ,COLORYELLOW;
- D:=MA(C,80)-MA(C,10)/3;
- DRAWTEXT(IF(C<D AND V/240>MA(V,5)/240 AND C>REF(C,1)*1.08
- AND C<MA(C,13)*1.3,1,0),LOW*0.98,''抄底''),COLORYELLOW;
- DRAWTEXT_FIX(C>O,0.85,0.001,0,''明陽(yáng)程序化CXH110.COM''),COLORFF7F00;