飞狐二指禅公式源码 飞狐指标公式大全(4)
2015-11-26 17:27:54 股票入门 http://rumen.southmoney.com
HEA:=BACKSET(LD1,2);
HEB:=(HEA > REF(HEA,1));
HEE:=(HEB OR ISLASTBAR);
HFF1:=BACKSET(HEE,(REF(BARSLAST(BB2),1) + 1));
HEE2:=(HFF1 > REF(HFF1,1));
HFF2:=BACKSET(HEE2,2);
HEE3:=(HFF2 > REF(HFF2,1));
HFF3:=BACKSET((HEE3 AND (COUNT(HEE,(REF(BARSLAST(BB2),1) + 2)) = 0)),(REF(BARSLAST(BB2),1) + 2));
Hjs:=(HFF3 > REF(HFF3,1));
HG1:=BACKSET((HJS AND (COUNT(HEE,(REF(BARSLAST(BB2),1) + 2)) = 0)),(REF(BARSLAST(BB2),1) + 2));
HGA:=(HG1 > REF(HG1,1));
HG2:=IF(HEE,COUNT(AAA2,(REF(BARSLAST(HEE),1) + 1)),0);
HG3:=IF(((HG2 = 1) AND HEE),BARSLAST(HEE3),0);
HGG:=IF((HEE AND (REF(HIGH,BARSLAST(HEE3)) <= REF(HIGH,BARSLAST(HJS)))),BARSLAST(HJS),BARSLAST(HEE3));
HJA:=IF(((HG2 = 2) AND HEE),HGG,0);
HJB:=IF(((HG2 >= 3) AND HEE),IF((HEE AND (REF(HIGH,HGG) <= REF(HIGH,BARSLAST(HGA)))),BARSLAST(HGA),HGG),0);
HJJ:=((HG3 + HJA) + HJB);
HD:=BACKSET(HEE,HJJ);
UU:=(HD > REF(HD,1));
VV:=BACKSET(UU,2);
WW:=(VV > REF(VV,1));
XX:=BACKSET(ISLASTBAR,(BARSLAST(HEB) + 1));
UU2:=(XX > REF(XX,1));
VV2:=BACKSET(UU2,(REF(BARSLAST(HEB),1) + 2));
WW2:=(VV2 > REF(VV2,1));
DRAWLINE(WW2,LOW,UU2,LOW,1),POINTDOT,colorFFFF;
XX2:=BACKSET(ISLASTBAR,(BARSLAST(WW) + 1));
前一低:=(XX2 > REF(XX2,1));
上:=BACKSET(前一低,(REF(BARSLAST(WW),1) + 2));
中1:=(上 > REF(上,1));
DRAWLINE(中1,HIGH,前一低,HIGH,1),POINTDOT,colorFFFF;
中2:=REF(LOW,BARSLAST(UU2));
前二低:REF(LOW,BARSLAST(WW2)),POINTDOT,LINETHICK2,colorFF66FF;
前一高:REF(HIGH,BARSLAST(前一低)),POINTDOT,LINETHICK3,color99FF66;
前二高:REF(HIGH,BARSLAST(中1)),POINTDOT,LINETHICK2,colorFF66FF;
下:=(MA(HIGH,30) * 1.15);
上通道:=(MA(HIGH,3) * 1.03);
短期乖离率:=(MA(LOW,3) * 0.97);
趋势:=(MA(LOW,30) * 0.85);
趋势1:=(EMA(EMA(EMA(HIGH,5),5),5) * 1.05);
DRAWTEXT(FILTER(((HIGH > 趋势1) AND (CLOSE < 趋势1)),3),(HIGH * 1.04),''),colorEE00FF;
平衡线:=(((CLOSE - MA(CLOSE,13)) / MA(CLOSE,13)) * 100);
回挡线:=(((5 * SMA((((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 80),5,1)) - (3 * SMA(SMA((((CLOSE - LLV(LOW,7)) / (HHV(HIGH,7) - LLV(LOW,7))) * 80),5,1),3,1))) - SMA(SMA(SMA((((CLOSE - LLV(LOW,20)) / (HHV(HIGH,20) - LLV(LOW,20))) * 80),5,1),3,1),2,1));
中期大底:=MA(MA(回挡线,5),3);
了结线:=EMA(EMA(EMA(HIGH,3),3),1);
WX:=(了结线 * 0.92);
DRAWICON(((CROSS(回挡线,0) AND (平衡线 > 3)) AND ((WX - REF(WX,1)) > 0)),LOW,0);
M1:=(LLV(LOW,30) * 1.01);
DRAWTEXT((((LOW <= M1) AND ((WX - REF(WX,1)) >= (0 - 0.99999))) AND ((CLOSE / OPEN) > 1.025)),LOW,''),colorFFFF;
VAR2:=(了结线 * 0.84);
M2:=(了结线 * 1.06);
主线:=WMA(CLOSE,8);
VAR1:=POW((CLOSE - 主线),1);
VAR2:=MA(VAR1,3);
VAR3:=SQRT(VAR2);
MA10:=MA(CLOSE,0);
平均值:=(MA(CLOSE,15) * IF((20 < 5),MA10,1));
MX:=(MA(CLOSE,20) * IF((20 < 7),MA10,1));
DRAWTEXT((((((((REF(CLOSE,1) < MX) AND ((主线 - REF(主线,1)) > 0)) AND ((M2 - REF(M2,1)) > 0.01)) AND (LOW < MX)) AND (CLOSE > MX)) AND ((平均值 - REF(平均值,1)) > 0)) AND ((CLOSE / OPEN) > 1.052)),(LOW - 0.08),'★黄金'),colorFFFF;
MA13:=MA(CLOSE,10);
MA34:=((MA13 / -10) + MA13);
VAR190:=((MA34 * 2) * 0.54);
VAR191:=MA(CLOSE,13);
VAR192:=MA(CLOSE,25);
DRAWTEXT(FILTER((((((((下 - REF(下,1)) > 0) AND (平衡线 < (0 - 4))) AND (CLOSE < OPEN)) AND (LOW <= VAR192)) AND (CLOSE < VAR191)) AND ((VAR190 - REF(VAR190,1)) > 0)),1),LOW,'★破多买入'),colorFFFFFF;
更多飞狐指标公式请关注南方股票网 http://rumen.southmoney.com
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。