年线上拐疯狂通达信公式 主图 源码附图
JJJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));
DDD1:=(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01);
JJJT:=IF(DDD1,1,(JJJ<(DYNAINFO(5)+0.01) && JJJ>(DYNAINFO(6)-0.01)));
多空1:=IF(JJJT,DMA(AMOUNT/(100*VOL),100*VOL/FINANCE(7)),EMA((HIGH+LOW+CLOSE)/3,120));
指:=IF(C>400,多空1,DRAWNULL),,LINETHICK3,COLORGREEN;
多空:IF(C<400,DMA(C,(VOL/CAPITAL)),指),LINETHICK2,COLORFF00FF;
IF(多空<REF(多空,1),多空,DRAWNULL),LINETHICK2,COLORGREEN;
DRAWNUMBER(ISLASTBAR AND C>=多空,多空,多空),COLORFF00FF;
DRAWNUMBER(ISLASTBAR AND C<多空,多空,多空),COLORGREEN;
DRAWTEXT_FIX(1,0.00,0.00,0,'主题投资:')COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.00,0,EXTERNSTR(0,1))COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.08,0,'主营业务:'),COLORMAGENTA;
DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,2)),COLORMAGENTA;
DRAWTEXT_FIX(C>0,0.00,0.16,0,STRCAT('所属概念:',GNBLOCK)),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.00,0.24,0,STRCAT('所属行业:',HYBLOCK)),COLORYELLOW;
{通达信公式大全 股票指标网}
M5:MA(C,5);
M10:MA(C,10);
M60:MA(C,60);
M120:MA(C,120);
M250:MA(C,250);
DRAWBAND(M5,120,MA(C,60),RGB(35,135,35));
DRAWBAND(M5,60,MA(M5,5),RGB(35,88,35));
STICKLINE(CURRBARSCOUNT<26 AND C>=REF(C,1),H,L,0,1),COLORRED;
STICKLINE(CURRBARSCOUNT<26 AND C>=REF(C,1),C,O,2,1),COLORRED;
STICKLINE(CURRBARSCOUNT<26 AND C<REF(C,1),H,L,0,0),COLORCYAN;
STICKLINE(CURRBARSCOUNT<26 AND C<REF(C,1),C,O,2,0),COLORCYAN;
A1:=IF(C>REF(C,1) AND CROSS(C,MA(C,13)),30,5);
WWWFXJGSWCOM:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND A1=30,0.9,0.1,1,'收阳上穿24线'),COLORYELLOW;
A2:=IF(C>REF(C,1) AND CROSS(C,MA(C,60)),30,5);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND A2=30,0.9,0.2,1,'收阳上穿60线'),COLORYELLOW;
A3:=IF(C>REF(C,1) AND CROSS(C,MA(C,120)),30,5);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND A3=30,0.9,0.3,1,'收阳上穿120线'),COLORYELLOW;
A4:=IF(C>REF(C,1) AND CROSS(C,MA(C,250)),30,5);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND A4=30,0.9,0.4,1,'收阳上穿240线'),COLORYELLOW;
A5:=IF(C>REF(C,1) AND MA(C,5)>=MA(C,10),20,5);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND A5=20,0.9,0.5,1,'收阳5日线大于10日线'),COLORYELLOW;
A6:=MAX(MAX(A1,A2),MAX(A3,A4));
A7:=MAX(A6,A5);{通达信公式大全 股票指标网}
B1:=IF(V/CAPITAL*100>1 AND V/CAPITAL*100<2,20,5);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND B1=20,0.9,0.6,1,'量一般'),COLORYELLOW;
B2:=IF(V/CAPITAL*100>2 AND V/CAPITAL*100<5,25,5);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND B2=25,0.9,0.7,1,'量放大'),COLORYELLOW;
B3:=IF(V/CAPITAL*100>5,30,5);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND B3=30,0.9,0.8,1,'量特大'),COLORYELLOW;
B4:=IF(V/CAPITAL*100<1,-10,5);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND B4=-10,0.9,0.9,1,'量不足'),COLORGREEN;
B5:=MAX(MAX(B1,B2),MAX(B3,B4));
C1:=IF(DYNAINFO(17)>1.5,20,5);
C2:=IF(DYNAINFO(17)>2,25,5);
C3:=IF(DYNAINFO(17)>5,30,5);
C4:=IF(DYNAINFO(17)<1,-10,5);
C5:=MAX(MAX(C1,C2),MAX(C3,C4));
D1:=IF((DYNAINFO(23)/DYNAINFO(22))>1,5,0);
D2:=IF((DYNAINFO(23)/DYNAINFO(22))>1.2,10,0);
D3:=IF((DYNAINFO(23)/DYNAINFO(22))<1,-5,0);
D4:=MAX(MAX(D1,D2),D3);
E1:=IF(C<REF(C,1) AND CROSS(MA(C,10),MA(C,5)),-20,5);
总分:=A7+B5+C5+D4+E1;
STICKLINE(M250>REF(M250,1),M250,M250*0.98,5,0),COLORRED;
DRAWTEXT(M250>REF(M250,1),M250,'上升'),COLORYELLOW;
VAR1:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));
VAR2:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
DIR1:=ABS(CLOSE-REF(CLOSE,5));
VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);
ER1:=DIR1/VIR1;
CS1:=ER1*(0.8-2/8)+2/8;
CQ1:=CS1*CS1;
DIR2:=ABS(CLOSE-REF(CLOSE,10));
VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);
ER2:=DIR2/VIR2;
CS2:=ER2*(0.8-2/24)+2/24;
CQ2:=CS2*CS2;
STICKLINE(VAR2 < MA(VAR3,6),LOW,HIGH,0,1),COLORLIBLUE;
STICKLINE(VAR2 > MA(VAR3,6),LOW,HIGH,0,1),COLORRED;
STICKLINE(((OPEN>CLOSE)AND(VAR2<MA(VAR3,6))),(CLOSE-0.03),OPEN,3.05,0),COLORLIBLUE;
STICKLINE(((OPEN<CLOSE)AND(VAR2<MA(VAR3,6))),CLOSE,OPEN,3.05,1),COLORLIBLUE;
STICKLINE(((OPEN>CLOSE)AND(VAR2>MA(VAR3,6))),OPEN,(CLOSE-0.03),3.05,0),COLORRED;
STICKLINE(((OPEN<CLOSE)AND(VAR2>MA(VAR3,6))),OPEN,CLOSE,3.05,1),COLORRED;
DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW - (LOW*0.02)),7);
DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH+(HIGH*0.02)),8);
PT:=REF(H,1)-REF(L,1);
CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;
AH:=CDP+PT;
AL:=CDP-PT;
NH:=CDP*2-REF(L,1);
NL:=CDP*2-REF(H,1);
强:IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;
阻:IF(NH>强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORBLUE;
M:=IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL);
撑:IF(NL<M,CDP-(CDP-M)*0.618,NL)NODRAW;
底:IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL)NODRAW;
{通达信公式大全 股票指标网}
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
JJJ赋值:IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3))
DDD1赋值:(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01)
JJJT:=IF(DDD1,1,(JJJ<(DYNAINFO(5)+0.01) && JJJ>(DYNAINFO(6)-0.01)))
多空1赋值:IF(JJJT,DMA(AMOUNT/(100*成交量),100*成交量/FINANCE(7)),EMA((最高价+最低价+收盘价)/3,120))
如果C>400返回多空1否则返回DRAWNULL
输出多空:IF(C<400,DMA(C,(成交量/CAPITAL)),指), 线宽为2,COLORFF00FF
IF(多空<1日前的多空,多空,DRAWNULL), 线宽为2,画绿色
DRAWNUMBER(ISLASTBAR AND C>=多空,多空,多空),COLORFF00FF
DRAWNUMBER(ISLASTBAR AND C<多空,多空,多空),画绿色
当满足条件1时,在横轴0.00纵轴0.00位置书写文字
DRAWTEXT_FIX(1,0.07,0.00,0,EXTERNSTR(0,1))COLOR0000FF
当满足条件1时,在横轴0.00纵轴0.08位置书写文字
DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,2)),COLORMAGENTA
DRAWTEXT_FIX(C>0,0.00,0.16,0,STRCAT('所属概念:',GNBLOCK)),画黄色
DRAWTEXT_FIX(C>0,0.00,0.24,0,STRCAT('所属行业:',HYBLOCK)),画黄色
{通达信公式大全 股票指标网}
M5:C的5日简单移动平均
输出M10:C的10日简单移动平均
输出M60:C的60日简单移动平均
输出M120:C的120日简单移动平均
输出M250:C的250日简单移动平均
DRAWBAND(M5,120,C的60日简单移动平均,RGB(35,135,35))
DRAWBAND(M5,60,M5的5日简单移动平均,RGB(35,88,35))
STICKLINE( 到最后交易的周期<26 AND C>=1日前的C,H,L,0,1),画红色
STICKLINE( 到最后交易的周期<26 AND C>=1日前的C,C,O,2,1),画红色
STICKLINE( 到最后交易的周期<26 AND C<1日前的C,H,L,0,0),画青色
STICKLINE( 到最后交易的周期<26 AND C<1日前的C,C,O,2,0),画青色
A1赋值:IF(C>1日前的C AND CROSS(C,C的13日简单移动平均),30,5)
WWWFXJGSWCOM赋值:成交量/((最高价-最低价)*2-收盘价-开盘价的绝对值)
当满足条件 到最后交易的周期=1 AND A1=30时,在横轴0.9纵轴0.1位置书写文字
A2赋值:IF(C>1日前的C AND CROSS(C,C的60日简单移动平均),30,5)
当满足条件 到最后交易的周期=1 AND A2=30时,在横轴0.9纵轴0.2位置书写文字
A3赋值:IF(C>1日前的C AND CROSS(C,C的120日简单移动平均),30,5)
当满足条件 到最后交易的周期=1 AND A3=30时,在横轴0.9纵轴0.3位置书写文字
A4赋值:IF(C>1日前的C AND CROSS(C,C的250日简单移动平均),30,5)
当满足条件 到最后交易的周期=1 AND A4=30时,在横轴0.9纵轴0.4位置书写文字
A5赋值:IF(C>1日前的C AND C的5日简单移动平均>=C的10日简单移动平均,20,5)
当满足条件 到最后交易的周期=1 AND A5=20时,在横轴0.9纵轴0.5位置书写文字
A6赋值:A1和A2较大值,A3和A4较大值)
A7赋值:A6和A5较大值
如果V/CAPITAL*100>1 AND V/CAPITAL*100<2返回20否则返回5
当满足条件 到最后交易的周期=1 AND B1=20时,在横轴0.9纵轴0.6位置书写文字
如果V/CAPITAL*100>2 AND V/CAPITAL*100<5返回25否则返回5
当满足条件 到最后交易的周期=1 AND B2=25时,在横轴0.9纵轴0.7位置书写文字
如果V/CAPITAL*100>5返回30否则返回5
当满足条件 到最后交易的周期=1 AND B3=30时,在横轴0.9纵轴0.8位置书写文字
如果V/CAPITAL*100<1返回-10否则返回5
当满足条件 到最后交易的周期=1 AND B4=-10时,在横轴0.9纵轴0.9位置书写文字
B5赋值:B1和B2较大值,B3和B4较大值)
C1赋值:IF(DYNAINFO(17)>1.5,20,5)
C2赋值:IF(DYNAINFO(17)>2,25,5)
C3赋值:IF(DYNAINFO(17)>5,30,5)
C4赋值:IF(DYNAINFO(17)<1,-10,5)
C5赋值:C1和C2较大值,C3和C4较大值)
D1赋值:IF((DYNAINFO(23)/DYNAINFO(22))>1,5,0)
D2赋值:IF((DYNAINFO(23)/DYNAINFO(22))>1.2,10,0)
D3赋值:IF((DYNAINFO(23)/DYNAINFO(22))<1,-5,0)
D4赋值:D1和D2较大值,D3)
E1赋值:IF(C<1日前的C AND CROSS(C的10日简单移动平均,C的5日简单移动平均),-20,5)
总分赋值:A7+B5+C5+D4+E1
STICKLINE(M250>1日前的M250,M250,M250*0.98,5,0),画红色
DRAWTEXT(M250>1日前的M250,M250,'上升'),画黄色
VAR1赋值:(100 - ((90 * (14日内最高价最高值 - 收盘价)) / (14日内最高价最高值 - 14日内最低价最低值)))
VAR2赋值:(100 - ((90 * (14日内最高价最高值 - 收盘价)) / (14日内最高价最高值 - 14日内最低价最低值)))
VAR3赋值:(100 - MA(((100 * (6日内最高价最高值 - 收盘价)) / (6日内最高价最高值 - 6日内最低价最低值)),34))
DIR1赋值:收盘价-5日前的收盘价的绝对值
VIR1赋值:SUM(收盘价-1日前的收盘价的绝对值,5)
ER1赋值:DIR1/VIR1
CS1赋值:ER1*(0.8-2/8)+2/8
CQ1赋值:CS1*CS1
DIR2赋值:收盘价-10日前的收盘价的绝对值
VIR2赋值:SUM(收盘价-1日前的收盘价的绝对值,10)
ER2赋值:DIR2/VIR2
CS2赋值:ER2*(0.8-2/24)+2/24
CQ2赋值:CS2*CS2
STICKLINE(VAR2 < VAR3的6日简单移动平均,最低价,最高价,0,1),COLORLIBLUE
STICKLINE(VAR2 > VAR3的6日简单移动平均,最低价,最高价,0,1),画红色
STICKLINE(((开盘价>收盘价)AND(VAR2
STICKLINE(((开盘价<收盘价)AND(VAR2
STICKLINE(((开盘价>收盘价)AND(VAR2>VAR3的6日简单移动平均)),开盘价,(收盘价-0.03),3.05,0),画红色
STICKLINE(((开盘价<收盘价)AND(VAR2>VAR3的6日简单移动平均)),开盘价,收盘价,3.05,1),画红色
DRAWICON(CROSS(VAR2,VAR3的6日简单移动平均),(最低价 - (最低价*0.02)),7)
DRAWICON(CROSS(VAR3的6日简单移动平均,VAR1),(最高价+(最高价*0.02)),8)
PT赋值:1日前的H-1日前的L
CDP赋值:(1日前的H+1日前的L+1日前的C*2)/4
AH赋值:CDP+PT
AL赋值:CDP-PT
NH赋值:CDP*2-1日前的L
NL赋值:CDP*2-1日前的H
输出强:IF(AH>1日前的C*1.1,1日前的C*1.1,AH)NODRAW
输出阻:IF(NH>强,(强-CDP)*0.618+CDP,NH)NODRAW, 画蓝色
M赋值:IF(AL<1日前的C/1.1,1日前的C/1.1,AL)
输出撑:IF(NL
输出底:IF(AL<1日前的C/1.1,1日前的C/1.1,AL)NODRAW
{通达信公式大全 股票指标网}