飛狐乘風(fēng)趨勢指標公式
- 指標類別: 飛狐指標公式
- 授權(quán)方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 趨勢
- 畫線方法: 主圖
- 日期:2018-10-10 來源:互聯(lián)網(wǎng)
飛狐乘風(fēng)趨勢指標公式:含有未來函數(shù)
CCC:=IF(CAPITAL>0,AMOUNT/VOL/100,C);
底線:10*(HHV(HIGH,13)-LLV(LOW,13))/100+LLV(LOW,13),COLORffabcd,LINETHICK0;
m55:MA(CLOSE,55),colorFF0080,LINETHICK0;
m34:MA(CLOSE,34),color0000ff,LINETHICK0;
m21:MA(CLOSE,21),color00FFff,LINETHICK0;
m13:MA(CLOSE,13),colorffFFFF,LINETHICK0;
m5:ma(c,5),colorff00ff,LINETHICK0;
FILLRGN(c,底線,llv(l,13)),color004000;
tjaa:=BARSLAST(ref(cross("RSI.RSI1",22) and c>o,1));
R準備:=l22 and "RSI.RSI1"o)+1>5 and BARSLAST(cross("RSI.RSI1",22)and c>o)+1<25;
tja1:=BARSLAST(ref(cross("KDJ.J",0),1));
J準備:=l0 and "KDJ.J"5 and BARSLAST(cross("KDJ.J",0))+1<10;
STICKLINE(R準備 AND J準備,(0.93*SYSPARAM(5)),(0.93*SYSPARAM(5))*1.03,30,0),colorFF0080;
R賣1:="RSI.RSI1">80 and "RSI.RSI2"<80;
R賣2:="RSI.RSI1">85 and "RSI.RSI2">80;
STICKLINE("RSI.RSI1">80,h*1.01,l*0.99,10,0),color555555;
STICKLINE(R賣1,h*1.01,l*0.99,10,0),color00ff00;
STICKLINE(R賣2,h*1.01,l*0.99,10,0),colorff0000;
PARTLINE(c,m34),Colorred,LINETHICK2,PRECISION2;
PARTLINE(m34 底線,COLORffabcd,LINETHICK1;
{空心紅}
STICKLINE(C,H,L,1,0),COLORff0000;
STICKLINE(C,C,O,8,0),COLORff0000;
STICKLINE(C>o,C,O,8,1),COLORff0000;
STICKLINE(C>O and (m34>=ref(m34,1) or ccc>m34),H,L,1,0),COLORRED;
STICKLINE(C>O and (m34>=ref(m34,1) or ccc>m34),C,O,8,1),COLORRED;
STICKLINE(C<=O and (m34>=ref(m34,1) or ccc>m34),H,L,1,0),COLORCYAN;
STICKLINE(C<=O and (m34>=ref(m34,1) or ccc>m34),C,O,8,1),COLORCYAN;
STICKLINE(C>O and (m34>=ref(m34,1) or ccc>m34) AND C>=M13,H,L,1,0),COLORFFC0DD;
STICKLINE(C>O and (m34>=ref(m34,1) or ccc>m34) AND C>=M13,C,O,8,0),COLORFFC0DD;
STICKLINE(C<=O and (m34>=ref(m34,1) or ccc>m34) AND C>=M13,H,L,1,0),COLORDDDDDD;
STICKLINE(C<=O and (m34>=ref(m34,1) or ccc>m34) AND C>=M13,C,O,8,1),COLORDDDDDD;
STICKLINE(L
STICKLINE(L
PARTLINE(m21>=m34 and m21 PARTLINE(m21>=m34 and m21>=REF(m21,1),m21),COLOR00ffff,LINETHICK1,PRECISION2;
PARTLINE(m21
PARTLINE(m13>=m34 and m13>=ref(m13,1),m13),Colorffffff,LINETHICK1,PRECISION2;
PARTLINE(m13>=m34 and m13 PARTLINE(m13
PARTLINE(m13
PARTLINE(m5>=m34 and m5 PARTLINE(m5
PARTLINE(m5
DRAWTEXT(抄底 and not((ccc>m34 or m34>ref(m34,1))),l*0.98,'抄
底'),COLOR00fff;
DRAWTEXT(抄底 and (ccc>m34 or m34>ref(m34,1)),l*0.98,'確
認'),COLORred;
tj00:=BARSLAST(ref(cross("KDJ.K","KDJ.D") and ref("KDJ.K",1)<35,1));
加倉:=c5 and "KDJ.K">ref("KDJ.K",tj00+1) and cross("KDJ.K","KDJ.D");
DRAWTEXT(加倉 and not((ccc>m34 or m34>ref(m34,1))),l*0.98,'回
抽'),COLOR5599ff;
DRAWTEXT(加倉 and (ccc>m34 or m34>ref(m34,1)),l*0.98,'加
倉'),COLORff00ff;
DRAWICON(CROSS("KDJ.J",0) and (ccc>m34 or m34>ref(m34,1)),l*0.97,8);
{主圖MACD}
DIFFZ:=EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),1);
DEAZ:=EMA(DIFFZ,9),COLOR00AA88;
MACDZ:=3*(DIFFZ-DEAZ);
STICKLINE(MACDZ>0 AND MACDZ>REF(MACDZ,1),(0.93*SYSPARAM(5)),MACDZ+(0.93*SYSPARAM(5)),8,0),COLORFF00FF;
STICKLINE(MACDZ>0 AND MACDZ<=REF(MACDZ,1),(0.93*SYSPARAM(5)),MACDZ+(0.93*SYSPARAM(5)),8,1),COLORFF00FF;
STICKLINE(MACDZ<0 AND MACDZ>REF(MACDZ,1),(0.93*SYSPARAM(5)),MACDZ+(0.93*SYSPARAM(5)),8,1),COLORDDDDDD;
STICKLINE(MACDZ<0 AND MACDZ<=REF(MACDZ,1),(0.93*SYSPARAM(5)),MACDZ+(0.93*SYSPARAM(5)),8,0),COLORDDDDDD;
PARTLINE(MACDZ>0 AND DIFFZ>0,(0.9*SYSPARAM(5))),CROSSDOT,COLOR0000FF,LINETHICK1;
PARTLINE(MACDZ<=0 AND DIFFZ>0,(0.9*SYSPARAM(5))),CROSSDOT,COLOR00FFFF,LINETHICK1;
PARTLINE(MACDZ>0 AND DIFFZ<=0,(0.9*SYSPARAM(5))),CROSSDOT,COLORFF55DD,LINETHICK1;
PARTLINE(MACDZ<=0 AND DIFFZ<=0,(0.9*SYSPARAM(5))),CROSSDOT,COLOR66DD66,LINETHICK1;
飛狐乘風(fēng)趨勢指標公式實例圖解:
飛狐乘風(fēng)趨勢指標公式