副图公式源码 支持 手机/电脑
GUP1:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
短期多头:SMA(GUP1,3,1),COLORRED;
短期空头:SMA(短期多头,3,1),COLORYELLOW;
GUP2:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
中期多头:SMA(GUP2,5,1),COLORMAGENTA;
中期空头:SMA(中期多头,10,1),COLORGREEN;
多风险:85,COLORBLUE;
空风险:18,COLORWHITE;
STICKLINE(短期多头>短期空头,短期多头,短期空头,1,0),COLORRED;
STICKLINE(短期多头<=短期空头,短期多头,短期空头,1,0),COLORYELLOW;
STICKLINE(中期多头>中期空头,中期多头,中期空头,1,0),COLORMAGENTA;
STICKLINE(中期多头<=中期空头,中期多头,中期空头,1,0),COLORGREEN;
GUP3:=REF(LOW,1);
GUP4:=SMA(ABS(LOW-GUP3),3,1)/SMA(MAX(LOW-GUP3,0),3,1)*100;
GUP5:=EMA(IF(CLOSE*1.2,GUP4*10,GUP4/10),3);
GUP6:=LLV(LOW,38);
GUP7:=HHV(GUP5,38);
GUP8:=IF(LLV(LOW,90),1,0);
GUP9:=EMA(IF(LOW<=GUP6,(GUP5+GUP7*2)/2,0),3)/618*GUP8;
GUP10:=GUP9>5;
GUP11:=IF(COUNT(GUP10,2)=2,(-20),0);
GUP12:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
GUP13:=SMA(ABS(LOW-GUP12),13,1)/SMA(MAX(LOW-GUP12,0),10,1);
GUP14:=EMA(GUP13,10);
GUP15:=LLV(LOW,33);
GUP16:=EMA(IF(LOW<=GUP15,GUP14,0),3);
GUP17:=IF(GUP16>REF(GUP16,1),GUP16,0)*1.1;
STICKLINE(GUP16>REF(GUP16,1),0,GUP16,4,1),COLORRED;
GUP18:=IF(GUP16<REF(GUP16,1),GUP16,0);
抄底:IF(CROSS(GUP18,GUP17) AND GUP11=(-20),100,0),STICK,COLORFF9150,LINETHICK3;
N:=90;M:=3;
GUA1:=REF(LLV(L,N),M);
GUA2:=REFDATE(GUA1,DATE);
GUA3:=GUA2=L AND ((C-L)>(0-C) OR (0-L)>(C-0));
买点:IF(GUA3,88.50,0),STICK,COLORYELLOW,LINETHICK3;
选股公式源码
{选股公式一:抄底}
GUP3:=REF(LOW,1);
GUP4:=SMA(ABS(LOW-GUP3),3,1)/SMA(MAX(LOW-GUP3,0),3,1)*100;
GUP5:=EMA(IF(CLOSE*1.2,GUP4*10,GUP4/10),3);
GUP6:=LLV(LOW,38);
GUP7:=HHV(GUP5,38);
GUP8:=IF(LLV(LOW,90),1,0);
GUP9:=EMA(IF(LOW<=GUP6,(GUP5+GUP7*2)/2,0),3)/618*GUP8;
GUP10:=GUP9>5;
GUP11:=IF(COUNT(GUP10,2)=2,(-20),0);
GUP12:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
GUP13:=SMA(ABS(LOW-GUP12),13,1)/SMA(MAX(LOW-GUP12,0),10,1);
GUP14:=EMA(GUP13,10);
GUP15:=LLV(LOW,33);
GUP16:=EMA(IF(LOW<=GUP15,GUP14,0),3);
GUP17:=IF(GUP16>REF(GUP16,1),GUP16,0)*1.1;
GUP18:=IF(GUP16<REF(GUP16,1),GUP16,0);
{抄底:IF(CROSS(GUP18,GUP17) AND GUP11=(-20),100,0),STICK,COLORFF9150,LINETHICK3;}
抄底:CROSS(GUP18,GUP17) AND GUP11=(-20);
{选股公式二:买点}
N:=90;M:=3;
GUA1:=REF(LLV(L,N),M);
GUA2:=REFDATE(GUA1,DATE);
GUA3:=GUA2=L AND ((C-L)>(0-C) OR (0-L)>(C-0));
{GUP1:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
短期多头:SMA(GUP1,3,1),COLORRED;
短期空头:SMA(短期多头,3,1),COLORYELLOW;
GUP2:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
中期多头:SMA(GUP2,5,1),COLORMAGENTA;
中期空头:SMA(中期多头,10,1),COLORGREEN;
买点:IF(GUA3,88.50,0),STICK,COLORYELLOW,LINETHICK3;}
买点:GUA3;
|