渤海商品特色
//版本号码:201402211055AM
//适应周期:30分钟
//默认显示:副图
//公式名称:UP商品1号-波段
//公式作者:金汇东方
//中文名称:UPSP1H-BD
PERIOD2:=PERIOD-3;
周期锁定:=1;
MID:=(3*C+O+L+H)/6;
JCCSN:=3;
FSCS:=IFF(PERIOD2=3,JCCSN*13,IFF(PERIOD2=2,JCCSN*26,IFF(PERIOD2=1,JCCSN*52,IFF(PERIOD2=0,JCCSN*156,DRAWNULL))));
操盘方向线1:=WMA(MID,FSCS);
操盘方向线:=(操盘方向线1-REF(操盘方向线1,1))/REF(操盘方向线1,1);
多头市场:IFF(操盘方向线>=0 AND 周期锁定,1000*操盘方向线,DRAWNULL),STICK,COLORRED;
空头市场:IFF(操盘方向线<0 AND 周期锁定,1000*操盘方向线,DRAWNULL),STICK,COLORFFFF00;
快线:IFF(周期锁定,EMA(1000*操盘方向线,12),DRAWNULL),COLORFFFFFF;
波段:IFF(周期锁定,EMA(1000*操盘方向线,60),DRAWNULL),COLORYELLOW;
WZLONG:=IFF(PERIOD2=3,260,IFF(PERIOD2=2,520,DRAWNULL));
WZSHORT:=IFF(PERIOD2=3,65,IFF(PERIOD2=2,130,IFF(PERIOD2=1,260,IFF(PERIOD2=0,780,DRAWNULL))));
UP中线:=IFF(IFF(BETWEEN(PERIOD2,2,3),1,0),EMA(100*(C-LLV(LOW,WZLONG))/(HHV(H,WZLONG)-LLV(LOW,WZLONG)),3),DRAWNULL),COLORRED;
最近超跌:=IFF(EXIST(UP中线<10,10),1,0),NODRAW;
最近超涨:=IFF(EXIST(UP中线>90,10),1,0),NODRAW;
星级买入:=最近超跌=1 AND CROSS(操盘方向线,0) AND (PERIOD2=2) AND EXIST(CROSS(快线,波段),10);
星级卖出:=最近超涨=1 AND CROSS(0,操盘方向线) AND (PERIOD2=2) AND EXIST(CROSS(波段,快线),10);
DRAWICON(星级买入 AND 周期锁定,0,82);
DRAWICON(星级卖出 AND 周期锁定,HHV(1000*操盘方向线,10),83);
仅限30分钟使用:IFF(PERIOD2!=2,1,DRAWNULL),NODRAW,COLORWHITE;
20226232512026093.png
20226232512523563.png
20226232513125634.png
|