通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
公式解读:
公式源码如下:
TJ1:=COUNT(V REF(V,1)*1.9,4)=1;
TJ2:=COUNT(V REF(V,1)ANDL MIN(L,4)ANDL REF(L,1),3)=3;
TJ1ANDTJ2;
-100*(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5)),COLORYELLOW;
-100*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10)),COLORGREEN;
-100*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20)),COLORFFAA00;
-100*(HHV(HIGH,30)-CLOSE)/(HHV(HIGH,30)-LLV(LOW,30)),COLORRED,linethick2;
VAR4:=((HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9)))*(100)-70;
VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);
VAR7:=SMA(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*(100),3,1);
VAR8:=LLV(LOW,34);
VARC:=EMA(((((2)*(CLOSE)+HIGH+LOW)/(4)-VAR8)/(HHV(HIGH,34)-VAR8))*(100),8);
VARD:=EMA(VARC,5);
VARE:=((HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9)))*(100)-70;
VAR11:=SMA(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*(100),3,1);
VAR12:=SMA(VAR11,3,1)+100;
VAR13:=VAR12-SMA(VARE,9,1)+100;
VAR14:=ZIG(3,13);
建仓:=IF((VARC 17)and(VARC 59)and(VARC-VARD =0),10,(-10));
猎豹:=IF((REF(VAR14,2) REF(VAR14,1))and(VAR14 REF(VAR14,1)),10,45);
丰收:=IF((VARC 70)and(VARC-VARD =0),77,82);
牛:=IF((VAR13 100),VAR13-100,0);
顶:=IF((REF(VAR14,2) REF(VAR14,1))and(VAR14 REF(VAR14,1)),95,55);
风:=IF((VARC-VARD 0),VARC,VARD);
STICKLINE((REF(VAR14,2) REF(VAR14,1))and(VAR14 REF(VAR14,1)),CLOSE,OPEN,5,0),Color66FF00;
STICKLINE((REF(VAR14,2) REF(VAR14,1))and(VAR14 REF(VAR14,1)),CLOSE,OPEN,5,0),coloryellow;
DRAWLINE((REF(VAR14,2) REF(VAR14,1))and(VAR14 REF(VAR14,1)),LOW-(LOW)*(0.08),(REF(VAR14,2) REF(VAR14,1))and(VAR14 REF(VAR14,1)),LOW-(LOW)*(0.05),0),Linethick5,Color070084;
DRAWLINE((REF(VAR14,2) REF(VAR14,1))and(VAR14 REF(VAR14,1)),LOW-(LOW)*(0.08),(REF(VAR14,2) REF(VAR14,1))and(VAR14 REF(VAR14,1)),LOW-(LOW)*(0.05),0),Linethick4,Color0000A3;
DRAWLINE((REF(VAR14,2) REF(VAR14,1))and(VAR14 REF(VAR14,1)),LOW-(LOW)*(0.08),(REF(VAR14,2) REF(VAR14,1))and(VAR14 REF(VAR14,1)),LOW-(LOW)*(0.05),0),Linethick3,Color0000B7;
DRAWLINE((REF(VAR14,2) REF(VAR14,1))and(VAR14 REF(VAR14,1)),LOW-(LOW)*(0.08),(REF(VAR14,2) REF(VAR14,1))and(VAR14 REF(VAR14,1)),LOW-(LOW)*(0.05),0),Linethick2,Color0000CD;
DRAWLINE((REF(VAR14,2) REF(VAR14,1))and(VAR14 REF(VAR14,1)),LOW-(LOW)*(0.08),(REF(VAR14,2) REF(VAR14,1))and(VAR14 REF(VAR14,1)),LOW-(LOW)*(0.05),0),Linethick1,Color077BF3;
STICKLINE((OPEN =CLOSE),CLOSE,OPEN,5,0),ColorFF5B00;
STICKLINE((OPEN =CLOSE),CLOSE,OPEN,4.5,0),ColorFF6C00;
STICKLINE((OPEN =CLOSE),CLOSE,OPEN,4,0),ColorFF7B00;
STICKLINE((OPEN =CLOSE),CLOSE,OPEN,3.5,0),ColorFF9C00;
STICKLINE((OPEN =CLOSE),CLOSE,OPEN,2,0),ColorFFBE00;
STICKLINE((OPEN =CLOSE),CLOSE,OPEN,1,0),ColorFFCC00;
STICKLINE((OPEN =CLOSE),CLOSE,OPEN,0.5,0),ColorCCCCCC;
STICKLINE((CLOSE =OPEN),CLOSE,OPEN,5,0),Color070084;
STICKLINE((CLOSE =OPEN),CLOSE,OPEN,4.5,0),Color0000A3;
STICKLINE((CLOSE =OPEN),CLOSE,OPEN,4,0),Color0000B7;
STICKLINE((CLOSE =OPEN),CLOSE,OPEN,3.5,0),Color0000CD;
STICKLINE((CLOSE =OPEN),CLOSE,OPEN,2,0),Color0000E9;
STICKLINE((CLOSE =OPEN),CLOSE,OPEN,1,0),Color0754E9;
STICKLINE((CLOSE =OPEN),CLOSE,OPEN,1,0),Color076EF3;
STICKLINE((CLOSE =OPEN),CLOSE,OPEN,0.5,0),Color077BF3;
STICKLINE((CLOSE OPEN),OPEN,LOW,0.5,0),Color0726CA;
STICKLINE((CLOSE OPEN),CLOSE,HIGH,0.5,0),Color0726CA;
STICKLINE((OPEN CLOSE),CLOSE,LOW,0.5,0),ColorDE9100;
STICKLINE((OPEN CLOSE),OPEN,HIGH,0.5,0),ColorDE9100;
MA5:MA(C,5),COLORYELLOW;
MA10:MA(C,10),COLORFF00FF;
MA15:MA(C,15),COLOR00FF00;
MA30:MA(C,30),COLORFFCCCC;
B1:=REF(C,1);B2:=REF(C,2);
SS:=IF(C REF(C,1)ANDREF(C,1) =REF(C,2),1,IF(C REF(C,1)ANDREF(C,1) =REF(C,2),-1,IF(C REF(C,2)ANDREF(C,2) REF(C,1),2,IF(C REF(C,2)ANDREF(C,2) REF(C,1),-2,0))));
SM:=IF(REF(SS,1)!=0,REF(SS,1),IF(REF(SS,2)!=0,REF(SS,2),IF(REF(SS,3)!=0,REF(SS,3),IF(REF(SS,5)!=0,REF(SS,5),IF(REF(SS,6)!=0,REF(SS,6),IF(REF(SS,7)!=0,REF(SS,7),0))))));
STICKLINE(SS=1ORSM =1ANDSS=0,B1,C,3,0),COLORRED;
STICKLINE(SS=-1ORSM =-1ANDSS=0,B1,C,3,0),COLORFFCC66;
STICKLINE(SS=2,B2,C,3,0),COLORRED;
STICKLINE(SS=-2,B2,C,3,0),COLORFFCC66;
STICKLINE((SS=-1ORSS=-2)ANDSM 0,B2,B1,3,0),COLORRED;
STICKLINE((SS=1ORSS=2)ANDSM 0,B2,B1,3,0),COLORFFCC66;
AA:=CLOSE REF(CLOSE,1)ANDREF(CLOSE,1) REF(CLOSE,2)ANDREF(CLOSE,1) REF(CLOSE,3)ANDIF(REF(CLOSE,3) REF(CLOSE,4),1,IF(REF(CLOSE,4) REF(CLOSE,5),REF(CLOSE,1) REF(CLOSE,4)OR(REF(CLOSE,2) REF(CLOSE,4)ANDREF(CLOSE,3) =REF(CLOSE,5)),IF(REF(CLOSE,5) REF(CLOSE,6),1,REF(CLOSE,6) REF(CLOSE,7))));
BB:=CLOSE REF(CLOSE,1)ANDREF(CLOSE,1) REF(CLOSE,2)ANDREF(CLOSE,1) REF(CLOSE,3)ANDIF(REF(CLOSE,3) REF(CLOSE,4),1,IF(REF(CLOSE,4) REF(CLOSE,5),REF(CLOSE,1) REF(CLOSE,4)OR(REF(CLOSE,2) REF(CLOSE,4)ANDREF(CLOSE,3) =REF(CLOSE,5)),IF(REF(CLOSE,5) REF(CLOSE,6),1,REF(CLOSE,6) REF(CLOSE,7))));
DRAWICON(AAANDCLOSE REF(OPEN,2),0.99*LOW,1);
DRAWICON(BBANDCLOSE REF(CLOSE,2),HIGH*1.01,2);
DRAWTEXT(AAANDCLOSE REF(OPEN,2),LOW*0.98, 三平底翻红 ),COLORYELLOW;
DRAWTEXT(BBANDCLOSE REF(CLOSE,2),HIGH*1.02, 三平顶翻绿 ),COLOR00FF00;
买:DRAWTEXT((REF(VAR14,2) REF(VAR14,1))and(VAR14 REF(VAR14,1)),LOW-(LOW)*(0.05), 买 ),colorred;
卖:DRAWTEXT((REF(VAR14,2) REF(VAR14,1))and(VAR14 REF(VAR14,1)),LOW-(LOW)*(0.03), 卖 ),Color66FF00;
STICKLINE((REF(VAR14,2) REF(VAR14,1))and(VAR14 REF(VAR14,1)),CLOSE,OPEN,5,0),Color66FF00;
STICKLINE((REF(VAR14,2) REF(VAR14,1))and(VAR14 REF(VAR14,1)),CLOSE,OPEN,5,0),coloryellow;
STICKLINE(C =O,H,L,0,0),COLORWHITE;
A:=(2*C+O+H+L)/5;
X1:MA(A,5),COLORYELLOW;
X2:MA(X1,8),COLORYELLOW,LINETHICK2;
X3:MA(X2,13),COLORFFF000;
X4:MA(X3,21),COLORFFF000,LINETHICK2;
X5:MA(X4,34),COLORFFFFFF;
X6:MA(X5,55),COLORFFFFFF,LINETHICK2;
BLZ:= REF(V,1)*1.9;
倍量柱:=BLZ,COLORYELLOW;
HJZ:=(3*C+H+L+O)/6;
HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF
(HJZ,6)+REF(HJZ,8))/36;
黄金柱:=VOL=HHV(VOL,10)ANDVOL 2*REF(VOL,1)ANDCLOSE HJZ2ANDC
倍量黄金柱:=倍量柱AND黄金柱;
REF(倍量黄金柱,3);