通達信【回旋點主副選】指标源碼
{主圖指标源碼}
當日成本:=IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/12);
瘋牛線:=EXPMEMA(當日成本,3),LINETHICK1;
龍頭線:=EXPMEMA(當日成本,8),LINETHICK2;
慢牛線:=EXPMEMA(當日成本,25),LINETHICK2;
生命線:=EXPMEMA(當日成本,79),LINETHICK3;
牛熊線:=EXPMEMA(當日成本,248),LINETHICK3;
V2:=EMA(當日成本,13)-EMA(當日成本,34);
V3:=EMA(V2,5);
CYC13:=0.01*EXPMA(AMOUNT,13)/EXPMA(VOL,13);
CYC34:=0.01*EXPMA(AMOUNT,34)/EXPMA(VOL,34);
CYS13:=(CLOSE-CYC13)/CYC13*100;
CYS34:=(CLOSE-CYC34)/CYC34*100;
CYC5:=0.01*EXPMA(AMOUNT,5)/EXPMA(VOL,5);
CYS5:=(CLOSE-CYC5)/CYC5*100;
DIVE:=0.01*EXPMA(AMOUNT,5)/EXPMA(VOL,5);
CYR5:=(DIVE/REF(DIVE,1)-1)*100;
A:=(REF(CLOSE/REF(CLOSE,1),3)>1.099 OR REF(CLOSE/REF(CLOSE,1),6)>1.099 OR REF(CLOSE/REF(CLOSE,1),4)>1.099 OR REF(CLOSE/REF(CLOSE,1),5)>1.099 OR REF(CLOSE/REF(CLOSE,1),2)>1.099) AND CROSS(龍頭線,LOW) AND UPNDAY(慢牛線,3);
DRAWTEXT(A,L*0.99,'**回旋點'),COLORYELLOW;
{副圖指标源碼}
當日成本:=IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/12);
瘋牛線:=EXPMEMA(當日成本,3),LINETHICK1;
龍頭線:=EXPMEMA(當日成本,8),LINETHICK2;
慢牛線:=EXPMEMA(當日成本,25),LINETHICK2;
生命線:=EXPMEMA(當日成本,79),LINETHICK3;
牛熊線:=EXPMEMA(當日成本,248),LINETHICK3;
V2:=EMA(當日成本,13)-EMA(當日成本,34);
V3:=EMA(V2,5);
CYC13:=0.01*EXPMA(AMOUNT,13)/EXPMA(VOL,13);
CYC34:=0.01*EXPMA(AMOUNT,34)/EXPMA(VOL,34);
CYS13:=(CLOSE-CYC13)/CYC13*100;
CYS34:=(CLOSE-CYC34)/CYC34*100;
CYC5:=0.01*EXPMA(AMOUNT,5)/EXPMA(VOL,5);
CYS5:=(CLOSE-CYC5)/CYC5*100;
DIVE:=0.01*EXPMA(AMOUNT,5)/EXPMA(VOL,5);
CYR5:=(DIVE/REF(DIVE,1)-1)*100;
A:=(REF(CLOSE/REF(CLOSE,1),3)>1.099 OR REF(CLOSE/REF(CLOSE,1),6)>1.099 OR REF(CLOSE/REF(CLOSE,1),4)>1.099 OR REF(CLOSE/REF(CLOSE,1),5)>1.099 OR REF(CLOSE/REF(CLOSE,1),2)>1.099) AND CROSS(龍頭線,LOW) AND UPNDAY(慢牛線,3);
STICKLINE(A, 0,10, 2, 0),COLORLIMAGENTA;
DRAWTEXT(A,7,'**回旋點'),COLORYELLOW;
DRAWTEXT_FIX(C>O,0.02,0.01,0,'公'),COLOR666666;
精選公式源碼:DRAWNULL,COLORCCCCCC;
DRAWTEXT_FIX(C>O,0.03,0.01,0,'衆'),COLOR666666;
DRAWTEXT_FIX(C>O,0.04,0.01,0,'号'),COLOR666666;
DRAWTEXT_FIX(C>O,0.01,0.16,0,'指标公式合集'),COLORMAGENTA;
{選股指标源碼}
當日成本:=IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/12);
瘋牛線:=EXPMEMA(當日成本,3);
龍頭線:=EXPMEMA(當日成本,8);
慢牛線:=EXPMEMA(當日成本,25);
生命線:=EXPMEMA(當日成本,79);
牛熊線:=EXPMEMA(當日成本,248);
V2:=EMA(當日成本,13)-EMA(當日成本,34);
V3:=EMA(V2,5);
CYC13:=0.01*EXPMA(AMOUNT,13)/EXPMA(VOL,13);
CYC34:=0.01*EXPMA(AMOUNT,34)/EXPMA(VOL,34);
CYS13:=(CLOSE-CYC13)/CYC13*100;
CYS34:=(CLOSE-CYC34)/CYC34*100;
CYC5:=0.01*EXPMA(AMOUNT,5)/EXPMA(VOL,5);
CYS5:=(CLOSE-CYC5)/CYC5*100;
DIVE:=0.01*EXPMA(AMOUNT,5)/EXPMA(VOL,5);
CYR5:=(DIVE/REF(DIVE,1)-1)*100;
A:(REF(CLOSE/REF(CLOSE,1),3)>1.099 OR REF(CLOSE/REF(CLOSE,1),6)>1.099 OR REF(CLOSE/REF(CLOSE,1),4)>1.099 OR REF(CLOSE/REF(CLOSE,1),5)>1.099 OR REF(CLOSE/REF(CLOSE,1),2)>1.099) AND CROSS(龍頭線,LOW) AND UPNDAY(慢牛線,3);
有話要說...