您当前的位置:股票 > 财经资讯 > 财经频道

飞狐很好很全的分割主图指标公式,飞狐四色宝塔K线主图指标公式

2024-06-15 23:17:50 来源: 作者: admin888
分享到
关注牛市通网在线:
  • 扫描二维码

    关注√

    牛市通网微信

在线咨询:
  • 扫描或点击关注牛市通网在线客服

飞狐很好很全的分割主图指标公式,飞狐四色宝塔K线主图指标公式

飞狐很好很全的分割主图指标公式

HH:=SYSPARAM(4);

LL:=SYSPARAM(5);

P16:=(LL + ((HH - LL) * 0.625));

P17:=(LL + ((HH - LL) * 0.375));

P7:=(LL + ((HH - LL) * 0.875));

P8:=(LL + ((HH - LL) * 0.667));

P10:=(LL + ((HH - LL) * 0.333));

P11:=(LL + ((HH - LL) * 0.125));

DRAWTEXT((ISLAst= 1),P7,(' ▲87.5%:' + NUMTOSTR(P7,2))),ALIGN2,color84C1FF;

DRAWTEXT((ISLASTBAR = 1),P8,(' ▲66.7%:' + NUMTOSTR(P8,2))),ALIGN2,color84C1FF;

DRAWTEXT((ISLASTBAR = 1),P10,(' ▲33.3%:' + NUMTOSTR(P10,2))),ALIGN2,colorFFFF00;

DRAWTEXT((ISLASTBAR = 1),P11,(' ▲12.5%:' + NUMTOSTR(P11,2))),ALIGN2,colorFFFF00;

DRAWTEXT((ISLASTBAR = 1),P16,(' ⊙62.5%:' + NUMTOSTR(P16,2))),ALIGN2,colorFF00;

DRAWTEXT((ISLASTBAR = 1),P17,(' ⊙37.5%:' + NUMTOSTR(P17,2))),ALIGN2,colorFF00;

NNL:=(BARPOS = SYSPARAM(3));

江05:(LL + ((HH - LL) * 0.05)),COLOR0010FF,linethick2;

江10:(LL + ((HH - LL) * 0.1));

黄191:(LL + ((HH - LL) * 0.191)),COLOR0010FF,linethick2;

江22:(LL + ((HH - LL) * 0.22));

江25:(LL + ((HH - LL) * 0.25));

江28:(LL + ((HH - LL) * 0.28)),COLOR0010FF,linethick2;

黄甘337:(LL + ((HH - LL) * 0.337));

黄382:(LL + ((HH - LL) * 0.382));

甘氏45:(LL + ((HH - LL) * 0.45)),COLOR0010FF,linethick2;

黄500:(LL + ((HH - LL) * 0.5)),COLOR0010FF,linethick2;

黄618:(LL + ((HH - LL) * 0.618));

黄甘667:(LL + ((HH - LL) * 0.667)),COLOR0010FF,linethick2;

黄甘75:(LL + ((HH - LL) * 0.75));

黄809:(LL + ((HH - LL) * 0.809)),COLOR0010FF,linethick2;

江55:(LL + ((HH - LL) * 0.55));

江75:(LL + ((HH - LL) * 0.75));

江78:(LL + ((HH - LL) * 0.78));

江85:(LL + ((HH - LL) * 0.85));

江90:(LL + ((HH - LL) * 0.9)),COLOR0010FF,linethick2;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.05)),(('江恩05%(' + NUMTOSTR(江05,2)) + ')')),color84C1FF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.1)),(('江恩10%(' + NUMTOSTR(江10,2)) + ')')),color84C1FF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.22)),(('江恩22%(' + NUMTOSTR(江22,2)) + ')')),color84C1FF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.25)),(('江恩25%(' + NUMTOSTR(江25,2)) + ')')),color84C1FF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.28)),(('江恩28%(' + NUMTOSTR(江28,2)) + ')')),COLOR0010FF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.55)),(('江恩55%(' + NUMTOSTR(江55,2)) + ')')),color84C1FF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.191)),(('黄金19.1%(' + NUMTOSTR(黄191,2)) + ')')),colorFFFF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.45)),(('甘氏45%(' + NUMTOSTR(甘氏45,2)) + ')')),COLOR0010FF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.382)),(('★黄金38.2%(' + NUMTOSTR(黄382,2)) + ')')),colorFFFF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.337)),(('黄甘33.7%(' + NUMTOSTR(黄甘337,2)) + ')')),colorFFFF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.5)),(('黄金强弱分界(' + NUMTOSTR(黄500,2)) + ')')),COLOR0010FF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.618)),(('★黄金61.8%(' + NUMTOSTR(黄618,2)) + ')')),colorFFFF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.667)),(('黄甘66.7%(' + NUMTOSTR(黄甘667,2)) + ')')),colorFFFF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.75)),(('江恩75%(' + NUMTOSTR(江75,2)) + ')')),colorDAFC8B;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.78)),(('江恩78%(' + NUMTOSTR(江78,2)) + ')')),colorDAFC8B;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.809)),(('黄金80.9%(' + NUMTOSTR(黄809,2)) + ')')),colorFFFF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.85)),(('江恩85%(' + NUMTOSTR(江85,2)) + ')')),colorDAFC8B;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.9)),(('江恩90%(' + NUMTOSTR(江90,2)) + ')')),colorDAFC8B;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.999)),(('最高价¥(' + NUMTOSTR(HH,2)) + ')')),colorFF00FF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.0000)),(('最低价¥(' + NUMTOSTR(LL,2)) + ')')),colorFFFF00;

LL+((HH-LL)*0.764),pointdot,linethick1,coloryellow;

DRAWTEXT(c>0 and ISLASTBAR=1,LL+((HH-LL)*0.764),' 0.764↑'),color009999;

LL+((HH-LL)*0.236),pointdot,linethick1,coloryellow;

DRAWTEXT(c>0 and ISLASTBAR=1,LL+((HH-LL)*0.236),' 0.236↑'),color009999;

Input:左侧右移(5,0,100,1),右侧左移(0,0,100,1),开关(1,1,2,1),N(30,1,1000,1),M(5,1,365,1);

t1:=barpos=sysparam(2)+左侧右移;

t2:=barpos=sysparam(3)-右侧左移;

t11:=sysparam(2)+左侧右移;

t21:=sysparam(3)-右侧左移;

ymd:=date;

D1:=ymd[t11],linethick0;

D2:=ymd[t21],linethick0;

间隔:=t21-t11,linethick0;

x1:=间隔*(0.191);

x8:=间隔*(0.382);

x05:=间隔*(0.5);

x3:=间隔*(0.618);

x5:=间隔*(0.809);

x1831:=sysparam(2)+左侧右移+ROUND(x1);

tx1:=BARPOS=x1831;

VERTLINE(tx1),colorffff33,LINEDOT;

D191:=ymd[x1831],linethick0;

x1838:=t11+ROUND(x8);

tx8:=BARPOS=x1838;

VERTLINE(tx8),color00aaaa,LINEDOT;

D382:=ymd[x1838],linethick0;

x18305:=t11+ROUND(x05);

tx05:=BARPOS=x18305;

VERTLINE(tx05),color0000ff,LINEDOT;

D05:=ymd[x18305],linethick0;

x1833:=t11+ROUND(x3);

tx3:=BARPOS=x1833;

VERTLINE(tx3),color00aaaa,LINEDOT;

D618:=ymd[x1833],linethick0;

x1835:=t11+ROUND(x5);

tx5:=BARPOS=x1835;

VERTLINE(tx5),colorffff33,LINEDOT;

D809:=ymd[x1835],linethick0;

ph:=SYSPARAM(4);

pl:=SYSPARAM(5);

drawtext(t1,ph*0.99,'0点'),color00ffff;

drawtext(t2,ph*0.99,'100%'),color00ffff,align2;

drawtext(tx1,ph*0.99,'0.191'),colorffff33;

drawtext(tx8,ph*0.99,'0.382'),color00aaaa;

drawtext(tx05,ph*0.99,'0.5'),color0000ff;

drawtext(tx3,ph*0.99,'0.618'),color00aaaa;

drawtext(tx5,ph*0.99,'0.809'),colorffff33;

input:k(1,1,3,1);

hh:= SYSPARAM(4);

ll:= SYSPARAM(5);

HL:=hh-ll;

wH := BArslast(H=hh);

wL :=BARSlast(L=ll);

KK := wH-wL;

a1 :=if(kk<0,hh- HL*0.25,ll+HL*0.25);

a2 :=if(kk<0,hh- HL*0.75,ll+HL*0.75);

a3 :=if(kk<0,hh- HL*0.3125,ll+HL*0.3125);

mHL:= hh-HL*0.5;

b1:=if(kk<0,hh- HL*0.125,ll+HL*0.125);

b2:=if(kk<0,hh- HL*0.0625,ll+HL*0.0625);

b3:=if(kk<0,hh- HL*0.375,ll+HL*0.375);

b4:=if(kk<0,hh- HL*0.625,ll+HL*0.625);

b5:=if(kk<0,hh- HL*0.1875,ll+HL*0.1875);

b6:=if(kk<0,hh- HL*0.875,ll+HL*0.875);

b7:=if(kk<0,hh- HL*0.4375,ll+HL*0.4375);

b8:=if(kk<0,hh- HL*0.5625,ll+HL*0.5625);

b9:=if(kk<0,hh- HL*0.6875,ll+HL*0.6875);

b10:=if(kk<0,hh- HL*0.9375,ll+HL*0.9375);

b11:=if(kk<0,hh- HL*0.8125,ll+HL*0.8125);

A := islastbar;

DRAWTEXT(A and K<>3,HH, ' 最高价:'+NUMTOSTR(HH,2)),ALIGN2,colorred;

DRAWTEXT(A and K<>3,LL, ' 最低价:'+NUMTOSTR(ll,2)),ALIGN2,,COLORCYAN;

DRAWTEXT(A and K<>3,mHL,' 50%:'+NUMTOSTR(mHL,2)),ALIGN2,coloryellow;

DRAWTEXT(A and K=1, a1, ' 25%:'+NUMTOSTR(a1,2)),ALIGN2,coloryellow;

DRAWTEXT(A and K=1, a2, ' 75%:'+NUMTOSTR(a2,2)),ALIGN2,colorgreen;

DRAWTEXT(A and K=1, a3, ' 31.25%:'+NUMTOSTR(a3,3)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b1, ' 12.5%:'+NUMTOSTR(b1,2)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b2, ' 6.25%:'+NUMTOSTR(b2,2)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b3, ' 37.5%:'+NUMTOSTR(b3,2)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b4, ' 62.5%:'+NUMTOSTR(b4,2)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b5, ' 18.75%:'+NUMTOSTR(b5,3)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b6, ' 87.5%:'+NUMTOSTR(b6,2)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b7, ' 43.75%:'+NUMTOSTR(b7,2)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b8, ' 56.25%:'+NUMTOSTR(b8,2)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b9, ' 68.75%:'+NUMTOSTR(b9,2)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b10, ' 93.75%:'+NUMTOSTR(b10,2)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b11, ' 81.25:'+NUMTOSTR(b11,2)),ALIGN2,COLORGRAY;

STICKLINE(C>=O,C,O,8,0),COLOR0000AA;

STICKLINE(C>=O,C,O,6,0),COLOR0000bb ;

STICKLINE(C>=O,C,O,4,0),COLOR0000cc ;

STICKLINE(C>=O,C,O,2,0),COLOR0000ee;

STICKLINE(C>=O,H,L,0,0),COLOR0000ff;

STICKLINE(C<=O,C,O,8,0),Color7B7b00;

STICKLINE(C<=O,C,O,6,0),Color909000;

STICKLINE(C<=O,C,O,4,0),ColorA8a800;

STICKLINE(C<=O,C,O,2,0),COLORcece00;

STICKLINE(C<=O,H,L,0,0),COLORffff00;

飞狐四色宝塔K线主图指标公式

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(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),8,0),COLOR0000FF;

VARD:=CLOSE

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(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),8,0),COLORC08000;

VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;

STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),8,2),COLORYELLOW;

VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;

STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),8,2) ,COLOR00FF00;

AB:=ema(((2*C+H+L)/4-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,8);

BA:=Ema(AB,5);

A1{高}:=REFDATE(REF(HHV(H,96),5),DATE);

B1{低}:=REFDATE(REF(LLV(L,96),5),DATE);

箱顶:IF(AB>0 AND AB-BA<=0,A1,A1),LINETHICK3,COLORGREEN;

箱低:IF(AB>0 AND AB-BA<=0,B1,B1),LINETHICK3,COLORWHITE;

趋势:=EMA(C,30),LINETHICK3;

多:IF(趋势>=REF(趋势,1),趋势,INVALID),NODRAWINVALID,COLORRED,LINETHICK3;

空:IF(REF(趋势,1)>趋势,趋势,INVALID),NODRAWINVALID,COLORYELLOW,LINETHICK3;

牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。

责任编辑:admin888 标签:飞狐很好很全的分割主图指标公式,飞狐四色宝塔K线主图指标公式
广告

热门搜索

相关文章

广告
牛市通网 |财经频道

飞狐很好很全的分割主图指标公式,飞狐四色宝塔K线主图指标公式

admin888

|

飞狐很好很全的分割主图指标公式,飞狐四色宝塔K线主图指标公式

飞狐很好很全的分割主图指标公式

HH:=SYSPARAM(4);

LL:=SYSPARAM(5);

P16:=(LL + ((HH - LL) * 0.625));

P17:=(LL + ((HH - LL) * 0.375));

P7:=(LL + ((HH - LL) * 0.875));

P8:=(LL + ((HH - LL) * 0.667));

P10:=(LL + ((HH - LL) * 0.333));

P11:=(LL + ((HH - LL) * 0.125));

DRAWTEXT((ISLAst= 1),P7,(' ▲87.5%:' + NUMTOSTR(P7,2))),ALIGN2,color84C1FF;

DRAWTEXT((ISLASTBAR = 1),P8,(' ▲66.7%:' + NUMTOSTR(P8,2))),ALIGN2,color84C1FF;

DRAWTEXT((ISLASTBAR = 1),P10,(' ▲33.3%:' + NUMTOSTR(P10,2))),ALIGN2,colorFFFF00;

DRAWTEXT((ISLASTBAR = 1),P11,(' ▲12.5%:' + NUMTOSTR(P11,2))),ALIGN2,colorFFFF00;

DRAWTEXT((ISLASTBAR = 1),P16,(' ⊙62.5%:' + NUMTOSTR(P16,2))),ALIGN2,colorFF00;

DRAWTEXT((ISLASTBAR = 1),P17,(' ⊙37.5%:' + NUMTOSTR(P17,2))),ALIGN2,colorFF00;

NNL:=(BARPOS = SYSPARAM(3));

江05:(LL + ((HH - LL) * 0.05)),COLOR0010FF,linethick2;

江10:(LL + ((HH - LL) * 0.1));

黄191:(LL + ((HH - LL) * 0.191)),COLOR0010FF,linethick2;

江22:(LL + ((HH - LL) * 0.22));

江25:(LL + ((HH - LL) * 0.25));

江28:(LL + ((HH - LL) * 0.28)),COLOR0010FF,linethick2;

黄甘337:(LL + ((HH - LL) * 0.337));

黄382:(LL + ((HH - LL) * 0.382));

甘氏45:(LL + ((HH - LL) * 0.45)),COLOR0010FF,linethick2;

黄500:(LL + ((HH - LL) * 0.5)),COLOR0010FF,linethick2;

黄618:(LL + ((HH - LL) * 0.618));

黄甘667:(LL + ((HH - LL) * 0.667)),COLOR0010FF,linethick2;

黄甘75:(LL + ((HH - LL) * 0.75));

黄809:(LL + ((HH - LL) * 0.809)),COLOR0010FF,linethick2;

江55:(LL + ((HH - LL) * 0.55));

江75:(LL + ((HH - LL) * 0.75));

江78:(LL + ((HH - LL) * 0.78));

江85:(LL + ((HH - LL) * 0.85));

江90:(LL + ((HH - LL) * 0.9)),COLOR0010FF,linethick2;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.05)),(('江恩05%(' + NUMTOSTR(江05,2)) + ')')),color84C1FF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.1)),(('江恩10%(' + NUMTOSTR(江10,2)) + ')')),color84C1FF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.22)),(('江恩22%(' + NUMTOSTR(江22,2)) + ')')),color84C1FF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.25)),(('江恩25%(' + NUMTOSTR(江25,2)) + ')')),color84C1FF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.28)),(('江恩28%(' + NUMTOSTR(江28,2)) + ')')),COLOR0010FF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.55)),(('江恩55%(' + NUMTOSTR(江55,2)) + ')')),color84C1FF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.191)),(('黄金19.1%(' + NUMTOSTR(黄191,2)) + ')')),colorFFFF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.45)),(('甘氏45%(' + NUMTOSTR(甘氏45,2)) + ')')),COLOR0010FF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.382)),(('★黄金38.2%(' + NUMTOSTR(黄382,2)) + ')')),colorFFFF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.337)),(('黄甘33.7%(' + NUMTOSTR(黄甘337,2)) + ')')),colorFFFF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.5)),(('黄金强弱分界(' + NUMTOSTR(黄500,2)) + ')')),COLOR0010FF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.618)),(('★黄金61.8%(' + NUMTOSTR(黄618,2)) + ')')),colorFFFF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.667)),(('黄甘66.7%(' + NUMTOSTR(黄甘667,2)) + ')')),colorFFFF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.75)),(('江恩75%(' + NUMTOSTR(江75,2)) + ')')),colorDAFC8B;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.78)),(('江恩78%(' + NUMTOSTR(江78,2)) + ')')),colorDAFC8B;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.809)),(('黄金80.9%(' + NUMTOSTR(黄809,2)) + ')')),colorFFFF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.85)),(('江恩85%(' + NUMTOSTR(江85,2)) + ')')),colorDAFC8B;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.9)),(('江恩90%(' + NUMTOSTR(江90,2)) + ')')),colorDAFC8B;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.999)),(('最高价¥(' + NUMTOSTR(HH,2)) + ')')),colorFF00FF;

DRAWTEXT((SYSPARAM(2) = BARPOS),(LL + ((HH - LL) * 0.0000)),(('最低价¥(' + NUMTOSTR(LL,2)) + ')')),colorFFFF00;

LL+((HH-LL)*0.764),pointdot,linethick1,coloryellow;

DRAWTEXT(c>0 and ISLASTBAR=1,LL+((HH-LL)*0.764),' 0.764↑'),color009999;

LL+((HH-LL)*0.236),pointdot,linethick1,coloryellow;

DRAWTEXT(c>0 and ISLASTBAR=1,LL+((HH-LL)*0.236),' 0.236↑'),color009999;

Input:左侧右移(5,0,100,1),右侧左移(0,0,100,1),开关(1,1,2,1),N(30,1,1000,1),M(5,1,365,1);

t1:=barpos=sysparam(2)+左侧右移;

t2:=barpos=sysparam(3)-右侧左移;

t11:=sysparam(2)+左侧右移;

t21:=sysparam(3)-右侧左移;

ymd:=date;

D1:=ymd[t11],linethick0;

D2:=ymd[t21],linethick0;

间隔:=t21-t11,linethick0;

x1:=间隔*(0.191);

x8:=间隔*(0.382);

x05:=间隔*(0.5);

x3:=间隔*(0.618);

x5:=间隔*(0.809);

x1831:=sysparam(2)+左侧右移+ROUND(x1);

tx1:=BARPOS=x1831;

VERTLINE(tx1),colorffff33,LINEDOT;

D191:=ymd[x1831],linethick0;

x1838:=t11+ROUND(x8);

tx8:=BARPOS=x1838;

VERTLINE(tx8),color00aaaa,LINEDOT;

D382:=ymd[x1838],linethick0;

x18305:=t11+ROUND(x05);

tx05:=BARPOS=x18305;

VERTLINE(tx05),color0000ff,LINEDOT;

D05:=ymd[x18305],linethick0;

x1833:=t11+ROUND(x3);

tx3:=BARPOS=x1833;

VERTLINE(tx3),color00aaaa,LINEDOT;

D618:=ymd[x1833],linethick0;

x1835:=t11+ROUND(x5);

tx5:=BARPOS=x1835;

VERTLINE(tx5),colorffff33,LINEDOT;

D809:=ymd[x1835],linethick0;

ph:=SYSPARAM(4);

pl:=SYSPARAM(5);

drawtext(t1,ph*0.99,'0点'),color00ffff;

drawtext(t2,ph*0.99,'100%'),color00ffff,align2;

drawtext(tx1,ph*0.99,'0.191'),colorffff33;

drawtext(tx8,ph*0.99,'0.382'),color00aaaa;

drawtext(tx05,ph*0.99,'0.5'),color0000ff;

drawtext(tx3,ph*0.99,'0.618'),color00aaaa;

drawtext(tx5,ph*0.99,'0.809'),colorffff33;

input:k(1,1,3,1);

hh:= SYSPARAM(4);

ll:= SYSPARAM(5);

HL:=hh-ll;

wH := BArslast(H=hh);

wL :=BARSlast(L=ll);

KK := wH-wL;

a1 :=if(kk<0,hh- HL*0.25,ll+HL*0.25);

a2 :=if(kk<0,hh- HL*0.75,ll+HL*0.75);

a3 :=if(kk<0,hh- HL*0.3125,ll+HL*0.3125);

mHL:= hh-HL*0.5;

b1:=if(kk<0,hh- HL*0.125,ll+HL*0.125);

b2:=if(kk<0,hh- HL*0.0625,ll+HL*0.0625);

b3:=if(kk<0,hh- HL*0.375,ll+HL*0.375);

b4:=if(kk<0,hh- HL*0.625,ll+HL*0.625);

b5:=if(kk<0,hh- HL*0.1875,ll+HL*0.1875);

b6:=if(kk<0,hh- HL*0.875,ll+HL*0.875);

b7:=if(kk<0,hh- HL*0.4375,ll+HL*0.4375);

b8:=if(kk<0,hh- HL*0.5625,ll+HL*0.5625);

b9:=if(kk<0,hh- HL*0.6875,ll+HL*0.6875);

b10:=if(kk<0,hh- HL*0.9375,ll+HL*0.9375);

b11:=if(kk<0,hh- HL*0.8125,ll+HL*0.8125);

A := islastbar;

DRAWTEXT(A and K<>3,HH, ' 最高价:'+NUMTOSTR(HH,2)),ALIGN2,colorred;

DRAWTEXT(A and K<>3,LL, ' 最低价:'+NUMTOSTR(ll,2)),ALIGN2,,COLORCYAN;

DRAWTEXT(A and K<>3,mHL,' 50%:'+NUMTOSTR(mHL,2)),ALIGN2,coloryellow;

DRAWTEXT(A and K=1, a1, ' 25%:'+NUMTOSTR(a1,2)),ALIGN2,coloryellow;

DRAWTEXT(A and K=1, a2, ' 75%:'+NUMTOSTR(a2,2)),ALIGN2,colorgreen;

DRAWTEXT(A and K=1, a3, ' 31.25%:'+NUMTOSTR(a3,3)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b1, ' 12.5%:'+NUMTOSTR(b1,2)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b2, ' 6.25%:'+NUMTOSTR(b2,2)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b3, ' 37.5%:'+NUMTOSTR(b3,2)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b4, ' 62.5%:'+NUMTOSTR(b4,2)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b5, ' 18.75%:'+NUMTOSTR(b5,3)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b6, ' 87.5%:'+NUMTOSTR(b6,2)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b7, ' 43.75%:'+NUMTOSTR(b7,2)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b8, ' 56.25%:'+NUMTOSTR(b8,2)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b9, ' 68.75%:'+NUMTOSTR(b9,2)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b10, ' 93.75%:'+NUMTOSTR(b10,2)),ALIGN2,COLORGRAY;

DRAWTEXT(A and K=1, b11, ' 81.25:'+NUMTOSTR(b11,2)),ALIGN2,COLORGRAY;

STICKLINE(C>=O,C,O,8,0),COLOR0000AA;

STICKLINE(C>=O,C,O,6,0),COLOR0000bb ;

STICKLINE(C>=O,C,O,4,0),COLOR0000cc ;

STICKLINE(C>=O,C,O,2,0),COLOR0000ee;

STICKLINE(C>=O,H,L,0,0),COLOR0000ff;

STICKLINE(C<=O,C,O,8,0),Color7B7b00;

STICKLINE(C<=O,C,O,6,0),Color909000;

STICKLINE(C<=O,C,O,4,0),ColorA8a800;

STICKLINE(C<=O,C,O,2,0),COLORcece00;

STICKLINE(C<=O,H,L,0,0),COLORffff00;

飞狐四色宝塔K线主图指标公式

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(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),8,0),COLOR0000FF;

VARD:=CLOSE

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(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),8,0),COLORC08000;

VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;

STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),8,2),COLORYELLOW;

VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;

STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),8,2) ,COLOR00FF00;

AB:=ema(((2*C+H+L)/4-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,8);

BA:=Ema(AB,5);

A1{高}:=REFDATE(REF(HHV(H,96),5),DATE);

B1{低}:=REFDATE(REF(LLV(L,96),5),DATE);

箱顶:IF(AB>0 AND AB-BA<=0,A1,A1),LINETHICK3,COLORGREEN;

箱低:IF(AB>0 AND AB-BA<=0,B1,B1),LINETHICK3,COLORWHITE;

趋势:=EMA(C,30),LINETHICK3;

多:IF(趋势>=REF(趋势,1),趋势,INVALID),NODRAWINVALID,COLORRED,LINETHICK3;

空:IF(REF(趋势,1)>趋势,趋势,INVALID),NODRAWINVALID,COLORYELLOW,LINETHICK3;

牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。


财经频道