副图公式源码 支持 手机/电脑
N:=10;
均线5:=MA(CLOSE,5);
均线10:=MA(CLOSE,10);
均线20:=MA(CLOSE,20);
均线30:=MA(CLOSE,30);
均线60:=MA(CLOSE,60);
均线90:=MA(CLOSE,90);
均线120:=MA(CLOSE,120);
均线250:=MA(CLOSE,250);
GUP1:=MAX(MAX(均线5,均线10),MAX(均线20,均线30));
GUP2:=MAX(MAX(GUP1,均线60),MAX(均线90,均线120));
GUP3:=MIN(MIN(均线5,均线10),MIN(均线20,均线30));
GUP4:=MIN(MIN(GUP3,均线60),MIN(均线90,均线120));
GUA1:=(GUP2/GUP4-1)*100<N,COLORFFFFFF;
GUA2:=(GUP2/GUP4-1)*100<N AND GUP4>均线250,COLOR00FFFF;
GUB1:=(GUA1 AND CROSS(C,均线5))*0.5,COLORFF00FF;
GUB2:=(GUA1 AND CROSS(C,均线10))*1,COLOR00FF00;
GUB3:=(GUA1 AND CROSS(C,均线20))*2,COLORAAAAAA;
GUB4:=(GUA1 AND CROSS(C,均线30))*3,COLORFF8000;
GUC1:=(C/REF(C,1)-1)*100>=2 AND V>REF(V,1);
GUC2:=((GUB1/0.5)+GUB2+(GUB3/2)+(GUB4/3))>=2;
精选买一:GUC1 AND GUC2 AND 均线30>REF(均线30,1),COLORLIRED;
精选买二:GUC1 AND GUC2 AND 均线30>REF(均线30,1) AND GUA2,COLORRED;
选股公式源码
{选股公式一:精选买一}
N:=10;
均线5:=MA(CLOSE,5);
均线10:=MA(CLOSE,10);
均线20:=MA(CLOSE,20);
均线30:=MA(CLOSE,30);
均线60:=MA(CLOSE,60);
均线90:=MA(CLOSE,90);
均线120:=MA(CLOSE,120);
均线250:=MA(CLOSE,250);
GUP1:=MAX(MAX(均线5,均线10),MAX(均线20,均线30));
GUP2:=MAX(MAX(GUP1,均线60),MAX(均线90,均线120));
GUP3:=MIN(MIN(均线5,均线10),MIN(均线20,均线30));
GUP4:=MIN(MIN(GUP3,均线60),MIN(均线90,均线120));
GUA1:=(GUP2/GUP4-1)*100<N,COLORFFFFFF;
GUB1:=(GUA1 AND CROSS(C,均线5))*0.5,COLORFF00FF;
GUB2:=(GUA1 AND CROSS(C,均线10))*1,COLOR00FF00;
GUB3:=(GUA1 AND CROSS(C,均线20))*2,COLORAAAAAA;
GUB4:=(GUA1 AND CROSS(C,均线30))*3,COLORFF8000;
GUC1:=(C/REF(C,1)-1)*100>=2 AND V>REF(V,1);
GUC2:=((GUB1/0.5)+GUB2+(GUB3/2)+(GUB4/3))>=2;
精选买一:GUC1 AND GUC2 AND 均线30>REF(均线30,1),COLORLIRED;
{选股公式二:精选买二}
N:=10;
均线5:=MA(CLOSE,5);
均线10:=MA(CLOSE,10);
均线20:=MA(CLOSE,20);
均线30:=MA(CLOSE,30);
均线60:=MA(CLOSE,60);
均线90:=MA(CLOSE,90);
均线120:=MA(CLOSE,120);
均线250:=MA(CLOSE,250);
GUP1:=MAX(MAX(均线5,均线10),MAX(均线20,均线30));
GUP2:=MAX(MAX(GUP1,均线60),MAX(均线90,均线120));
GUP3:=MIN(MIN(均线5,均线10),MIN(均线20,均线30));
GUP4:=MIN(MIN(GUP3,均线60),MIN(均线90,均线120));
GUA1:=(GUP2/GUP4-1)*100<N,COLORFFFFFF;
GUA2:=(GUP2/GUP4-1)*100<N AND GUP4>均线250,COLOR00FFFF;
GUB1:=(GUA1 AND CROSS(C,均线5))*0.5,COLORFF00FF;
GUB2:=(GUA1 AND CROSS(C,均线10))*1,COLOR00FF00;
GUB3:=(GUA1 AND CROSS(C,均线20))*2,COLORAAAAAA;
GUB4:=(GUA1 AND CROSS(C,均线30))*3,COLORFF8000;
GUC1:=(C/REF(C,1)-1)*100>=2 AND V>REF(V,1);
GUC2:=((GUB1/0.5)+GUB2+(GUB3/2)+(GUB4/3))>=2;
精选买二:GUC1 AND GUC2 AND 均线30>REF(均线30,1) AND GUA2,COLORRED;
|