CYC成本均线源码 主图 通达信 贴图
PC:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
JJJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));
DDD:=(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01);
JJJT:=IF(DDD,1,(JJJ<(DYNAINFO(5)+0.01) && JJJ>(DYNAINFO(6)-0.01)));
CYC5:IF(JJJT,0.01*EXPMA(AMOUNT,5)/EXPMA(AMOUNT/(100*PC),5),EMA((HIGH+LOW+CLOSE)/3,5));
CYC13:IF(JJJT,0.01*EXPMA(AMOUNT,13)/EXPMA(AMOUNT/(100*PC),13),EMA((HIGH+LOW+CLOSE)/3,13));
CYC34:IF(JJJT,0.01*EXPMA(AMOUNT,34)/EXPMA(AMOUNT/(100*PC),34),EMA((HIGH+LOW+CLOSE)/3,34));
CYC500:IF(JJJT,0.01*EXPMA(AMOUNT,500)/EXPMA(AMOUNT/(100*PC),500),EMA((HIGH+LOW+CLOSE)/3,500)),COLORRED;
CYC∞:IF(JJJT,DMA(PC,100*VOL/FINANCE(7)),EMA((HIGH+LOW+CLOSE)/3,120)),COLORGREEN;
倍量:=VOL>=REF(V,1)*1.91 AND C>O;
缩量:=REF(V,1)>=VOL*1.91 AND C<O;
STICKLINE(倍量,OPEN,CLOSE,2,0),COLORRED;
STICKLINE(缩量,OPEN,CLOSE,2,0),COLORGREEN;
C2:=REF(C,1);
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORMAGENTA;
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
筹码峰值均价:SSRP.SSRP,COLOR40408F,LINETHICK1,COLORYELLOW,CROSSDOT;
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;
GJ:=(C+H+L+O)/4;
明阻:=L+(GJ-L)+(C-L)+0.03;
明撑:=L+(C-GJ)+0.01;
今阻:REF(明阻 , 1),NODRAW;
今撑:REF(明撑 , 1),NODRAW;
KLH:=IF( PERIOD=5,0.015,0);
前天均价:=REF(AMOUNT,1)/REF(VOL*100,1),LINETHICK0;
STICKLINE(CURRBARSCOUNT=1,今阻+KLH,今阻,6,0),COLORGREEN;
STICKLINE(CURRBARSCOUNT=1,今撑,今撑-KLH,6,0),COLORRED;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
PC赋值:(3*最高价+最低价+开盘价+2*收盘价)/7
JJJ赋值:IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3))
DDD赋值:(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01)
JJJT:=IF(DDD,1,(JJJ<(DYNAINFO(5)+0.01) && JJJ>(DYNAINFO(6)-0.01)))
输出CYC5:IF(JJJT,0.01*成交额的5日指数移动平均/EXPMA(成交额/(100*PC),5),EMA((最高价+最低价+收盘价)/3,5))
输出CYC13:IF(JJJT,0.01*成交额的13日指数移动平均/EXPMA(成交额/(100*PC),13),EMA((最高价+最低价+收盘价)/3,13))
输出CYC34:IF(JJJT,0.01*成交额的34日指数移动平均/EXPMA(成交额/(100*PC),34),EMA((最高价+最低价+收盘价)/3,34))
CYC500:IF(JJJT,0.01*成交额的500日指数移动平均/EXPMA(成交额/(100*PC),500),EMA((最高价+最低价+收盘价)/3,500)),画红色
输出CYC∞:IF(JJJT,DMA(PC,100*成交量/FINANCE(7)),EMA((最高价+最低价+收盘价)/3,120)),画绿色
倍量赋值:成交量>=1日前的V*1.91 AND C>O
缩量赋值:1日前的V>=成交量*1.91 AND C当满足条件倍量时,在开盘价和收盘价之间画柱状线
当满足条件缩量时,在开盘价和收盘价之间画柱状线
C2赋值:1日前的C
涨停赋值:IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0)
跌停赋值:IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0)
当满足条件涨停时,在开盘价和收盘价之间画柱状线
当满足条件跌停时,在开盘价和收盘价之间画柱状线
输出筹码峰值均价:SSRP.SSRP,COLOR40408F,LINETHICK1,画黄色,CROSSDOT
当满足条件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)),画洋红色
DRAWTEXT_FIX(C>0,0.00,0.16,0,STRCAT('所属概念:',GNBLOCK)),画黄色
DRAWTEXT_FIX(C>0,0.00,0.24,0,STRCAT('所属行业:',HYBLOCK)),画黄色
GJ赋值:(C+H+L+O)/4
明阻赋值:L+(GJ-L)+(C-L)+0.03
明撑赋值:L+(C-GJ)+0.01
输出今阻: 1日前的明阻 ,NODRAW
输出今撑: 1日前的明撑 ,NODRAW
如果 PERIOD=5返回0.015否则返回0
前天均价赋值:1日前的成交额/1日前的成交量*100,LINETHICK0
当满足条件 到最后交易的周期=1时,在今阻+KLH和今阻之间画柱状线
当满足条件 到最后交易的周期=1时,在今撑和今撑-KLH之间画柱状线