副图公式源码 支持 手机/电脑
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);
CAI1:=MAX(MAX(均线5,均线10),MAX(均线20,均线30));
CAI2:=MAX(MAX(CAI1,均线60),MAX(均线90,均线120));
CAI3:=MIN(MIN(均线5,均线10),MIN(均线20,均线30));
CAI4:=MIN(MIN(CAI3,均线60),MIN(均线90,均线120));
CHA1:=(CAI2/CAI4-1)*100<N,COLORFFFFFF;
CHA2:=(CAI2/CAI4-1)*100<N AND CAI4>均线250,COLOR00FFFF;
CHB1:=(CHA1 AND CROSS(C,均线5))*0.5,COLORFF00FF;
CHB2:=(CHA1 AND CROSS(C,均线10))*1,COLOR00FF00;
CHB3:=(CHA1 AND CROSS(C,均线20))*2,COLORAAAAAA;
CHB4:=(CHA1 AND CROSS(C,均线30))*3,COLORFF8000;
CHC1:=(C/REF(C,1)-1)*100>=2 AND V>REF(V,1);
CHC2:=((CHB1/0.5)+CHB2+(CHB3/2)+(CHB4/3))>=2;
精选买一:CHC1 AND CHC2 AND 均线30>REF(均线30,1),COLORLIRED;
精选买二:CHC1 AND CHC2 AND 均线30>REF(均线30,1) AND CHA2,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);
CAI1:=MAX(MAX(均线5,均线10),MAX(均线20,均线30));
CAI2:=MAX(MAX(CAI1,均线60),MAX(均线90,均线120));
CAI3:=MIN(MIN(均线5,均线10),MIN(均线20,均线30));
CAI4:=MIN(MIN(CAI3,均线60),MIN(均线90,均线120));
CHA1:=(CAI2/CAI4-1)*100<N,COLORFFFFFF;
CHB1:=(CHA1 AND CROSS(C,均线5))*0.5,COLORFF00FF;
CHB2:=(CHA1 AND CROSS(C,均线10))*1,COLOR00FF00;
CHB3:=(CHA1 AND CROSS(C,均线20))*2,COLORAAAAAA;
CHB4:=(CHA1 AND CROSS(C,均线30))*3,COLORFF8000;
CHC1:=(C/REF(C,1)-1)*100>=2 AND V>REF(V,1);
CHC2:=((CHB1/0.5)+CHB2+(CHB3/2)+(CHB4/3))>=2;
精选买一:CHC1 AND CHC2 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);
CAI1:=MAX(MAX(均线5,均线10),MAX(均线20,均线30));
CAI2:=MAX(MAX(CAI1,均线60),MAX(均线90,均线120));
CAI3:=MIN(MIN(均线5,均线10),MIN(均线20,均线30));
CAI4:=MIN(MIN(CAI3,均线60),MIN(均线90,均线120));
CHA1:=(CAI2/CAI4-1)*100<N,COLORFFFFFF;
CHA2:=(CAI2/CAI4-1)*100<N AND CAI4>均线250,COLOR00FFFF;
CHB1:=(CHA1 AND CROSS(C,均线5))*0.5,COLORFF00FF;
CHB2:=(CHA1 AND CROSS(C,均线10))*1,COLOR00FF00;
CHB3:=(CHA1 AND CROSS(C,均线20))*2,COLORAAAAAA;
CHB4:=(CHA1 AND CROSS(C,均线30))*3,COLORFF8000;
CHC1:=(C/REF(C,1)-1)*100>=2 AND V>REF(V,1);
CHC2:=((CHB1/0.5)+CHB2+(CHB3/2)+(CHB4/3))>=2;
精选买二:CHC1 AND CHC2 AND 均线30>REF(均线30,1) AND CHA2,COLORRED; |