联系方式 Contact

育龙指标公式网

电话:2862580228

微信:2862580228

Q Q:209427943

网址:www.yulongzhibiao.com

搜索 Search

[飞狐] 超级大礼-----期货指标全源码

2018/8/31 9:58:17点击:



n=26
趋势线:=3*SMA((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
底部:=LLV(CLOSE,30);
MA3:=MA(底部,2);
X:=MA(CLOSE,26);
压力:=HHV(HIGH,30);
STICKLINE(CLOSE>=X,CLOSE,HIGH,1,0),colorFF;
STICKLINE(CLOSE>=X,OPEN,CLOSE,8,0),colorFF;
STICKLINE(CLOSE>=X,OPEN,LOW,1,0),colorFF;
STICKLINE(CLOSE<=X,OPEN,CLOSE,8,0),colorFF0000;
STICKLINE(CLOSE<=X,OPEN,HIGH,1,0),colorFF0000;
STICKLINE(CLOSE<=X,CLOSE,LOW,1,0),colorFF0000;
PARTLINE(MA3>=REF(MA3,1) AND CLOSE>=X AND CLOSE>MA3,MA3),colorFFFFFF;
PARTLINE(压力<=REF(压力,1) AND CLOSE<=X,压力),colorFFFFFF;
DRAWICON(FILTER(LOW<=X AND CLOSE>=X AND MA3>=REF(MA3,1) AND CLOSE/OPEN>1.02 AND WINNER(CLOSE)<0.4,20),LOW,1),colorFFFF;
DRAWICON(FILTER(HIGH>=压力 AND CLOSE<HIGH AND CLOSE<OPEN AND OPEN/CLOSE>1.03 AND WINNER(CLOSE)>0.6,5),HIGH,2),colorFF00;
趋势线:=3*SMA((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
短期乖离率:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
DRAWTEXT(FILTER(IF(CROSS(趋势线,10) AND CLOSE/LOW>1.04 AND 短期乖离率<0.35,1,0) AND CLOSE>OPEN,5),LOW-0.07,''),ALIGN2,colorFFFF;
VARA:=AMOUNT/VOL/100;
VARB:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
VARC:=SUM(AMOUNT,7)/VARA/100;
VARD:=DMA(VARB,VOL/VARC);
VARE:=(CLOSE-VARD)/VARD*100;
VARF:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
VARJ:=MA(VARE,20)+STD(VARE,20);
BIAS18:=(CLOSE-MA(CLOSE,18))/MA(CLOSE,18)*100;
K:=SMA(VARF,3,1);
顶:=REF(BIAS18,1)>=5 AND CROSS(VARJ,VARE) AND K>79;
DRAWTEXT(FILTER(REF(BIAS18,1)>=5 AND CROSS(VARJ,VARE) AND K>79,5),HIGH*1.02,''),colorFFFF;


期货交易c
TYM:=(HHV(HIGH,20) - (0.5 * (HHV(HIGH,20) - LLV(LOW,20))));
PARTLINE(ALL((CLOSE > TYM),3),TYM),LINETHICK2,colorFFFF;
PARTLINE(ALL((CLOSE < TYM),3),TYM),LINETHICK2,colorFFFFFF;
STICKLINE(ALL((CLOSE > TYM),3),OPEN,CLOSE,8,0),colorFF00FF;
STICKLINE(ALL((CLOSE > TYM),3),HIGH,LOW,1,0),colorFF00FF;
STICKLINE(ALL((CLOSE < TYM),3),OPEN,CLOSE,8,0),colorFF00;
STICKLINE(ALL((CLOSE < TYM),3),LOW,HIGH,1,0),colorFF00;


期货交易D
input:N(10,1,500); 
HH:=HHV(HIGH,N); 
LL:=LLV(LOW,N); 
HH1:=BARSLAST((HH > REF(HH,1))); 
LL1:=BARSLAST((LL < REF(LL,1))); PARTLINE((HH1 < LL1),LL),LINETHICK2,colorBB0066; PARTLINE((HH1 > LL1),HH),LINETHICK2,color1B8800; 
STICKLINE((HH1 < LL1),CLOSE,OPEN,9,0),colorFF; STICKLINE((HH1 < LL1),HIGH,LOW,0,0),colorFF; STICKLINE((HH1 > LL1),CLOSE,OPEN,9,0),colorFF0000; STICKLINE((HH1 > LL1),HIGH,LOW,0,0),colorFF0000; 
DRAWICON(CROSS(HH1,LL1),HH,11); 
DRAWICON(CROSS(LL1,HH1),LL,12); 
DRAWTEXT(CROSS(HH1,LL1),HH,'开空平多'),colorFF00; 
DRAWTEXT(CROSS(LL1,HH1),LL,'开多平空'),colorFF00FF; 
DRAWTEXT(FILTER(((HH1 < REF(HH1,1)) AND (HH1 < LL1)),90),LOW,'♂加多'),colorFF00FF; DRAWTEXT(FILTER(((LL1 < REF(LL1,1)) AND (HH1 > LL1)),90),HIGH,'♀加空'),colorFF00;


期货交易E
input:N(13,0,99);
适用于:STICKLINE((EMA(CLOSE,13) >= EMA(CLOSE,34)),LOW,HIGH,1,0),colorFF;
五:STICKLINE((EMA(CLOSE,13) >= EMA(CLOSE,34)),OPEN,CLOSE,8,0),colorFF;
十五:STICKLINE((EMA(CLOSE,13) < EMA(CLOSE,34)),LOW,HIGH,1,0),colorFF0000;
三十:STICKLINE((EMA(CLOSE,13) < EMA(CLOSE,34)),OPEN,CLOSE,8,0),colorFF0000;
六十:PARTLINE((EMA(CLOSE,13) >= EMA(CLOSE,34)),LLV(CLOSE,N)),LINETHICK2,color9966FF;
分钟!:PARTLINE((EMA(CLOSE,13) < EMA(CLOSE,34)),HHV(CLOSE,N)),LINETHICK2,colorFFFF00;
周期:DRAWICON(CROSS(EMA(CLOSE,34),EMA(CLOSE,13)),HIGH,11);
用:DRAWICON(CROSS(EMA(CLOSE,13),EMA(CLOSE,34)),LOW,12);
DRAWTEXT(CROSS(EMA(CLOSE,13),EMA(CLOSE,34)),LOW,'开多平空');
DRAWTEXT(CROSS(EMA(CLOSE,34),EMA(CLOSE,13)),HIGH,'开空平多');
drawtext(BARPOS=SYSPARAM(1),HIGH,' 适用于5, 15, 30, 60分钟周期'),align5,colorffff;


期货交易F
DK:=MA(CLOSE,N)-MA(CLOSE,20);
VAR1:=REF(CROSS(DK,0),1);
VAR2:=REF(CROSS(0,DK),1);
江:COUNT(CROSS(0,DK),0)=1 AND REF(COUNT(CROSS(0,DK),0),1)=0,LINETHICK0;
海:COUNT(CROSS(DK,0),0)=1 AND REF(COUNT(CROSS(DK,0),0),1)=0,LINETHICK0;
论:BARSLAST(VAR1 OR 江),LINETHICK0;
坛:BARSLAST(VAR2 OR 海),LINETHICK0;
期:=COUNT(CROSS(DK,0),0)=COUNT(CROSS(0,DK),0) AND REF(COUNT(CROSS(DK,0),0),1)=1 AND REF(COUNT(CROSS(0,DK),0),1)=0;
货:=COUNT(CROSS(DK,0),0)=COUNT(CROSS(0,DK),0) AND REF(COUNT(CROSS(DK,0),0),1)=0 AND REF(COUNT(CROSS(0,DK),0),1)=1;
VAR3:=IF(期 OR 货,REF(IF(论<坛,REF(HHV(HIGH,2),论),REF(LLV(LOW,2),坛)),1),IF(论<坛,REF(HHV(HIGH,2),论),REF(LLV(LOW,2),坛)));
交:=REF(CLOSE,1)<=REF(VAR3,1) AND CLOSE>VAR3 AND 论<坛;
易:=REF(CLOSE,1)>=REF(VAR3,1) AND CLOSE<VAR3 AND 坛<论;
会:交 AND COUNT(交,论)=1,LINETHICK0;
员:易 AND COUNT(易,坛)=1,LINETHICK0;
专:COUNT(会,BARSCOUNT(论))>0 AND COUNT(员,BARSCOUNT(论))=0,LINETHICK0;
用:COUNT(员,BARSCOUNT(坛))=0 AND COUNT(员,BARSCOUNT(坛))>0,LINETHICK0;
指:=专 OR 会 OR BARSLAST(会)<BARSLAST(员);
标:=用 OR 员 OR BARSLAST(会)>BARSLAST(员);
STICKLINE(指,LOW,HIGH,1,0),colorFF;
STICKLINE(指,OPEN,CLOSE,8,0),colorFF;
STICKLINE(标,LOW,HIGH,1,0),colorFF0000;
STICKLINE(标,OPEN,CLOSE,8,0),colorFF0000;
PARTLINE(指,REF(LLV(LOW,2),坛)),LINETHICK2,colorFF00FF;
PARTLINE(标,REF(HHV(HIGH,2),论)),LINETHICK2,colorFFFFFF;
DRAWTEXT(指 AND REF(指,1)=0 OR COUNT(指,0)=1,REF(LLV(LOW,2),坛),'开多平空'),colorFF00FF;
DRAWTEXT(标 AND REF(标,1)=0 OR COUNT(标,0)=1,REF(HHV(HIGH,2),坛),'开空平多'),colorFFFFFF;
DRAWTEXT(指 AND FILTER(LOW<REF(LLV(LOW,2),5),坛),LOW,'♂加多'),colorFF00FF;
DRAWTEXT(标 AND FILTER(HIGH>REF(HHV(HIGH,2),论),5),HIGH,'♀加空'),colorFF00;
DRAWTEXT(SYSPARAM(1)=BARPOS,CLOSE,'江海论坛会员专用长线指标 适用于日以上周期'),ALIGN5,colorFFFF;


期货交易J
input:N(10,2,12);
DIRECTION:=(CLOSE - REF(CLOSE,n));
XX:=ABS((CLOSE - REF(CLOSE,1)));
VOLATILITY:=SUM(XX,n);
ER:=ABS((DIRECTION / VOLATILITY));
FASTC:=(2 / (2 + 1));
SLOWC:=(2 / (30 + 1));
SSC:=((ER * (FASTC - SLOWC)) + SLOWC);
CONSTANT:=(SSC * SSC);
CC:=CLOSE;
YY:=(REF(CLOSE,1) + (CONSTANT * (CLOSE - REF(CLOSE,1))));
IF DATACOUNT > N THEN
DD[N]:=CC[(N + 1)];
FOR I=N + 1 to DATACOUNT DO
DD[I]:=(DD[(I - 1)] + (CONSTANT[I] * (CC[I] - DD[(I - 1)])));
止损线:=(DD),LINETHICK2,colorFFFF;
FFILTER:=((15 / 100) * STD((止损线 - REF(止损线,1)),n));
XA:=IF((止损线 < REF(止损线,1)),止损线,0);
XN:=BARSLAST((XA > 0));
AMALOW:=REF(止损线,XN);
YA:=IF((止损线> REF(止损线,1)),止损线,0);
YN:=BARSLAST((YA > 0));
AMAHIGH:=REF(止损线,YN);
RR:=IF(((AMAHIGH - 止损线) > FFILTER),(0 - 1),0);
TT:=IF(((止损线 - AMALOW) > FFILTER),1,RR);
TJ:=((CLOSE > OPEN) OR ((CLOSE = OPEN) AND (CLOSE > REF(CLOSE,1))));
多头持仓:STICKLINE((TT = 1),LOW,HIGH,0.8,0),COLORRED;
STICKLINE((TT = 1),OPEN,CLOSE,7,0),COLORRED;
STICKLINE((TT = 1),OPEN,CLOSE,5,0),COLORRED;
STICKLINE((TT = 1),OPEN,CLOSE,2,0),COLORRED;
STICKLINE((TT = 1),OPEN,CLOSE,1,0),COLORRED;
空头持仓:STICKLINE((TT = (0 - 1)),LOW,HIGH,0.8,0),COLORBLUE;
STICKLINE((TT = (0 - 1)),OPEN,CLOSE,7,0),COLORBLUE;
STICKLINE((TT = (0 - 1)),OPEN,CLOSE,5,0),COLORBLUE;
STICKLINE((TT = (0 - 1)),OPEN,CLOSE,2,0),COLORBLUE;
STICKLINE((TT = (0 - 1)),OPEN,CLOSE,1,0),COLORBLUE;
持币观望:STICKLINE((TT = 0),LOW,HIGH,0.8,0),COLORMAGENTA;
STICKLINE((TT = 0),OPEN,CLOSE,7,0),COLORMAGENTA;
STICKLINE((TT = 0),OPEN,CLOSE,5,0),COLORMAGENTA;
STICKLINE((TT = 0),OPEN,CLOSE,2,0),COLORMAGENTA;
STICKLINE((TT = 0),OPEN,CLOSE,1,0),COLORMAGENTA;