cps16888 发表于 2016-5-26 15:42

通达信龙量虎胆指标公式

通达信龙量虎胆指标公式

  N:=32;
var1:=AMOUNT/10000000,COLORGREEN;
量:=var1/ma(var1,5)*5,COLOR999999,;
var2:=if(c=ref(c,1),var1,REVERSE(var1)),;
var3:=(c-ref(c,1))/ref(c,1)*100;
var4:=var3*36;
var5:=var4-var2;
Q:=EMA(SUM(var5,5),5)/35;
Var6:=ABS(WINNER(CLOSE)-WINNER(REF(CLOSE,1)))/(VOL/CAPITAL);
Var7:=Var615;
Var8:=ABS(WINNER(CLOSE)-WINNER(OPEN))*100;
DRAWTEXT(Var8=20ANDVar7,9.9,''主力异动''),COLORYELLOW;
DRAWTEXT(Var8=20ANDVar7,8.8,''●''),COLORYELLOW;
VarA:=ema(ref(CLOSE,1),4);
色彩峰:=(SMA(max(CLOSE-VarA,0),6,1)/SMA(abs(CLOSE-vara),6,1))*10;
q1:=if(q0,q,0);
SQ:=q1,colorstick;
MY:=色彩峰,colorstick;
STICKLINE(q1,0,q1,5,0),colorgreen;
STICKLINE(色彩峰0,0,色彩峰,5,0),COLORFFFFFF;{白色}
STICKLINE(色彩峰0,0,色彩峰*0.9,5,0),COLOREEEEFF;
STICKLINE(色彩峰0,0,色彩峰*0.8,5,0),COLORCCCCFF;
STICKLINE(色彩峰0,0,色彩峰*0.7,5,0),COLORAAAAFF;
STICKLINE(色彩峰0,0,色彩峰*0.65,5,0),COLOR9999FF;
STICKLINE(色彩峰0,0,色彩峰*0.6,5,0),COLOR8888FF;
STICKLINE(色彩峰0,0,色彩峰*0.55,5,0),COLOR7777FF;
STICKLINE(色彩峰0,0,色彩峰*0.4,5,0),COLOR4444FF;
STICKLINE(色彩峰0,0,色彩峰*0.35,5,0),COLOR3333FF;
STICKLINE(色彩峰0,0,色彩峰*0.3,5,0),COLOR2222FF;
STICKLINE(色彩峰0,0,色彩峰*0.25,5,0),COLOR1111FF;
STICKLINE(色彩峰0,0,色彩峰*0.2,5,0),COLORred;
散户:=EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,4)-LLV(LOW,5))*100,4);
庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2);
DRAWTEXT(CROSS(散户,庄家)AND散户30,-1,''低吸''),COLORFF00FF;
DRAWTEXT(CROSS(散户,庄家)AND散户30,-3,''●''),COLORFF00FF;
DRAWTEXT(CROSS(庄家,散户)AND散户70,13.5,''高减''),COLOR00FF00;
DRAWTEXT(CROSS(庄家,散户)AND散户70,12,''●''),COLOR00FF00;
  


  

  VAR4:=EMA((CLOSE+OPEN+LOW+HIGH)/4,5);
VAR6:=EMA((CLOSE+OPEN+LOW+HIGH)/4,11);
VAR7:=EMA((CLOSE+OPEN+LOW+HIGH)/4,144);
VAR8:=EMA((CLOSE+OPEN+LOW+HIGH)/4,233);
VAR9:=VOL/CAPITAL*100;
VARA:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VARB:=(HIGH-LOW)/LOW*100;
VARD:=SUM(VARA,10);
VARE:=SUM(VARA,30);
VAR10:=SUM(VARA,150);
VAR11:=SUM(VAR9,5);
VAR12:=SUM(VAR9,10);
VAR16:=(OPEN-VAR8)/VAR8*100;
VAR17:=(VAR6-VAR8)/VAR8*100;
VAR18:=EMA(VAR9,5)/REF(EMA(VAR9,70),5);
{-股票公式网站}
VAR19:=LOW!=CLOSEANDHIGH!=CLOSEANDOPEN!=HIGHANDVARD=18AND
COUNT(VARD15,2)1ANDVARE20ANDVAR1080ANDCOUNT(VARD-30,10)
1ANDCOUNT(SUM(VARA,40)22,5)1ANDCOUNT(VAR1650,430)1AND
COUNT(VARB4.50,17)6ANDREF(VARA,1)=9.970ANDCOUNT(VAR92,8)=1.70
ANDCOUNT(VAR9=1.40,8)=1ANDVAR1210ANDCOUNT(VAR1225,70)1AND
VAR4REF(VAR4,1)ANDVAR181.50ANDCOUNT(VAR1260,120)1ANDVAR17=10AND
VAR16-20;
VAR1A:=COUNT(VAR19=1,10)=1ANDLOWHHV(CLOSE,10)*0.960;
VAR1B:=(VAR19ORVAR1A);
VAR1C:=VOL/CAPITAL*100;
VAR1D:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR1E:=EMA((CLOSE+LOW+OPEN+HIGH)/4,250);
VAR1F:=(HIGH-LOW)/LOW*100;
VAR20:=SUM(VAR1D,30);
VAR22:=SUM(VAR1D,10);
VAR24:=EMA((CLOSE+OPEN+LOW+HIGH)/4,5);
VAR25:=SUM(VAR1C,5);
VAR26:=SUM(VAR1C,10);
VAR27:=(OPEN-VAR1E)/VAR1E*100;
VAR29:=(VAR1E-REF(VAR1E,380))/REF(VAR1E,380)*100;
VAR2A:=COUNT(VAR1C1.80,8)=3ANDVAR1D-4.20ANDVAR27=9.70ANDVAR2011
ANDVAR2213ANDCOUNT(VAR1D-6,18)=1ANDVAR25=7ANDVAR25=REF(VAR25,3)
ANDREF(COUNT(VAR2612,55)25,6)ANDCOUNT(VAR1F5,20)=6ANDVAR24REF(VAR24,1)ANDVAR7=17ANDCOUNT(VAR27=-50,130)1ANDCOUNT(VAR1D=2,15)=2ANDREF(CLOSE!=LOW,1)ANDLOWREF(LOW,2)ANDCOUNT(VAR2660,120)1ANDCOUNT(VAR2016,84)1ANDLOW!=CLOSEANDCOUNT(VAR1F=13,5)1ANDCOUNT(VAR2060,160)1ANDVAR2990ANDCOUNT(VAR2790,120)1;
VAR2B:=COUNT(VAR2A=1,10)=1ANDLOWREF(HIGH,10)*0.95;
VAR2C:=VAR2AORVAR2B;
VAR2D:=COUNT(VAR1C1.80,8)=3ANDVAR1D-4.20ANDVAR27=9.70ANDVAR2011
ANDVAR228ANDCOUNT(VAR1D-6,18)=1ANDVAR25=7ANDVAR25=REF(VAR25,3)
ANDREF(COUNT(VAR2612,55)25,6)ANDCOUNT(VAR1F5,20)=6ANDVAR24REF(VAR24,1)ANDVAR20=17ANDCOUNT(VAR27=-50,130)1ANDCOUNT(VAR4=2,15)=2ANDREF(CLOSE!=LOW,1)ANDLOWREF(LOW,2)ANDCOUNT(VAR2660,120)1ANDCOUNT(VAR2016,84)1ANDLOW!=CLOSEANDCOUNT(VAR1F=13,5)1ANDCOUNT(VAR2060,160)1ANDVAR2990ANDCOUNT(VAR2790,120)1
ANDCOUNT(CROSS(CLOSE,VAR1E),5)!=1;
VAR2E:=COUNT(VAR11=1,10)=1ANDLOWREF(HIGH,10)*0.93;
VAR2F:=VAR2EANDCOUNT(VAR2E,10)=1;
VAR30:=COUNT(VAR2D=1,40)=1ANDLOWREF(HIGH,40)*0.90;
VAR31:=VAR30ANDCOUNT(VAR30,10)=1;
VAR32:=VAR2DORVAR2FORVAR31;
VAR33:=COUNT(VAR1C2,8)=3ANDVAR1D-4.20ANDVAR27=9.70ANDVAR2011AND
VAR2213ANDCOUNT(VAR1D-6,18)=1ANDVAR25=7AND
VAR25=REF(VAR25,3)ANDREF(COUNT(VAR2612,55)25,6)AND
COUNT(VAR1F5,20)=6ANDVAR24REF(VAR24,1)ANDVAR20=17ANDCOUNT
(VAR27=-50,130)1ANDCOUNT(VAR1D=2,15)=2ANDREF(CLOSE!=LOW,1)ANDLOWREF(LOW,2)ANDCOUNT(VAR2660,120)1ANDCOUNT
(VAR2016,84)1ANDLOW!=CLOSEANDCOUNT(VAR1F=13,5)1ANDCOUNT(VAR2060,160)1ANDVAR2990ANDCOUNT(VAR2790,110)1;
VAR48:=CLOSE/REF(CLOSE,1)1.04ANDHIGH/CLOSE1.005ANDVOL/CAPITAL*1006.18ANDREF(CLOSE/REF(CLOSE,1),1)1.04ANDREF(HIGH/CLOSE,1)1.005ANDREF(VOL/CAPITAL*100,1)6.18ANDREF(CLOSE/REF(CLOSE,1),2)1.04ANDREF(HIGH/CLOSE,2)1.005ANDREF(VOL/CAPITAL*100,2)6.18;
初级:IF(CROSS(VAR4,VAR6),20,0)STICKCOLOR00FFFF;
中级:IF(CROSS(VAR6,VAR7),30,0)STICKCOLORFF00FF;
高级:IF(CROSS(VAR4,VAR6ANDVAR7),40,0)STICKCOLOR33FF33;
龙魔王:IF(CROSS(VAR7,VAR8),50,0),STICKCOLORRED;
DRAWICON(CROSS(VAR4,VAR6),12,1);
DRAWICON(CROSS(VAR6,VAR7),20,9),COLORFF00FF;
DRAWICON(CROSS(VAR4,VAR6ANDVAR7),36,6),COLOR00FFFF;
DRAWICON(CROSS(VAR7,VAR8),40,5),COLOR00FFFF;
  


开创电脑 发表于 2016-5-26 23:01

谢谢学长的分享,不过是最好贴一个图示新手不太懂。

阳光正好 发表于 2016-5-27 09:29

谢谢分享!!!!!!!!!!!!!!!

大明王朝 发表于 2016-5-27 12:29

好的指标、精彩学习、深表感谢!

muge 发表于 2016-8-1 06:50

谢谢楼主分享

muge 发表于 2016-8-11 20:14

谢谢楼主分享

aniu1973 发表于 2016-10-4 07:26

学习一下,感谢分享。

上大虎 发表于 2016-10-4 12:16

dddddddddd

ljxlxq 发表于 2016-10-4 13:48

谢谢楼主分享
页: [1]
查看完整版本: 通达信龙量虎胆指标公式