副图公式源码支持 手机/电脑
CAP1:=(2*CLOSE+HIGH+LOW)/4;
CAP2:=LLV(LOW,34);
CAP3:=HHV(HIGH,34);
CAA1:EMA((CAP1-CAP2)/(CAP3-CAP2)*100,9),COLORRED;
CAA2:EMA((0.667*REF(CAA1,1)+0.333*CAA1),3),COLORFF9900;
主力线:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3) COLORYELLOW,LINETHICK2;
爆发位:88,COLORFF0000,LINETHICK1;
抄底位:15,COLORRED,LINETHICK2;
DRAWTEXT(CROSS(主力线,抄底位),主力线-8,'▲买一') ,COLORWHITE;
DRAWTEXT(CROSS(爆发位,主力线),主力线+8,'▲卖一') ,COLORGREEN;
DRAWTEXT(CROSS(CAA1,CAA2) AND CAA1<爆发位,CAA1,'←买二'),COLORWHITE;
DRAWTEXT(CROSS(CAA2,CAA1) AND CAA2>抄底位,CAA2,'←卖二'),COLOR0077FF;
选股公式源码
{选股公式一:买一}
主力线:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3) COLORYELLOW,LINETHICK2;
抄底位:=15,COLORRED,LINETHICK2;
买一:CROSS(主力线,抄底位);
{选股公式二:买二}
CAP1:=(2*CLOSE+HIGH+LOW)/4;
CAP2:=LLV(LOW,34);
CAP3:=HHV(HIGH,34);
CAA1:=EMA((CAP1-CAP2)/(CAP3-CAP2)*100,9),COLORRED;
CAA2:=EMA((0.667*REF(CAA1,1)+0.333*CAA1),3),COLORFF9900;
爆发位:=88,COLORFF00FF;
买二:CROSS(CAA1,CAA2) AND CAA1<爆发位;
{卖出公式一:卖一}
主力线:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3) COLORYELLOW,LINETHICK2;
爆发位:=88,COLORFF0000,LINETHICK1;
卖一:CROSS(爆发位,主力线);
{卖出公式二:卖二}
CAP1:=(2*CLOSE+HIGH+LOW)/4;
CAP2:=LLV(LOW,34);
CAP3:=HHV(HIGH,34);
CAA1:=EMA((CAP1-CAP2)/(CAP3-CAP2)*100,9),COLORRED;
CAA2:=EMA((0.667*REF(CAA1,1)+0.333*CAA1),3),COLORFF9900;
抄底位:=15,COLOR00FFFF;
卖二:CROSS(CAA2,CAA1) AND CAA2>抄底位;
|