通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
RSV:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100);
KV:=SMA(RSV,3,1);
DV:=SMA(KV,3,1);
JV:=3*KV-2*DV;
VAR1:=(((CLOSE-MA(CLOSE,6))/MA(CLOSE,6))*100);
VAR2:=(((CLOSE-MA(CLOSE,12))/MA(CLOSE,12))*100);
VAR3:=(((CLOSE-MA(CLOSE,24))/MA(CLOSE,24))*100);
VAR4:=(((VAR1+(2*VAR2))+(3*VAR3))/6);
VAR5:=MA(VAR4,3);
DB:=IF(VAR5,20,0);
HDY:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
FX:=HDY
XG:CROSS(JV,KV)AND(DB =20)ANDFX,LINETHICK1;
变量00:=5;变量01:=30;
A02:=(WINNER((CLOSE* 1.100))* 100.000);
A03:=(WINNER((CLOSE* 0.9))* 100.000);
A04:=MA(A03,变量00);
STICKLINE(1.000,0,A04,7.450,0),colorred;
获利:MA(A03,变量00),colorred;
A06:=(100.000-MA(A02,变量00));
STICKLINE(1.000,100.000,MA(A02,变量00),7.450,0),colorgreen;
套牢:(100.000-MA(A02,变量00)),colorgreen;
A08:=(MA(A02,变量00)-MA(A03,变量00));
STICKLINE(1.000,A04,MA(A02,变量00),7.450,0),coloryellow;
浮动:(MA(A02,变量00)-MA(A03,变量00)),coloryellow;
A0A:=(((((HHV(A04,15.000)-A03)/A03)* 100.000) 变量01)AND(HHV(A04,15.000) 50.000));
STICKLINE(A0A,(0- 2.000),2.000,10.000,0);
STICKLINE(NOT(A0A),(0- 2.000),2.000,10.000,0),colorblue;
MA3:=MA(CLOSE,3);
VOL3:=MA(VOL,3);
VOL20:=MA(VOL,20);
Var1L:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,15)-LLV(LOW,9))*100;
Var2L:=SMA(Var1L,3,1);
Var3L:=CLOSE/MA3 =1.04ANDVOL3/VOL20 1.5ANDCOUNT(Var2L 20,20)
神龙摆尾:IF(Var3LANDCOUNT(Var3L,5)=1,60,0);
DRAWTEXT(神龙摆尾,C+50, 神龙摆尾 ),coloryellow,ALIGN1;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),13,1)/SMA(MAX(LOW-VAR2,0),13,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*13,VAR3/13),13);
VAR5:=LLV(LOW,34);
VAR6:=HHV(VAR4,34);
VAR7:=IF(LLV(LOW,55),1,0);
VAR8:=EMA(IF(LOW =VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=EMA(CLOSE,5);
VAR10:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(-10);
VAR11:=EMA(IF(LOW =VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*(-1);
VAR12:=EMA(CLOSE,5)*(-1);
STICKLINE(VAR8 REF(VAR8,1),0,VAR8,6,1),COLOR10FFFF,LINETHICK3;
备钱:IF(VAR8 REF(VAR8,1),0,VAR8),COLOR0FFFFF;
STICKLINE(VAR11 REF(VAR11,1),0,VAR11,6,1),COLORFFF810;
界:0,COLORFFFFFF,LINETHICK1;
{启动}
XL1:=MA(LOW,2)*0.96;
XL2:=MA(LOW,26)*0.85;
XL3:=REF(XL1,1) XL2ANDREF(XL1,1) XL1ANDREF(XL1,1) REF(XL1,2);
启动:IF(XL3,0,VAR8*3),COLORRED;{66.38%/+7.72%/5572}
{红线上穿买}{48.55%/-1.62%/21059}
VA:=(2*C+H+L)/4;
VB:=LLV(L,5);
VC:=HHV(H,5);
{低进}
:=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,5, 低进 ),COLOR00FF00;{50.32%/-0.75%/7775}
DRAWTEXT(CROSS(散户,庄家)AND散户 30,7, ● ),COLORFFFFFF;
DRAWTEXT(CROSS(庄家,散户)AND散户 70,25, 高出 ),COLOR00FF00;
DRAWTEXT(CROSS(庄家,散户)AND散户 70,22, ● ),COLOR00FF00;
{极品底}
极品底:IF((MA(C,5)-C)/C 0.04AND(MA(C,10)-MA(C,5))/MA(C,5) 0.04,23,0),LINETHICK2,COLORFF00FF;{61.15%/+3.74%/5360}
DRAWICON(极品底=23,23,1),LINETHICK2,COLORFFFFFF;
{KDJ低进}
RSV:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
X:=LLV(J,2)=LLV(J,8);
DRAWTEXT(CROSS(J,REF(J+0.01,1))ANDXANDJ 19,3, 低进 ),COLORFFFF00;{44.89%/-7.63%/12055};
MA5:MA(C,5),COLOR000099;
MA10:MA(C,10),COLOR006600;
MA20:MA(C,20),COLOR005555;
{
DRAWTEXT(30,0,BKNAME),COLORDDDDDD;
DRAWTEXT(30,15, 流通盘: +CAPITAL/100+ 万股,利润增长: +FINANCE2(10)+ %。每股收益: +FINANCE2(3)+ 元。 ),COLOR00DDDD;
DRAWTEXT(30,30, 红白柱买入,蓝绿柱卖出。 ),COLORFFDD00;
}
STICKLINE(C =REF(C,1),O,C,3,1),COLOR000000;
STICKLINE(C REF(C,1),O,C,3,1),COLOR000000;
{
A1:=EMA(CLOSE,5) EMA(CLOSE,6)ANDEMA(CLOSE,6) EMA(CLOSE,7)ANDEMA(CLOSE,7) EMA(CLOSE,8)ANDEMA(CLOSE,8) EMA(CLOSE,9)
ANDEMA(CLOSE,9) EMA(CLOSE,10)ANDEMA(CLOSE,10) EMA(CLOSE,11)ANDEMA(CLOSE,11) EMA(CLOSE,12)
ANDEMA(CLOSE,12) EMA(CLOSE,13)ANDEMA(CLOSE,13) EMA(CLOSE,14)ANDEMA(CLOSE,14) EMA(CLOSE,15)
ANDEMA(CLOSE,15) EMA(CLOSE,20)ANDEMA(CLOSE,20) EMA(CLOSE,30)ANDEMA(CLOSE,30) EMA(CLOSE,60)ANDEMA(CLOSE,60) EMA(CLOSE,90)
ANDEMA(CLOSE,90) EMA(CLOSE,120)ANDEMA(CLOSE,120) EMA(CLOSE,250);
}
A101:=EMA(CLOSE,5) EMA(CLOSE,6)ANDEMA(CLOSE,6) EMA(CLOSE,7)ANDEMA(CLOSE,7) EMA(CLOSE,8)ANDEMA(CLOSE,8) EMA(CLOSE,9)
ANDEMA(CLOSE,9) EMA(CLOSE,10)ANDEMA(CLOSE,10) EMA(CLOSE,11)ANDEMA(CLOSE,11) EMA(CLOSE,12)
ANDEMA(CLOSE,12) EMA(CLOSE,13)ANDEMA(CLOSE,13) EMA(CLOSE,14)ANDEMA(CLOSE,14) EMA(CLOSE,15);
A102:=EMA(CLOSE,15) EMA(CLOSE,20)ANDEMA(CLOSE,20) EMA(CLOSE,30)ANDEMA(CLOSE,30) EMA(CLOSE,60)ANDEMA(CLOSE,60) EMA(CLOSE,90)
ANDEMA(CLOSE,90) EMA(CLOSE,120)ANDEMA(CLOSE,120) EMA(CLOSE,250);
A1:=A101ANDA102;
A2:=EMA(CLOSE,5) EMA(CLOSE,6)ANDEMA(CLOSE,6) EMA(CLOSE,7)ANDEMA(CLOSE,7) EMA(CLOSE,8)ANDEMA(CLOSE,8) EMA(CLOSE,9)
ANDEMA(CLOSE,9) EMA(CLOSE,10)ANDEMA(CLOSE,10) EMA(CLOSE,11)ANDEMA(CLOSE,11) EMA(CLOSE,12)
ANDEMA(CLOSE,12) EMA(CLOSE,13)ANDEMA(CLOSE,13) EMA(CLOSE,14);
B1:=IF(A1,1,2);
VAR1:=((CLOSE REF(CLOSE,1))AND(CLOSE REF(CLOSE,2)));
VAR2:=((REF(VAR1,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
VAR3:=((REF(VAR2,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
VAR4:=((REF(VAR3,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
VAR5:=((REF(VAR4,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
VAR6:=((REF(VAR5,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
VAR7:=((REF(VAR6,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
VAR8:=((REF(VAR7,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
VAR9:=((REF(VAR8,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
VARA:=((REF(VAR9,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
VARB:=((REF(VARA,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
VARC:=((REF(VARB,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
STICKLINE((((((((((((VAR1ORVAR2)ORVAR3)ORVAR4)ORVAR5)ORVAR6)ORVAR7)ORVAR8)ORVAR9)ORVARA)ORVARB)ORVARC),C,REF(C,1),3,0),COLOR0000DD;
STICKLINE((((((((((((VAR1ORVAR2)ORVAR3)ORVAR4)ORVAR5)ORVAR6)ORVAR7)ORVAR8)ORVAR9)ORVARA)ORVARB)ORVARC),L,H,0.5,0),COLOR0000DD;
VARD:=((CLOSE REF(CLOSE,1))AND(CLOSE REF(CLOSE,2)));
VARE:=((REF(VARD,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
VARF:=((REF(VARE,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
VAR10:=((REF(VARF,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
VAR11:=((REF(VAR10,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
VAR12:=((REF(VAR11,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
VAR13:=((REF(VAR12,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
VAR14:=((REF(VAR13,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
VAR15:=((REF(VAR14,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
VAR16:=((REF(VAR15,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
VAR17:=((REF(VAR16,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
VAR18:=((REF(VAR17,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2)));
STICKLINE((((((((((((VARDORVARE)ORVARF)ORVAR10)ORVAR11)ORVAR12)ORVAR13)ORVAR14)ORVAR15)ORVAR16)ORVAR17)ORVAR18),C,REF(C,1),3,0),COLOR00DD00;
STICKLINE((((((((((((VARDORVARE)ORVARF)ORVAR10)ORVAR11)ORVAR12)ORVAR13)ORVAR14)ORVAR15)ORVAR16)ORVAR17)ORVAR18),H,L,0.5,0),COLOR00DD00;
VAR19:=(REF((((((((((((VARDORVARE)ORVARF)ORVAR10)ORVAR11)ORVAR12)ORVAR13)ORVAR14)ORVAR15)ORVAR16)ORVAR17)ORVAR18),1)ANDVAR1);
VAR1A:=(REF((((((((((((VAR1ORVAR2)ORVAR3)ORVAR4)ORVAR5)ORVAR6)ORVAR7)ORVAR8)ORVAR9)ORVARA)ORVARB)ORVARC),1)ANDVARD);
STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORDDDDDD;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORDD8800;
公式解读:
[源码注释]通达信公式动态公式解读AA赋值:收盘价10%的之字转向
JX赋值:收盘价10%的之字转向的2日简单移动平均 AA
SX赋值:收盘价10%的之字转向的2日简单移动平均 AA
JJ赋值:当满足条件JX时,在AA位置画直线起点,当满足条件1日前的JX时,在1日前的AA位置画直线终点,1表示是否延长.
SS赋值:当满足条件SX时,在AA位置画直线起点,当满足条件1日前的SX时,在1日前的AA位置画直线终点,1表示是否延长.
画带状线
画带状线
K线(最高价,开盘价,最低价,收盘价)
公式解读:
编写条件:
连续5日最低价逐渐升高同时最高价逐渐降低的公式
编写方法:
XG:EVERY(HREF(L,1),5);