飞狐三分主图指标公式,飞狐盈亏平衡主图指标公式
admin888
|飞狐三分主图指标公式,飞狐盈亏平衡主图指标公式
飞狐三分主图指标公式
三分块:=((SYSPARAM(3)-SYSPARAM(2))+1)/3,PRECISION0;
第一:=BARPOS>(SYSPARAM(3)-三分块);
第二:=BARPOS>(SYSPARAM(3)-三分块*2) AND BARPOS<(SYSPARAM(3)-三分块);
第三:=BARPOS>SYSPARAM(2) AND BARPOS<(SYSPARAM(2)+三分块);
一分:=(SYSPARAM(3)-三分块),PRECISION0;
二分:=(SYSPARAM(2)+三分块),PRECISION0;
VERTLINE(BARPOS=ROUND(一分)),COLORCYAN,PRECISION0;
VERTLINE(BARPOS=ROUND(二分)),COLORBLUE,PRECISION0;
{第一图}ema13:Ema(C,13),COLOR0000FF,LINETHICK0;
PARTLINE(第一,EMA13),COLOR0000FF,LINETHICK2;
EMA34:EMA(C,34),COLOR4080FF,LINETHICK0;
PARTLINE(第一,EMA34),COLOR4080FF;
EMA55:EMA(C,55),COLORFF00FF,LINETHICK0;
PARTLINE(第一,EMA55),COLORFF00FF;
EMA120:EMA(C,120),COLORFFCC66,LINETHICK0;
PARTLINE(第一,EMA120),COLORFFCC66;
多头:=if(EMA13>=ref(EMA13,1),EMA13,0),LINETHICK0,COLORyellow,circledot;
PARTLINE(第一 AND 多头>0,多头),LINETHICK2,COLORyellow,circledot;
PARTLINE(第一 AND 空头>0,空头),LINETHICK2,COLORff9900,circledot;
stICKLINE(第一 AND C>EMA13,L,H,0.1,1),COLORRED;
STICKLINE(第一 AND C>EMA13,C,O,4,1),COLORRED;
STICKLINE(第一 AND C>EMA13,C,O,4,1),COLORRED;
STICKLINE(第一 AND C
STICKLINE(第一 AND C
STICKLINE(第一 AND C
{第二图}KK:=HHV(EMA(C,2),2);
DD:EMA(0.637*REF(KK,1)+0.333*KK,3),COLORGREEN,LINETHICK0;
PARTLINE(第二,DD),COLORGREEN,LINETHICK2;
角度:=ATAN((DD/REF(DD,1)-1)*100)*180/3.1416;
AA:=crOSS(DD,REF(DD,1));
买点:IF(第二 AND AA AND 角度>45,30,0),LINETHICK0,COLORRED;
DRAWTEXT(第二 AND 买点,L*0.96,'∠45上升'),COLORWHITE;
{第三图}SEL:=0;
STICKLINE(((C >= SEL) AND (C >= O)) AND 第三,H,L,0,1),COLORRED;
STICKLINE(((C >= SEL) AND (C >= O)) AND 第三,O,C,2,1),COLORRED;
STICKLINE(((C >= SEL) AND (C <= O)) AND 第三,H,L,0,0),COLORRED;
STICKLINE(((C >= SEL) AND (C <= O)) AND 第三,O,C,2,0),COLORRED;
成本:(MA(CLOSE,60)+MA(CLOSE,70)+MA(CLOSE,90)+MA(CLOSE,108))/4,COLORYELLOW,LINETHICK0;
PARTLINE(第三,成本),COLORYELLOW,LINETHICK3;
生死线:EMA(SLOPE(C,21)*20+C,36),LINETHICK0,COLORFFFF00;
PARTLINE(第三,生死线),LINETHICK2,COLORFFFF00;
飞狐盈亏平衡主图指标公式
INPUT:N(3,1,9),KG(0,0,1);
A:=DATATYPE;KK:=0;
TJ1:=A<1 OR A>6 AND A<>9 OR KG;
TJ2:=A<2 OR A>6 AND A<>9 OR KG;
TJ3:=A<3 OR A>7 AND A<>9 OR KG;
TJ4:=A<4 OR A=8 OR KG;
TJ5:=A<5 OR A=8 OR KG;
{10日盈亏平衡线,根据牛熊界线基准线内插;当KG=1时,显示普通
均线ma(C,10)}N1:=IF(A=6,10,IF(A=7,2,IF(A=10,3,IF(A=5,40,IF(A=4,80,IF(A=3,160,480))))));
H10:=IF(TJ1,KK,IF(CAPITAL,HHV(ema(H+C,N),N1)*0.933,HHV(EMA(H+C,N),N1)*0.983));
L10:=IF(TJ1,KK,IF(CAPITAL,LLV(EMA(L+C,N),N1)*1.067,LLV(EMA(L+C,N),N1)*1.017));
YK10R:IF(TJ1,MA(C,10),(H10+L10)/4),LINETHICK1,PRECISION2;
{30日盈亏平衡线,根据牛熊界线基准线内插;当KG=1时,显示普通均线MA(C,30)}
N2:=IF(A=6,30,IF(A=7,6,IF(A=10,10,IF(A=5,120,IF(A=4,240,480)))));
H30:=IF(TJ2,KK,IF(CAPITAL,HHV(EMA(H+C,N),N2)*0.9,HHV(EMA(H+C,N),N2)*0.95));
L30:=IF(TJ2,KK,IF(CAPITAL,LLV(EMA(L+C,N),N2)*1.1,LLV(EMA(L+C,N),N2)*1.05));
YK30R:IF(TJ2,MA(C,30),(H30+L30)/4),LINETHICK1,PRECISION2;
{60日盈亏平衡线,根据牛熊界线基准线内插;当KG=1时,显示普通均线MA(C,60)}
N3:=IF(A=6,60,IF(A=7,12,IF(A=8,3,IF(A=10,20,IF(A=5,240,IF(A=4,480,480))))));
H60:=IF(TJ3,KK,IF(CAPITAL,HHV(EMA(H,N),N3)*0.8,HHV(EMA(H,N),N3)*0.9));
L60:=IF(TJ3,KK,IF(CAPITAL,LLV(EMA(L,N),N3)*1.2,LLV(EMA(L,N),N3)*1.1));
YK60R:IF(TJ3,MA(C,60),(H60+L60)/2),LINETHICK1,PRECISION2;
{120日盈亏平衡线,牛熊界线基准线;当KG=1时,显示普通均线MA(C,120)即半年线}
N4:=IF(A=5,480,IF(A=6,120,IF(A=7,24,IF(A=8,6,IF(A=10,40,IF(A=9,2,480))))));
H120:=IF(TJ4,KK,IF(CAPITAL,HHV(EMA(H,N),N4)*0.7,HHV(EMA(H,N),N4)*0.8));
L120:=IF(TJ4,KK,IF(CAPITAL,LLV(EMA(L,N),N4)*1.3,LLV(EMA(L,N),N4)*1.2));
YK120R:IF(TJ4,MA(C,120),(H120+L120)/2),COLOR1389EE,LINETHICK2,PRECISION2;
{240日盈亏平衡线,根据牛熊界线基准线外推;当KG=1时,显示普通均线MA(C,240)即年线}
N5:=IF(A=6,240,IF(A=7,48,IF(A=8,12,IF(A=9,1,IF(A=10,80,480)))));
H240:=IF(TJ5,KK,IF(CAPITAL,HHV(EMA(H,N),N5)*0.8,HHV(EMA(H,N),N5)*0.9));
L240:=IF(TJ5,KK,IF(CAPITAL,LLV(EMA(L,N),N5)*1.2,LLV(EMA(L,N),N5)*1.1));
YK240R:IF(TJ5,MA(C,240),(H240+L240)/2),LINETHICK2,PRECISION2;
{480日盈亏平衡线,根据牛熊界线基准线外推;当KG=1时,显示普通均线MA(C,480)即2年线}
N6:=IF(A=6,480,IF(A=7,96,IF(A=8,24,IF(A=10,160,IF(A=9,2,480)))));
H480:=IF(TJ5,KK,IF(CAPITAL,HHV(EMA(H,N),N6)*0.70,HHV(EMA(H,N),N6)*0.8));
L480:=IF(TJ5,KK,IF(CAPITAL,LLV(EMA(L,N),N6)*1.3,LLV(EMA(L,N),N6)*1.2));
YK480R:IF(TJ5,MA(C,480),(H480+L480)/2),COLORBLUE,LINETHICK2,PRECISION2;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。