飞狐红买绿卖主图公式源码 飞狐指标公式大全(2)
2015-10-31 10:48:49 股票入门 http://rumen.southmoney.com
{AS:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,48))/5;
AA:=SMA(CLOSE,3,1);
STICKLINE(AS<=AA AND CLOSE>=OPEN,HIGH,LOW,0.1,1),colorFF;
STICKLINE(AS<=AA AND CLOSE>=OPEN,CLOSE,OPEN,8,1),colorFF;
STICKLINE(AS<=AA AND CLOSE<OPEN,HIGH,LOW,0.1,0),colorFF;
STICKLINE(AS<=AA AND CLOSE<OPEN,CLOSE,OPEN,8,0),colorFF;
STICKLINE(AS>AA AND CLOSE>=OPEN,HIGH,LOW,0.1,1),colorFF00;
STICKLINE(AS>AA AND CLOSE>=OPEN,CLOSE,OPEN,8,1),colorFF00;
STICKLINE(AS>AA AND CLOSE<OPEN,HIGH,LOW,0.1,0),colorFF00;
STICKLINE(AS>AA AND CLOSE<OPEN,CLOSE,OPEN,8,0),colorFF00;}
ma7:EMA(C,7),COLORWHITE;
MID:MA(C,20),COLORYELLOW;
{DRAWICON(CROSS(MA7,MID),L*0.98,4);
DRAWICON(CROSS(MID,MA7),H*1,5);}
UPPER: MID + 2*STD(CLOSE,20),COLORwhite,LINEDOT;
LOWER: MID - 2*STD(CLOSE,20),COLORgreen,LINEDOT;
UPPER2: MID + 4*STD(CLOSE,20),COLORred,LINEDOT;
LOWER2: MID - 4*STD(CLOSE,20),COLORgreen,LINEDOT;
买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(BU,LOW*0.99,'▲'),align,colorFF00FF;
DRAWTEXT(SEL,HIGH*1.03,'▼'),align,colorFFFF;
STICKLINE(买线>=卖线,LOW,HIGH,0.1,0),colorFF;
STICKLINE(买线>=卖线,CLOSE,OPEN,8,1),colorFF;
STICKLINE(买线<卖线,CLOSE,OPEN,8,0),colorFF00;
STICKLINE(买线<卖线,LOW,HIGH,0.1,1),colorFF00;
更多飞狐指标公式请关注南方财富网(http://rumen.southmoney.com )
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。