飞狐怎么看板块 飞狐综合分析公式源码(2)
2016-08-30 11:02 股票知识 zhishi.southmoney.com
C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1",C3+1)>"RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1");
STICKLINE("RSI.RSI1">80,3,3.5,5,1),Color4080FF;
DRAWTEXT(CROSS("RSI.RSI1",80),3.4,'超买'),ColorFFFF00;
STICKLINE(D3>0,3,4,2,0),COLORGREEN;
DRAWTEXT(D3>0,3.7,'←顶离'),COLORGREEN;
PARTLINE("RSI.RSI1">"RSI.RSI2",3),COLORMAGENTA,LINETHICK2;//RSI指标线RSI1>RSI2,中轴为粉色
PARTLINE("RSI.RSI1"<"RSI.RSI2",3),ColorFF0000,LINETHICK2;//RSI指标线RSI1<RSI2,中轴为蓝色
DRAWTEXTEX(C>0,1,1,350,'《RSI指标》'),Color00A6A6;
{MACD}
A1:=BARSLAST(ref(cross("MACD.diff","MACD.dea"),1));
B1:=ref(c,A1+1)>c and ref("MACD.diff",A1+1)<"MACD.diff" and cross("MACD.diff","MACD.dea");
STICKLINE("MACD.diff"<0,1,0.5,5,1),Color808040;
DRAWTEXT(CROSS(0,"MACD.diff"),0.8,'DIFF<0'),Color80FFFF;
STICKLINE(B1>0,1,0,2,0),COLORRED;
DRAWTEXT(B1>0,0.4,'←底离'),COLORRED;
C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIFF"),1));
D1:=REF(CLOSE,C1+1)<CLOSE AND REF("MACD.DIFF",C1+1)>"MACD.DIFF" AND CROSS("MACD.DEA","MACD.DIFF");
STICKLINE("MACD.diff">0,1,1.5,5,1),Color4080FF;
DRAWTEXT(CROSS("MACD.diff",0),1.4,'DIFF>0'),ColorFFFF00;
STICKLINE(D1>0,1,2,2,0),COLORGREEN;
DRAWTEXT(D1>0,1.7,'←顶离'),COLORGREEN;
PARTLINE("MACD.diff">"MACD.dea",1),COLORMAGENTA,LINETHICK2;//MACD指标线DIFF>DEA,中轴为粉色
PARTLINE("MACD.diff"<"MACD.dea",1),ColorFF0000,LINETHICK2;//MACD指标线DIFF<DEA,中轴为蓝色
DRAWTEXTEX(C>0,1,1,680,'《MACD指标》'),Color00A6A6;//
更多股票公式相关资讯请关注南方财富网
(股票知识网zhishi.southmoney.com)