副图公式源码支持 手机/电脑
N:=1;MA1:MA(C,1);MA5:=MA(C,5);
MA20:=MA(C,20);MA10:=MA(C,10);
MA60:=MA(C,60);
GUA1:=MA5>MA20 AND MA5> MA60 AND MA20>MA60;
GUA2:=C>=MA5 AND L<=MA20;
GUA3:=MA20<=H AND MA20>=L;
GUA4:=GUA1 AND GUA2 AND GUA3;
DRAWTEXT(GUA4,H,'↑穿二'),COLORRED;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2,COLORSTICK;
GUA11:=DIF>0 AND DEA> 0;
GUA12:=CROSS(DIF,DEA);
GUA13:=GUA11 AND GUA12;
DRAWTEXT(GUA13,H,'↑金叉'),COLORLIRED;
GUA21:=REF(H,N+2)/REF(O,N+2)>=1.06;
GUA22:=REF(O,N+1)>REF(C,N+1);
GUA24:=O>C;
GUA26:=GUA21 AND GUA22 AND GUA24;
DRAWTEXT(GUA26,L-0.2,'↑三阴'),COLORYELLOW;
选股公式源码
{选股公式一:金叉}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
GUA11:=DIF>0 AND DEA> 0;
GUA12:=CROSS(DIF,DEA);
GUA13:=GUA11 AND GUA12;
{DRAWTEXT(GUA13,H,'↑金叉'),COLORLIRED;}
金叉:GUA13;
{选股公式二:三阴}
N:=1;
GUA21:=REF(H,N+2)/REF(O,N+2)>=1.06;
GUA22:=REF(O,N+1)>REF(C,N+1);
GUA24:=O>C;
GUA26:=GUA21 AND GUA22 AND GUA24;
{DRAWTEXT(GUA26,L-0.2,'↑三阴'),COLORYELLOW;}
三阴:GUA26;
{选股公式三:穿二}
MA1:=MA(C,1);MA5:=MA(C,5);
MA20:=MA(C,20);MA10:=MA(C,10);
MA60:=MA(C,60);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;
GUA1:=MA5>MA20 AND MA5> MA60 AND MA20>MA60;
GUA2:=C>=MA5 AND L<=MA20;
GUA3:=MA20<=H AND MA20>=L;
GUA4:=GUA1 AND GUA2 AND GUA3;
{DRAWTEXT(GUA4,H,'↑穿二'),COLORRED;}
穿二:GUA4;
|