副图公式源码 :支持手机/电脑
GUA1:=C>REF(C,4);
NT:=BARSLASTCOUNT(GUA1);
GUT11:=NT=9;
GUT13:=ISLASTBAR AND BETWEEN(NT,5,8);
DRAWTEXT(NT=9,H*1.007,'▲高点'),COLORGREEN;
K1:=REF(C,0)>REF(C,13);
K2:=REF(NT=9,13);
DRAWTEXT(K1 AND K2,H*1.007,'■逃顶'),COLORGREEN;
B1:=C<REF(C,4);
NT0:=BARSLASTCOUNT(B1);
GUT21:=NT0=9 ;
GUT23:=ISLASTBAR AND BETWEEN(NT0,5,8);
DRAWTEXT(NT0=9,L*0.994,'▲低点'),COLORRED;
T1:=REF(C,0)<REF(C,13);
T2:=REF(NT0=9,13);
DRAWTEXT(T1 AND T2,L*0.994,'■抄底'),COLORRED;
GUA1A:=EMA(CLOSE, 9);
GUA1B:=((GUA1A - EMA(CLOSE, 5)) < 0);
GUA1C:=((GUA1A - EMA(CLOSE, 5)) > 0);
GUA1D:=BARSLAST(GUA1B);
GUA1E:=BARSLAST(GUA1C);
GUA1F:=IF((GUA1E > 0),(CLOSE - REF(CLOSE, 1)) / REF(CLOSE, 1) * 100,0);
GUA20:=SUM(GUA1F,0);
GUA21:=IF((GUA1D > 0),(0 - 2),0);
GUA22:=IF((GUA1E > 0),SUM((CLOSE - REF(CLOSE, 1)) / REF(CLOSE, 1) * 100,GUA1E),0);
GUA23:=GUA22 / GUA1E;
GUA25:=EMA(EMA(EMA(CLOSE, 3), 3), 3);
上升轨道(GUA25 - REF(GUA25, 1)) + GUA25),COLORRED;
反转轨道:MA(上升轨道, 15),COLORGREEN;
选股公式源码
{选股公式一:抄底}
GUA1:=C>REF(C,4),colorwhite;
NT:=BARSLASTCOUNT(GUA1),colorwhite;
GUT11:=NT=9,colorwhite;
GUT13:=ISLASTBAR AND BETWEEN(NT,5,8),colorwhite;
K1:=REF(C,0)>REF(C,13),colorwhite;
K2:=REF(NT=9,13),colorwhite;
B1:=C<REF(C,4),colorwhite;
NT0:=BARSLASTCOUNT(B1),colorwhite;
GUT21:=NT0=9,colorwhite;
GUT23:=ISLASTBAR AND BETWEEN(NT0,5,8),colorwhite;
T1:=REF(C,0)<REF(C,13),colorwhite;
T2:=REF(NT0=9,13),colorwhite;
抄底:T1 AND T2;
{选股公式二:低点}
GUA1:=C>REF(C,4);
NT:=BARSLASTCOUNT(GUA1);
GUT11:=NT=9;
GUT13:=ISLASTBAR AND BETWEEN(NT,5,8);
B1:=C<REF(C,4);
NT0:=BARSLASTCOUNT(B1);
GUT21:=NT0=9 ;
GUT23:=ISLASTBAR AND BETWEEN(NT0,5,8);
T1:=REF(C,0)<REF(C,13);
T2:=REF(NT0=9,13);
低点:NT0=9; |