当前位置 > 散户吧 > 行情软件 > 指标公式 > 通达信百年经典主图指标公式源码
通达信百年经典主图指标公式源码
间隔:=3;角度:=4;
M1:=IF((CLOSE > 100),1,0.01);
M2:=(1 / 间隔);
PYEAR:=(角度 * 0.25);
BB:=LLV(YEAR,0);
PMONTH:=SUM(MONTH,0);
CC:=LLV(PMONTH,0);
PDAY:=SUM(DAY,0);
P1990:=LLV(PDAY,0);
T1990:=((((YEAR - 1990) * 365.24219) + ((MONTH - 1) * 30.43685)) + DAY);
A:=((((BB - 1990) * 365.24219) + ((CC - 1) * 30.436)) + P1990);
V1:=CEILING((T1990 - A));
V2:=((V1 * M1) * PYEAR);
V3:=(V2 - ((CEILING(((V2 - CLOSE) / (365.24219 * M1))) * 365.24219) * M1));
V333:=(V2 - ((FLOOR(((V2 - CLOSE) / (365.24219 * M1))) * 365.24219) * M1));
V444:=(V2 - (((CEILING(((V2 - CLOSE) / ((365.24219 * M1) * M2))) * 365.24219) * M1) * M2));
V4:=(V2 - (((FLOOR(((V2 - CLOSE) / ((365.24219 * M1) * M2))) * 365.24219) * M1) * M2));
本文来自散户吧WWW.SANHUBA.COM
{PLOYLINE((Abs((V444 - REF(V444,1))) < (10 * M1)),V444),,COLORFF;
PLOYLINE((ABS((V4 - REF(V4,1))) < (10 * M1)),V4),,COLORFF;}
V5:=REVERSE(V2);
V6:=(V5 + ((CEILING(((CLOSE - V5) / (365.24219 * M1))) * 365.24219) * M1));
V555:=(V5 + ((FLOOR(((CLOSE - V5) / (365.24219 * M1))) * 365.24219) * M1));
V666:=(V5 + (((CEILING(((CLOSE - V5) / ((365.24219 * M1) * M2))) * 365.24219) * M1) * M2));
V22:=(V5 + (((FLOOR(((CLOSE - V5) / ((365.24219 * M1) * M2))) * 365.24219) * M1) * M2));
{PLOYLINE((ABS((V666 - REF(V666,1))) < (10 * M1)),V666),,COLORFF00;
PLOYLINE((ABS((V22 - REF(V22,1))) < (10 * M1)),V22),,COLORFF00;}
V33:=(V2 - ((CEILING(((V2 - MA(CLOSE,30)) / (365.24219 * M1))) * 365.24219) * M1));
V3333:=(V2 - ((FLOOR(((V2 - MA(CLOSE,30)) / (365.24219 * M1))) * 365.24219) * M1));
V4444:=(V2 - (((CEILING(((V2 - MA(CLOSE,30)) / ((365.24219 * M1) * M2))) * 365.24219) * M1) * M2));
本文来自散户吧WWW.SANHUBA.COM
V44:=(V2 - (((FLOOR(((V2 - MA(CLOSE,30)) / ((365.24219 * M1) * M2))) * 365.24219) * M1) * M2));
{PLOYLINE((ABS((V4444 - REF(V4444,1))) < (10 * M1)),V4444),,COLORFF0000;
PLOYLINE((ABS((V44 - REF(V44,1))) < (10 * M1)),V44),,COLORFF0000;}
V55:=REVERSE(V2);
V66:=(V55 + ((CEILING(((MA(CLOSE,30) - V55) / (365.24219 * M1))) * 365.24219) * M1));
V5555:=(V55 + ((FLOOR(((MA(CLOSE,30) - V55) / (365.24219 * M1))) * 365.24219) * M1));
V6666:=(V55 + (((CEILING(((MA(CLOSE,30) - V55) / ((365.24219 * M1) * M2))) * 365.24219) * M1) * M2));
VAR1:=(V55 + (((FLOOR(((MA(CLOSE,30) - V55) / ((365.24219 * M1) * M2))) * 365.24219) * M1) * M2));
{PLOYLINE((ABS((V6666 - REF(V6666,1))) < (10 * M1)),V6666),,COLORFF00DD;
PLOYLINE((ABS((VAR1 - REF(VAR1,1))) < (10 * M1)),VAR1),,COLORFF00DD;}
M5:=MA(C,5);
E5:=EMA(C,5);
本文来自散户吧WWW.SANHUBA.COM
M10:=MA(C,10);
E10:=EMA(C,10);
M20:=MA(C,20);
E20:=EMA(C,20);
M50:=MA(C,50);
E50:=EMA(C,50);
M60:=MA(C,60);
E60:=EMA(C,60);
M120:=MA(C,120);
E120:=EMA(C,120);
M250:=MA(C,250);
E250:=EMA(C,250);
STICKLINE((E250>=M250),E250,M250,2,0),COLORRED;
STICKLINE((E120>=M120),E120,M120,6,0),COLORWHITE;
STICKLINE((E60>=M60),E60,M60,6,0),COLORBLUE;
STICKLINE((E50>=M50),E50,M50,6,0),COLORYELLOW;
STICKLINE((E20>=M20),E20,M20,6,0),COLORMAGENTA;
STICKLINE((E20>=M20),E20,M20,6,0),COLORMAGENTA;
STICKLINE((E20<=M20),M20,E20,6,0),COLORGREEN;
STICKLINE((E10>=M10),M10,E10,6,0),COLOR88FFDD;
STICKLINE((E10<=M10),M10,E10,6,0),COLORFFCD02;STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.1,0),COLOR0000FF; 本文来自散户吧WWW.SANHUBA.COM
STICKLINE(CLOSE>OPEN,OPEN,LOW,0.1,0),COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0),LINETHICK2,COLOR5050FF;{红柱}
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.5,0),COLOR5050FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.3,0),COLOR5F5FFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR5F5FFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.75,0),COLOR6C6CFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.5,0),COLOR6C6CFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.2,0),COLOR7E7EFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),COLOR7E7EFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.65,0),COLOR9D9DFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR9D9DFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.1,0),COLORAFAFFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0),COLORAFAFFF;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.6,0),COLORC1C1FF; 本文来自散户吧WWW.SANHUBA.COM
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.25,0),COLORC1C1FF;
STICKLINE(C=O,C,O,8,0),COLOR009900;STICKLINE(CLOSE=OPEN,OPEN,LOW,0.1,0),COLORFF8A85;STICKLINE(CLOSE<OPEN,CLOSE,HIGH,0.1,0),COLORFF8A85;
STICKLINE(CLOSE<OPEN,OPEN,LOW,0.1,0),COLORFF8A85;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,4,0),LINETHICK2,COLOR008200;{绿柱}
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3.5,0),COLOR138B13;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3,0),COLOR279227;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2.5,0),COLOR419D41;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2,0),COLOR62AB62;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,1.5,0),COLOR80B980;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,1,0),COLOR90BE90;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.5,0),COLOR9FC49E;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.25,0),COLORB1CCB1;
AS:=BacKSET(ISLASTBAR,HHVBARS(HIGH,45)+1); 本文来自散户吧WWW.SANHUBA.COM
B:=AS>REF(AS,1);
D:=BACKSET(ISLASTBAR,LLVBARS(LOW,45)+1);
E:=D>REF(D,1);
HH:=REF(HIGH,BArslAST(B));
LL:=REF(LOW,BARSLAST(E));
高点:HH,LINETHICK2;
低点:LL,LINETHICK2;
C点:PLOYLINE(1,HH*0.8709),COLORFF0000,LINETHICK2;
{B点:PLOYLINE(1,HH*0.75),LINETHICK2,COLORFFFFFF;
PLOYLINE(1,HH*0.7252),COLORFFFFFF;
PLOYLINE(1,HH*0.667),crOSSDOT,COLORFFddeE;
PLOYLINE(1,HH*0.625),COLORFFDDEE;}
{M点:PLOYLINE(1,HH*0.5),LINETHICK2,COLORFFFFEE;}
DRAWTEXT(ISLASTBAR,HH*0.8709,'有名底'),COLORFFFF11;
{DRAWTEXT(ISLASTBAR,HH*0.7252,'无名底'),COLORFFFF22;
DRAWTEXT(ISLASTBAR,HH*0.625,'超跌底'),COLORFFFF33;
DRAWTEXT(ISLASTBAR,HH*0.5,'狂跌底'),COLORFFFF44; }; 本文来自散户吧WWW.SANHUBA.COM
本文来自散户吧WWW.SANHUBA.COM
本文来自散户吧WWW.SANHUBA.COM
(小编:财神)
相关新闻更多新闻>>
- ·通达信MACD二次红指标公式源码10-20
- ·通达信暴涨起步选股指标公式源码副图10-03
- ·通达信一组绝顶精品主图公式02-05
- ·通达信精准出击公式副图源码10-04
- ·通达信三警惕指标公式源码副图10-20
- ·通达信强烈抄底指标公式副图源码10-18
- ·东方财富通股价高低点自动画线主图指标02-05
- ·定夺指标公式副图 源码10-04
- ·通达信银城华哥V反主图选股预警公式 金钻指标10-03
- ·通达信界限多空系统指标公式副图源码10-04
今日要闻更多>>
- ·农业物联网板块上市公司一览(2023/10/14)10-21
- ·航空概念股有哪些上市公司?航空股票排名(10/13)10-21
- ·国货品牌概念股龙头有哪些?国货品牌股票一览(2023/10/14)10-21
- ·2023年A股碳捕捉股票龙头股一览(2023/10/6)10-21
- ·英伟达芯片将被出口管制 国产AI芯片迎加速发展机遇10-21
- ·四季度存储芯片价格开始全面上涨 机构称周期上行趋势明朗10-21
- · 医疗服务板块涨4.1% 毕得医药涨10.11%居首10-21
- ·数据复盘:口腔板块股票七大熊股(2023年10月17日)10-21
- ·红墙转债转股价是多少 红墙转债是做什么的10-21
- ·广泰转债10月18日申购指南 发行价格100元10-21
财经要闻更多>>
- ·保隆科技:获得ADAS项目定点通知书 项目生命周期总金额超过3亿元10-21
- ·司美格鲁肽或引爆减肥药细分领域 威高股份早已抢先布局相关耗材领域10-21
- ·MSCI上调绿城中国ESG评级至“A”级10-21
- ·日播时尚:部分高管辞职为治理结构调整 品牌业务核心团队均继续任职10-21
- ·锐明技术:目前公司与华为在自动驾驶方面未有合作10-21
- ·世界黄金协会发布2023中国金饰零售市场洞察:金饰销售表现亮眼 轻量化产品受青睐10-21
- ·中欣氟材:公司正采取精细化运营等多项措施 争取降本增效、尽快提升盈利能力10-21
- ·早盘东方证券快速下挫,股价一度大跌超8%10-21
- ·铭利达:公司有部分产品运用于高压快充和液冷快充 但目前整体业务量占比较小10-21
- ·股民提问四方光电:氧气传感器是否已有国内混动新能源汽车配套供应或定点?10-20