设为首页加入收藏

微信关注
官方微信号:71712643
加关注获取每日精选资讯
股票入门欢迎您加入
广告服务联系我们网站地图

飞狐真人均线新闻资讯指标公式是什么?

2016-4-25 11:22:36 股票入门 http://rumen.southmoney.com

飞狐真人均线新闻资讯指标公式是什么?附:飞狐真人凤冠霞帔主图公式源码  南方财富网小编为您提供


【飞狐真人均线新闻资讯指标公式】

//////////////////////////////////////////////////////////////////////
WRAP: break-word; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">{十字光标在 K 线移动,指向[信息],对应 F10 当日有各类新闻资讯,即可自动在"解"中显示;
【新闻资讯】原码;(飞狐专用)}
input:n0(150,1,500),N(3,1,20),线数(3,1,8);{真人均线最多8线,可据考查长短期需要调整线数}
Np:=IF(DATACOUNT>=N0,N0,DATACOUNT-1);
VARIABLE:tx='【',txd='',
bt2='',dtx1='',tx11='十三、',tx1='各家评论',
bt1='',dtx2='',tx21='十四、',tx2='公司报道',
bt3='',dtx3='',tx31='十五、',tx3='大事纪要',
bt4='',dtx4='',tx41='十六、',tx4='超幅涨跌';//及时更新鹏博F10资料,获取最新资讯
d11:=F10FIND(tx11+tx1,10000);d21:=F10FIND(tx21+tx2,d11);
d31:=F10FIND(tx31+tx3,d21);d41:=F10FIND(tx41+tx4,d31);
fy:=year;fd:=date;txs:=0*date;
P:=SYSPARAM(1);
stx:=tx+NUMTOSTR(fy[P],0)+'-'+STRMID(NUMTOSTR(fd[P],0),4,2)+'-'+STRRIGHT(NUMTOSTR(fd[P],0), 2)+'】';
for ii=DATACOUNT downto DATACOUNT-np do BEGIN
txs:=if(F10FIND(STX,D11)<>-1,1,0);
EXPLAIN(P=BARPOS AND TXS=1,'【'+NUMTOSTR(fy[P],0)+'-'+STRMID(NUMTOSTR(fd[P],0),4,2)+'-'+STRRIGHT(NUMTOSTR(fd[P],0), 2)+'】');
END;
d12:=F10FIND(stx,d11);
tj1:=BETWEEN(d12,d11,d21);
if tj1 then begin
d13:=F10FIND(tx,d12+10);
bt1:=F10TEXT(d12,0);
d14:=STRLEN(bt1)+4;
dtx1:=F10TEXT(d12+d14,d13-d12-d14);
end;
d22:=F10FIND(stx,d21);
tj2:=BETWEEN(d22,d21,d31);
if tj2 then begin
d23:=F10FIND(tx,d22+10);
bt2:=F10TEXT(d22,0);
d24:=STRLEN(bt2)+4;
dtx2:=F10TEXT(d22+d24,d23-d22-d24);
end;
d32:=F10FIND(stx,d31);
tj3:=BETWEEN(d32,d31,d41);
if tj3 then begin
d33:=F10FIND(tx,d32+10);
bt3:=F10TEXT(d32,0);
d34:=STRLEN(bt3)+4;
dtx3:=F10TEXT(d32+d34,d33-d32-d34);
end;
d42:=F10FIND(stx,d41);
tj4:=d42>d41;
if tj4 then begin
d43:=F10FIND(tx,d42+10);
bt4:=F10TEXT(d42,0);
d44:=STRLEN(bt4)+4;
dtx4:=F10TEXT(d42+d44,d43-d42-d44);
end;
P:=SYSPARAM(1);
EXPLAIN(tj1,tx1+'\n'+bt1),COLORRED;
EXPLAIN(tj1,dtx1),COLORWHITE;
EXPLAIN(tj2,tx2+'\n'+bt2),COLORYELLOW;
EXPLAIN(tj2,dtx2),COLORWHITE;
EXPLAIN(tj3,tx3+'\n'+bt3),COLORBLUE;
EXPLAIN(tj3,dtx3),COLORWHITE;
EXPLAIN(tj4,tx4+'\n'+bt4),COLORMAGENTA;
EXPLAIN(tj4,dtx4),COLORWHITE;
fy1:=year;fd1:=date;txs1:=0*date;
for iP= DATACOUNT-Np to DATACOUNT do BEGIN
stx1:=tx+NUMTOSTR(fy1[IP],0)+'-'+STRMID(NUMTOSTR(fd1[IP],0),4,2)+'-'+STRRIGHT(NUMTOSTR(fd1[IP],0), 2)+'】';
DRAWTEXT(P=BARPOS,SYSPARAM(5),STX),ALIGN2;
txs1[IP]:=if(F10FIND(STX1,D11)<>-1,1,0);
DRAWTEXT(txs1=1 ,SYSPARAM(4),'信\n息'),PXDN20,ALIGN0;//信息显示
DRAWICON(txs1=1 ,SYSPARAM(4),10),ALIGN0;//信息显示
END;

/////////////////////////////////////////////////////////////////////////////
{真人均线}

均价线:=MA(C,1),colorDDDDDD;
EXPMA:=均价线;

K0:=LBOUND(EXPMA);K1:=UBOUND(EXPMA);
FOR I=K0+1 TO K1 do begin
EXPMA[I]:(EXPMA[I]-EXPMA[I-1])/(N+线数/2)+EXPMA[I-1],COLORFF9966; 
END;
/////////做多K线
//KLINE(O,H,L,C,0);
STICKLINE(均价线<EXPMA AND C>O,o,c,7,0),COLORFF66AA;
STICKLINE(均价线<EXPMA AND C<=O,o,c,7,0),COLORFF6633;
STICKLINE(均价线>EXPMA AND C>O,o,c,7,0),COLOR6666FF;
STICKLINE(均价线>EXPMA AND C<=O,o,c,7,0),COLOR66FF33;
IF 线数=1 THEN EXIT;
EXPMB:=EXPMA;
FOR I=K0+1 TO K1 do begin
EXPMB[I]:(EXPMA[I]-EXPMB[I-1])/(N+线数/2)+EXPMB[I-1],COLORFFBBEE; 
END;
IF 线数=2 THEN EXIT;
EXPMc:=EXPMb;
FOR I=K0+1 TO K1 do begin
EXPMc[I]:(EXPMb[i]-EXPMc[I-1])/(N+线数/2)+EXPMc[I-1],COLOREEFF66;
END;
IF 线数=3 THEN EXIT;
EXPMd:=EXPMc;
FOR I=K0+1 TO K1 do begin
EXPMd[I]:(EXPMc[I]-EXPMd[I-1])/(N+线数/2)+EXPMd[I-1],COLORAAFFBB; 
END;
IF 线数=4 THEN EXIT;
EXPMe:=EXPMd;
FOR I=K0+1 TO K1 do begin
EXPMe[I]:(EXPMd[i]-EXPMe[I-1])/(N+线数/2)+EXPMe[I-1],COLOR00FFEE;
END;
IF 线数=5 THEN EXIT;
EXPMf:=EXPMe;
FOR I=K0+1 TO K1 do begin
EXPMf[I]:(EXPMe[I]-EXPMf[I-1])/(N+线数/2)+EXPMf[I-1],COLOR00CCFF;
END;
IF 线数=6 THEN EXIT;
EXPMG:=EXPMF;
FOR I=K0+1 TO K1 do begin
EXPMG[I]:(EXPMF[I]-EXPMG[I-1])/(N+线数/2)+EXPMG[I-1],COLORAA00FF,LINEDOT; 
END;

附:【飞狐真人凤冠霞帔主图公式源码】

DRAWGBK(1,colorrgb(0,0,100),colorrgb(0,0,0),1);
//DRAWBKBMP(BARPOS=SYSPARAM(1) and c>ref(c,1),'牛月');{自用背景图}
KLINE(O,H,L,C,0);
{---------立体K线-------------------------}
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,9,0),colorFF5B00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,8,0),colorFF6C00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,7,0),colorFF7B00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,6,0),colorFF9C00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5,0),colorFFBE00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3.5,0),colorFFCC00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1.5,0),colorFFFF00;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,9,0),color070084;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,8,0),color0000A3;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,7,0),color0000B7;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,6,0),color0000CD;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5,0),color0000E9;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),color0754E9;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1.5,0),color076fF3;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),color079BF3;

STICKLINE((CLOSE > OPEN),OPEN,LOW,1,0),color0726CA;
STICKLINE((CLOSE > OPEN),CLOSE,HIGH,1,0),color0726CA;
STICKLINE((OPEN > CLOSE),CLOSE,LOW,1,0),colorDE9100;
STICKLINE((OPEN > CLOSE),OPEN,HIGH,1,0),colorDE9100;
{-----------------------------------------------}


V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);
HY1:=REF(EMA(V1,3),1);
APP:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
ZL:=IF((CLOSE > OPEN),(APP * (HIGH - LOW)),IF((CLOSE < OPEN),(APP * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));
SF:=IF((CLOSE > OPEN),(0 - (APP * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (APP * (HIGH - LOW))),(0 - (VOL / 2))));
线性:=((((((CLOSE * 5) + (REF(CLOSE,1) * 4)) + (REF(CLOSE,2) * 3)) + (REF(CLOSE,3) * 2)) + (REF(CLOSE,4) * 1)) / ((((5 + 4) + 3) + 2) + 1));
决策:HY1,LINETHICK;
黄色线涨:pARTLINE((CLOSE > HY1),HY1),LINETHICK2,color00CCFF;//黄色
青色线跌:pARTLINE((CLOSE <= HY1),HY1),LINETHICK2,colorCCFF00;//青色


{---------------以下关注多线粘合与分开------------------}
m1:=hy1;
M2:EMA(M1,2),COLOR8FAAEE,LINEDOT;
M3:EMA(M2,4),COLORAD88CC,LINEDOT;
M4:EMA(M3,4),COLORCC66BB,LINEDOT;
M5:EMA(M4,4),COLOREA4499,LINEDOT;
M6:EMA(M5,4),COLORF83377,LINEDOT;


{M1S:PARTLINE(M1>REF(M1,1),M1),ALIGN0,COLORFFEE33;-------------这句不要了}
M2S:PARTLINE(M2>REF(M2,1),M2),ALIGN0,COLORCCEE66,LINEDOT;
M3S:PARTLINE(M3>REF(M3,1),M3),ALIGN0,COLORAADD99,LINEDOT;
M4S:PARTLINE(M4>REF(M4,1),M4),ALIGN0,COLOR88CCBB,LINEDOT;
M5S:PARTLINE(M5>REF(M5,1),M5),ALIGN0,COLOR66BBDD,LINEDOT;
M6S:PARTLINE(M6>REF(M6,1),M6),ALIGN0,COLOR44AAFF,LINEDOT;

ZZ1:=REF(CLOSE,1);
ZZ2:=SMA(MAX(CLOSE-ZZ1,0),6,1)/SMA(ABS(CLOSE-ZZ1),6,1)*100;
STICKLINE(CROSS(75,ZZ2),O,C,5,0),COLOR66ff00;
STICKLINE(CROSS(ZZ2,25),O,C,5,0),COLOR22ffee;
DRAWTEXT(M1<REF(M1,1) AND REF(M1,1)>REF(M1,2) AND M3>REF(M3,1),M1,'☆'),ALIGN0,COLORFF6633;
DRAWTEXT(M1>REF(M1,1) AND REF(M1,1)<REF(M1,2) AND M5<REF(M5,1),M1,'★'),ALIGN0,COLORYELLOW;
{-------------------------转折参考------------------------}
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,'ψ'),ALIGN0,COLOR00ff00;
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)) and ref(c,1)>m4,HIGH*1.03,'ψψ'),ALIGN0,COLOR55bb77;{未来,用于参考}
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10))and ref(c,1)>m5,HIGH*1.04,'ψψψ'),ALIGN0,COLOR9988aa;

DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)) and ref(c,1)>m6,HIGH*1.049,'ψψψ'),ALIGN0,COLORdd44ff;{注意花色的不同,有不同的提示作用}
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)) and COUNT( ref(c,1)>m6,3)=3,HIGH*1.056,'ψψψ'),ALIGN0,COLORddEEff;

A04:=(((ZIG( 3.000, 20.000) > REF(ZIG( 3.000, 20.000), 1.000)) AND (REF(ZIG( 3.000, 20.000), 1.000) <= REF(ZIG( 3.000, 20.000), 2.000))) AND (REF(ZIG( 3.000, 20.000), 2.000) <= REF(ZIG( 3.000, 20.000), 3.000)));
A05:=(((ZIG( 3.000, 20.000) < REF(ZIG( 3.000, 20.000), 1.000)) AND (REF(ZIG( 3.000, 20.000), 1.000) >= REF(ZIG( 3.000, 20.000), 2.000))) AND (REF(ZIG( 3.000, 20.000), 2.000) >= REF(ZIG( 3.000, 20.000), 3.000)));
A06:DRAWTEXT(A04,LOW*0.96, '●'),ALIGN0,COLORWHITE;{白珠子不作操作决策,用于转折参考}
DRAWTEXT(A04,LOW*0.90, '●'),ALIGN0,COLORWHITE;
STICKLINE(A04,l,l*0.8,0.1,0),color00ffff,LINEDOT;
A07:DRAWICON(A05,HIGH*1.01, 12),ALIGN0,colorffffff;

{-----------------------解盘----------------------------}

VAR1:=(((CLOSE - HY1) / HY1) * 100);
VAR2:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);
TS:=BARSLAST((BARSLAST(((VAR1 > 0) AND (REF(VAR1,1) > 0))) > 0));
利润:=SUM(IF((TS > 0),VAR2,0),0);
EXPLAIN(1,'★决策系统★'),colorFFFF;
EXPLAINEX(HY1,'●决策:',HY1,2,0),colorFF;
EXPLAINEX(线性,'●导航:',线性,2,0),color99CC99;
EXPLAIN(CROSS(CLOSE,HY1),'★状态:参考买进!'),colorFF00FF;
EXPLAIN(CROSS(HY1,CLOSE),'★状态:参考卖出!'),colorFFFF00;
EXPLAIN((CLOSE > HY1),'●状态:关注、买入!'),colorFFFF;
EXPLAIN((CLOSE <= HY1),'●状态:观望、警戒、卖出!'),colorFF00;
EXPLAINEX(利润,'●获利:',利润,2,0),colorFF00FF;
EXPLAINEX(((CLOSE - HY1) * 10),'★多空趋势:',((CLOSE - HY1) * 10),2,1),colorFF00FF;
EXPLAINEX((ZL + SF),'库存能量:',(ZL + SF),2,0),colorFF;
EXPLAINEX(MA((ZL + SF),5),'库存平均:',MA((ZL + SF),5),2,0),colorFF;
EXPLAINEX(ZL,'库存主力:',ZL,2,0),colorFF;
EXPLAINEX(SF,'库存散户:',SF,2,0),colorFF00;

更多飞狐指标公式相关资讯请关注南方财富网

 

股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。