飞狐真人凤冠霞帔主图公式源码 飞狐指标公式大全(2)
2015-12-17 16:20:38 股票入门 http://rumen.southmoney.com
{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;
更多飞狐指标公式请关注南方股票网 http://rumen.southmoney.com
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。