同花顺凤凰线副图指标 源码
指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2017-11-04 18:18:00
公式简介:
凤凰线:凤凰线由蓝、绿、黄、红四种颜色的线柱和凤线(黄色)、凰线(白色)共同组成。凤凰线是对K线形态的进一步变形,因为经过一系列数据模型的演变,因此形态更加流畅,上涨、下跌的形态也更加明显。处于凤线上方的红、黄两色线柱代表资金流入动作明显,当资金持续流入,该指标上会出现红色向上箭头提示投资者买进;反之,处于凰线下方蓝、绿两色表示资金正在流出,若资金持续流出,该指标会发出绿色向下箭头提示投资者卖出。
使用时请结合其他技术指标、成交量、大盘走势等多因素进行综合判断。
N:=1;
XOPEN:=(REF(O,N)+REF(C,N))/2;
XCLOSE:=CLOSE;
XHIGH:=MAX(HIGH,XOPEN);
XLOW:=MIN(LOW,XOPEN);
VOLALITY:=MA(XHIGH-XLOW,8);
凰线:MA(XCLOSE,5)+VOLALITY/2;
凤线:MA(XCLOSE,5)-VOLALITY/2;
BU:=CROSS(XCLOSE,凰线);
SEL:=CROSS(凤线,XCLOSE);
VAR1:=BARSLAST(BU);
VAR2:=BARSLAST(SEL);
STICKLINE(XCLOSE>XOPEN AND VAR1<VAR2,XCLOSE,XOPEN ,2,0 ),colorred;
STICKLINE(XCLOSE>XOPEN AND VAR1<VAR2,XHIGH,XCLOSE ,0,0 ),colorred;
STICKLINE(XCLOSE>XOPEN AND VAR1<VAR2,XOPEN,XLOW ,0,0 ),colorred;
STICKLINE(XCLOSE<=XOPEN AND VAR1<VAR2,XCLOSE,XOPEN ,2,0 ),coloryellow;
STICKLINE(XCLOSE<=XOPEN AND VAR1<VAR2,XHIGH,XOPEN ,0,0 ),coloryellow;
STICKLINE(XCLOSE<=XOPEN AND VAR1<VAR2,XCLOSE,XLOW ,0,0 ),coloryellow;
STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XCLOSE ,XOPEN ,2,0 ),colorgreen;
STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XOPEN ,XHIGH ,0,0 ),colorgreen;
STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XCLOSE,XLOW ,0,0 ),colorgreen;
STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XCLOSE ,XOPEN ,2,0 ),colorblue;
STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XCLOSE,XHIGH ,0,0 ),colorblue;
STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XOPEN,XLOW ,0,0 ),colorblue;
DRAWICON(REF(VAR1,1)>VAR2 AND VAR1=0,XLOW,1);
DRAWICON(REF(VAR2,1)>VAR1 AND VAR2=0,XHIGH,2);
[url=http://www.goodgupiao.com/gupiaogongshi/47429.html][B]同花顺凤凰线副图指标 源码[/B][/url]