神龙顶底指标通道类主图 集成各类F10财务数据信息
DRAWGBK(C>O,RGB(10,0,0),RGB(0,0,0),1,2,1);DRAWKLINE(H,O,L,C);安全:=MA(C,30),CIRCLEDOT,COLORFF00FF;当日成本:=IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/12);{板块市值业绩}所属板块:=STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT(' [行业]—',HYBLOCK),STRCAT(' [地域]—',DYBLOCK)),STRCAT(' [概念]—',GNBLOCK)));总股本:=STRCAT(STRCAT(' 总股本:',CON2STR(TOTALCAPITAL/1000000,2)),'亿');流通盘:=STRCAT(STRCAT(' 流通盘:',CON2STR(CAPITAL/1000000,2)),'亿');全流通:=STRCAT(STRCAT(' 流通比:',CON2STR(CAPITAL/TOTALCAPITAL*100,2)),'%');市值:=STRCAT(STRCAT(' 流通市值:',CON2STR((CAPITAL/1000000)*C,2)),'亿');上市日期:=STRCAT(' 上市日期: ',CON2STR(HHV((BARSCOUNT(C)=0)*(DATE+19000000),0),0));股本市值:=STRCAT('【股本市值】',STRCAT(STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值),上市日期));市盈率:=STRCAT(' 市盈率:',CON2STR(C/FINANCE(33),2));市销率:=STRCAT(' 市销率:',CON2STR(C/(FINANCE(20)/FINANCE(1)),2));市净率:=STRCAT(' 市净率:',CON2STR(C/FINANCE(34),2));净资收益率:=STRCAT(' 净资收益率:',CON2STR(FINANCE(33)/FINANCE(34)*100,2));毛利率:=STRCAT(' 毛利率:',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2));净利润率:=STRCAT(' 净利率:',CON2STR(FINANCE(30)/FINANCE(20)*100,2));主营利润率:=STRCAT(' 主营利润率:',CON2STR(FINANCE(23)/FINANCE(20)*100,2));当前业绩:=STRCAT('【当前业绩】',STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(市盈率,市销率),市净率),净资收益率),毛利率),净利润率),主营利润率));DRAWTEXT_FIX(ISLASTBAR,0.005,0.02,0,所属板块),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.005,0.07,0,股本市值),COLORMAGENTA;DRAWTEXT_FIX(ISLASTBAR,0.005,0.12,0,当前业绩),COLORMAGENTA;DRAWTEXT_FIX(1,0.005,0.17,0,'莸利比例:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.06,0.17,0,CONST(WINNER(C )*100)),COLORYELLOW;DRAWNUMBER_FIX(1,0.15,0.17,0,CONST(DYNAINFO(37)*100)),COLORYELLOW;DRAWTEXT_FIX (1,0.12,0.17,0,'换手:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.25,0.17,0,CONST(DYNAINFO(17))),COLORYELLOW;DRAWTEXT_FIX (1,0.22,0.17,0,'量比:'),COLORYELLOW;DRAWTEXT_FIX (1,0.30,0.17,0,'涨幅:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.33,0.17,0,CONST(DYNAINFO(14)*100)),COLORYELLOW;DRAWNUMBER_FIX(1,0.33,0.17,0,IF(CONST(DYNAINFO(14)*100)<0,CONST(DYNAINFO(14)*100),DRAWNULL)),COLORYELLOW;X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替};X3:=FINANCE(23)/FINANCE(10)*3.3;X4:=FINANCE(19)/FINANCE(15)*0.6;{,公式源码 缺长期负债或负债总额}X5:=FINANCE(20)/FINANCE(15)*0.999;Z值:=X1+X2+X3+X4+X5;预警:=IF(Z值<1.2,'重警',IF(Z值>=1.2 AND Z值<2.6,'轻警','无警'));财务预警:=STRCAT('财务预警: ',STRCAT(预警,STRCAT('-Z值: ',CON2STR(Z值,3))));优质资产率:=STRCAT(' 优质资产率: ',CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19),2));{理论上越大越好但不同行业有不同标准};现金负债比:=STRCAT(' 现金负债比: ',CON2STR(FINANCE(25)/FINANCE(15),3));{缺长期负债或负债总额,理论上越大越好但不同行业有不同标准};财务系数:=STRCAT('风险系数: ',STRCAT(STRCAT(财务预警,优质资产率),现金负债比));DRAWTEXT_FIX(ISLASTBAR,0.005,0.23,0,财务系数),COLORGREEN;{双龙趋势}龙一:EMA(H,55),COLORGREEN,LINETHICK1;龙二:EMA(L,55),COLORGREEN,LINETHICK1;NA1:=PLOYLINE(C>龙一,龙一);IF(C>龙一,NA1,DRAWNULL),COLORMAGENTA,LINETHICK1;NB1:=PLOYLINE(C>龙二,龙二);IF(C>龙二,NB1,DRAWNULL),COLORMAGENTA,LINETHICK1;{神龙顶底}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;DRAWICON(CROSS(J,0),L*0.999,34);DRAWICON(CROSS(100,J),H*1.003,35);{九转序列}A1:=C>REF(C,4);A2:=C<REF(C,4);T1:=A2 AND REF(A1,1);T2:=A2 AND REF(T1,1);T3:=A2 AND REF(T2,1);T4:=A2 AND REF(T3,1);T5:=A2 AND REF(T4,1);T6:=A2 AND REF(T5,1);T7:=A2 AND REF(T6,1);T8:=A2 AND REF(T7,1);T9:=A2 AND REF(T8,1);DRAWTEXT(T6,L*0.995,'6'),COLORGREEN;DRAWTEXT(T7,L*0.995,'7'),COLORGREEN;DRAWTEXT(T8,L*0.995,'8'),COLORGREEN;DRAWTEXT(T9,L*0.995,'9'),COLORGREEN;B1:=C<REF(C,4);B2:=C>REF(C,4);D1:=B2 AND REF(B1,1);D2:=B2 AND REF(D1,1);D3:=B2 AND REF(D2,1);D4:=B2 AND REF(D3,1);D5:=B2 AND REF(D4,1);D6:=B2 AND REF(D5,1);D7:=B2 AND REF(D6,1);D8:=B2 AND REF(D7,1);D9:=B2 AND REF(D8,1);DRAWTEXT(D6,H*1.008,'6'),COLORYELLOW;DRAWTEXT(D7,H*1.008,'7'),COLORYELLOW;DRAWTEXT(D8,H*1.008,'8'),COLORYELLOW;DRAWTEXT(D9,H*1.008,'9'),COLORYELLOW;慢牛线:=EXPMEMA(当日成本,51),LINETHICK2,COLORMAGENTA;波段高:(XMA(XMA(HIGH,30),30)-XMA(XMA(LOW,30),30))*2+XMA(XMA(HIGH,30),30),COLORWHITE,LINETHICK1;波段低:XMA(XMA(LOW,30),30)-(XMA(XMA(HIGH,30),30)-XMA(XMA(LOW,30),30))*1.5,COLORWHITE,LINETHICK1;波段中值:(波段高+波段低)/2,DOTLINE,COLOR909090;IF(波段高>=REF(波段高,1),波段高,DRAWNULL),COLORRED,LINETHICK2;IF(波段低>=REF(波段低,1),波段低,DRAWNULL),COLORRED,LINETHICK2;IF(波段高<=REF(波段高,1),波段高,DRAWNULL),COLOR008800,LINETHICK3;IF(波段低<=REF(波段低,1),波段低,DRAWNULL),COLOR008800,LINETHICK3;STICKLINE(REF(LOW,1)<波段低 AND CLOSE>波段低 AND 波段高>=REF(波段高,1) AND CLOSE>OPEN,CLOSE,OPEN,(-1),0),COLORYELLOW;STICKLINE(REF(HIGH,1)>=波段高 AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN,CLOSE,OPEN,(-1),0),COLORFF6600;DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
该公式包含未来函数:XMA
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
DRAWGBK(C>O,RGB(10,0,0),RGB(0,0,0),1,2,1)
DRAWKLINE(H,O,L,C)
安全赋值:C的30日简单移动平均,CIRCLEDOT,COLORFF00FF
当日成本赋值:IF(C>1日前的C,(3*H+4*C+3*开盘价+2*L)/12,(2*H+4*C+3*开盘价+3*L)/12)
{板块市值业绩}所属板块赋值:STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT(' [行业]—',HYBLOCK),STRCAT(' [地域]—',DYBLOCK)),STRCAT(' [概念]—',GNBLOCK)))
总股本:=STRCAT(STRCAT(' 总股本:',CON2STR(TOTAL当前流通股本/1000000,2)),'亿')
流通盘:=STRCAT(STRCAT(' 流通盘:',CON2STR(当前流通股本/1000000,2)),'亿')
全流通:=STRCAT(STRCAT(' 流通比:',CON2STR(当前流通股本/TOTAL当前流通股本*100,2)),'%')
市值:=STRCAT(STRCAT(' 流通市值:',CON2STR((当前流通股本/1000000)*C,2)),'亿')
上市日期:=STRCAT(' 上市日期: ',CON2STR(HHV((C的有效数据周期数=0)*(DATE+19000000),0),0))
股本市值赋值:STRCAT('【股本市值】',STRCAT(STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值),上市日期))
市盈率:=STRCAT(' 市盈率:',CON2STR(C/FINANCE(33),2))
市销率:=STRCAT(' 市销率:',CON2STR(C/(FINANCE(20)/FINANCE(1)),2))
市净率:=STRCAT(' 市净率:',CON2STR(C/FINANCE(34),2))
净资收益率:=STRCAT(' 净资收益率:',CON2STR(FINANCE(33)/FINANCE(34)*100,2))
毛利率:=STRCAT(' 毛利率:',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2))
净利润率:=STRCAT(' 净利率:',CON2STR(FINANCE(30)/FINANCE(20)*100,2))
主营利润率:=STRCAT(' 主营利润率:',CON2STR(FINANCE(23)/FINANCE(20)*100,2))
当前业绩赋值:STRCAT('【当前业绩】',STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(市盈率,市销率),市净率),净资收益率),毛利率),净利润率),主营利润率))
当满足条件ISLASTBAR时,在横轴0.005纵轴0.02位置书写文字
当满足条件ISLASTBAR时,在横轴0.005纵轴0.07位置书写文字
当满足条件ISLASTBAR时,在横轴0.005纵轴0.12位置书写文字
当满足条件1时,在横轴0.005纵轴0.17位置书写文字
DRAWNUMBER_FIX(1,0.06,0.17,0,CONST(C 计算的获利盘比例*100)),画黄色
DRAWNUMBER_FIX(1,0.15,0.17,0,CONST(DYNAINFO(37)*100)),画黄色
输出DRAWTEXT_FIX (1,0.12,0.17,0,'换手:'),画黄色
DRAWNUMBER_FIX(1,0.25,0.17,0,CONST(DYNAINFO(17))),画黄色
输出DRAWTEXT_FIX (1,0.22,0.17,0,'量比:'),画黄色
输出DRAWTEXT_FIX (1,0.30,0.17,0,'涨幅:'),画黄色
DRAWNUMBER_FIX(1,0.33,0.17,0,CONST(DYNAINFO(14)*100)),画黄色
DRAWNUMBER_FIX(1,0.33,0.17,0,IF(CONST(DYNAINFO(14)*100)<0,CONST(DYNAINFO(14)*100),DRAWNULL)),画黄色
X1赋值:(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2
X2赋值:(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4
{盈余公积用资本公积金代替}
X3赋值:FINANCE(23)/FINANCE(10)*3.3
X4赋值:FINANCE(19)/FINANCE(15)*0.6
{,公式源码 缺长期负债或负债总额}X5赋值:FINANCE(20)/FINANCE(15)*0.999
Z值赋值:X1+X2+X3+X4+X5
预警赋值:IF(Z值<1.2,'重警',IF(Z值>=1.2 AND Z值<2.6,'轻警','无警'))
财务预警赋值:STRCAT('财务输出预警: ',STRCAT(预警,STRCAT('-输出Z值: ',CON2STR(Z值,3))))
优质资产率:=STRCAT(' 优质资产率: ',CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19),2))
{理论上越大越好但不同行业有不同标准}
现金负债比:=STRCAT(' 现金负债比: ',CON2STR(FINANCE(25)/FINANCE(15),3))
{缺长期负债或负债总额,理论上越大越好但不同行业有不同标准}
财务系数:=STRCAT('风险系数: ',STRCAT(STRCAT(财务预警,优质资产率),现金负债比))
当满足条件ISLASTBAR时,在横轴0.005纵轴0.23位置书写文字
输出{双龙趋势}龙一:H的55日指数移动平均,画绿色,LINETHICK1
输出龙二:L的55日指数移动平均,画绿色,LINETHICK1
NA1赋值:PLOYLINE(C>龙一,龙一)
如果C>龙一返回NA1否则返回DRAWNULL
NB1赋值:PLOYLINE(C>龙二,龙二)
如果C>龙二返回NB1否则返回DRAWNULL
{神龙顶底}RSV赋值:(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100
RSV的3日[1日权重]移动平均
K的3日[1日权重]移动平均
J赋值:3*K-2*D
DRAWICON(J上穿0,L*0.999,34)
DRAWICON(100上穿J,H*1.003,35)
{九转序列}A1赋值:C>4日前的C
A2赋值:C<4日前的C
T1赋值:A2 AND 1日前的A1
T2赋值:A2 AND 1日前的T1
T3赋值:A2 AND 1日前的T2
T4赋值:A2 AND 1日前的T3
T5赋值:A2 AND 1日前的T4
T6赋值:A2 AND 1日前的T5
T7赋值:A2 AND 1日前的T6
T8赋值:A2 AND 1日前的T7
T9赋值:A2 AND 1日前的T8
当满足条件T6时,在L*0.995和'6'位置书写文字
当满足条件T7时,在L*0.995和'7'位置书写文字
当满足条件T8时,在L*0.995和'8'位置书写文字
当满足条件T9时,在L*0.995和'9'位置书写文字
B1赋值:C<4日前的C
B2赋值:C>4日前的C
D1:=B2 AND 1日前的B1
D2:=B2 AND 1日前的D1
D3:=B2 AND 1日前的D2
D4:=B2 AND 1日前的D3
D5:=B2 AND 1日前的D4
D6:=B2 AND 1日前的D5
D7:=B2 AND 1日前的D6
D8:=B2 AND 1日前的D7
D9:=B2 AND 1日前的D8
当满足条件D6时,在H*1.008和'6'位置书写文字
当满足条件D7时,在H*1.008和'7'位置书写文字
当满足条件D8时,在H*1.008和'8'位置书写文字
当满足条件D9时,在H*1.008和'9'位置书写文字
慢牛线赋值:EXP当日成本的51日平滑移动平均,LINETHICK2,画洋红色
输出波段高:(XX最高价的30日简单移动平均,30)-XX最低价的30日简单移动平均,30))*2+XX最高价的30日简单移动平均,30),画白色,LINETHICK1
输出波段低:XX最低价的30日简单移动平均,30)-(XX最高价的30日简单移动平均,30)-XX最低价的30日简单移动平均,30))*1.5,画白色,LINETHICK1
输出波段中值:(波段高+波段低)/2,DOTLINE,COLOR909090
IF(波段高>=1日前的波段高,波段高,DRAWNULL),COLORRED,LINETHICK2
IF(波段低>=1日前的波段低,波段低,DRAWNULL),COLORRED,LINETHICK2
IF(波段高<=1日前的波段高,波段高,DRAWNULL),COLOR008800,LINETHICK3
IF(波段低<=1日前的波段低,波段低,DRAWNULL),COLOR008800,LINETHICK3
STICKLINE(1日前的最低价<波段低 AND 收盘价>波段低 AND 波段高>=1日前的波段高 AND 收盘价>开盘价,收盘价,开盘价,(-1),0),画黄色
STICKLINE(1日前的最高价>=波段高 AND 1日前的收盘价>1日前的开盘价 AND 收盘价<开盘价,收盘价,开盘价,(-1),0),COLORFF6600
DRAWKLINE(最高价,开盘价,最低价,收盘价)