通达信主升浪回踩买指标公式
通达信擒牛敢指标公式
通达信主升浪回踩买指标公式:
独孤九剑:=MA(C,0),COLORMAGENTA;
RSV:=EMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,3);
DS:=EMA(RSV,3),;
JH:=MA(DS,3),;
K:3*DS-2*JH,COLORBROWN;
kdSJH:=IF((DATE>20091230),0,0),;
持股线:IF(K>REF(K,1),K,DRAWNULL),COLORRED,LINETHICK2;
持币线:IF(K<REF(K,1),K,DRAWNULL),COLORGREEN,LINETHICK2;
独孤出手:IF((K<3),8,0) ,COLORYELLOW;
独孤收剑:IF((K>97),92,100),COLORWHITE;
stICKLINE(DS>JH,DS,JH,2,0),COLORMAGENTA;
STICKLINE(DS<JH,JH,DS,2,1),COLORCYAN;
VAR1:=crOSS(K,DS) AND DS<20 ;
抄底:STICKLINE(VAR1,-2,5,4,1),COLORWHITE;
DRAWTEXT(VAR1 AND COUNT(VAR1,10)=1,3,'抄底'),COLORYELLOW;
VAR2:=CROSS(K,DS) AND DS>20 AND DS<40 ;
STICKLINE(VAR2,3,15,0.5,1),COLORYELLOW;
VAR3:=CROSS(DS,K) AND DS>90;
逃顶:STICKLINE(VAR3,95,102,4,1),COLORWHITE;
DRAWTEXT(VAR3 AND COUNT(VAR3,10)=1,97,'逃顶'),COLORYELLOW;
VAR4:=CROSS(DS,K) AND DS<90 AND DS>80;
STICKLINE(VAR4,85,97,0.5,1),COLORYELLOW;
{拉升}
拉升:C/REF(C,1)>1.048 AND C=H AND BETWEEN (FORCAST(V,4),0.2*FORCAST(V,12),
2.1*FORCAST(V,12)),COLORGRAY;
STICKLINE(拉升,40,20,0,0),COLORGRAY;
DRAWTEXT(拉升,38,'拉'),COLORLIGRAY;
{一剑封喉}
A:=REF(CLOSE,1);
BB:=SMA(MAX(CLOSE-A,0),5,1)/SMA(Abs(CLOSE-A),5,1)*1000;
HH:=BB-LLV(BB,10);
S:=(MA(HH,2)*3+HH*13)/16;
一剑封喉:=IF(S>13,MA(S,2),S);
YY:=DRAWICON(CROSS(一剑封喉,21),72,1);
STICKLINE(YY,57,56,1,1),COLORLIMAGENTA;
STICKLINE(YY,62,56,0,0),COLOR99CCFF;
{超跌}
AA1:=REF(LOW,1);
AA2:=SMA(ABS(LOW-AA1),13,1)/SMA(MAX(LOW-AA1,0),13,1)*4;
AA3:=EMA(AA2,13);
AA4:=LLV(LOW,34);
AA5:=EMA(IF(LOW<=AA4,AA3,0),3);
超跌:STICKLINE(AA5>REF(AA5,1),76,60,0,0),COLORRED;
STICKLINE(AA5>REF(AA5,1),69,68,3,1),COLORRED;
DRAWTEXT(超跌,64,'底'),COLORBROWN;
{机会来临}
独孤弹剑:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,-1,0),1),
STICK,COLOR8E8BFF;
STICKLINE(独孤弹剑,85,76,0,0),COLOR8E8BFF;
STICKLINE(独孤弹剑,83,84,2,0),COLOR8E8BFF;
{macd}
破刀式:=EMA(CLOSE,6)-EMA(CLOSE,13);
破枪式:=EMA(破刀式,5);
剑挥金花:=DRAWICON(CROSS(破刀式,破枪式),50,1);
STICKLINE(剑挥金花,45,45,5,0),COLORRED;
STICKLINE(剑挥金花,45,50,0,0),COLORRED;
剑指死穴:=DRAWICON(CROSS(破枪式,破刀式),50,2);
STICKLINE(剑指死穴,55,55,5,0),COLORGREEN;
STICKLINE(剑指死穴,55,50,0,0),COLORGREEN;
{rsi}
N1:=6; N2:=12; N3:=24;
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
破鞭式:=DRAWTEXT(CROSS(RSI1,RSI3),50,'B');
STICKLINE(破鞭式,47,47,3,0),COLORYELLOW;
STICKLINE(破鞭式,47,50,0,0),COLORYELLOW;
破箭式:=DRAWTEXT(CROSS(RSI3,RSI1),50,'S');
STICKLINE(破箭式,53,53,3,0),COLORWHITE;
STICKLINE(破箭式,53,50,0,0),COLORWHITE;
{总剑诀}
剑诀:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
剑指长虹:IF(CROSS(剑诀,MA(剑诀,10))AND 剑诀<30,1,0),STICK,COLOR0066FF;
STICKLINE(剑指长虹,-4,-3,1,1),COLOR0066FF;
STICKLINE(剑指长虹,-1,-1,3,1),COLOR0066FF;
STICKLINE(剑指长虹,-3,3,0,0),COLOR0066FF;
剑锋反转:IF(CROSS(MA(剑诀,9),剑诀) AND 剑诀>70,1,0),STICK,COLOR00FF99;
STICKLINE(剑锋反转,104,103,1,1),COLOR00FF99;
STICKLINE(剑锋反转,101,101,3,1),COLOR00FF99;
STICKLINE(剑锋反转,103,97,0,0),COLOR00FF99;
建仓: STICKLINE(剑诀<=10,-1,0,1,1) ,COLORRED;
潜龙腾天:IF(CROSS(剑诀,10),1,0),STICK ,COLORFF99FF;
STICKLINE(潜龙腾天,0,3,1,1),COLORFF99FF;
减仓:STICKLINE(剑诀>=90,101,100,1,1) , COLORGREEN;
北海斩蛟:IF(CROSS(84,剑诀),1,0),STICK,COLORA0660A;
STICKLINE(北海斩蛟,100,97,1,1),COLORA0660A;
通达信反攻多头雷达指标公式