成本分布操盘(未来)
2017-05-30网络 编 辑:翔博软件
成本分布操盘(未来)
平均成本:((SUM(AMOUNT,SUMBARS(VOL,CAPITAL)) / SUM(VOL,SUMBARS(VOL,CAPITAL))) / 100),LINETHICK2,colorFFFF;
CMA0:COST(1),POINTDOT;
CMA1:COST(10),POINTDOT;
CMA2:COST(20),POINTDOT;
CMA3:COST(30),POINTDOT;
CMA4:COST(40),POINTDOT;
CMA5:COST(50),POINTDOT;
CMA6:COST(60),POINTDOT;
CMA7:COST(70),POINTDOT;
CMA8:COST(80),POINTDOT;
CMA9:COST(90),POINTDOT;
周K:="KDJ.K#week"(9,3,3);
周D:="KDJ.D#week"(9,3,3);
DRAWICON(CROSS(周K,周D),LOW,1);
DRAWTEXT(CROSS(周K,周D),(LLV(LOW,13) - 0.15),'周K★金叉'),ALIGN0,colorFF;
DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,27));
DEA:=EMA(DIFF,9);
MACD:=(2 * (DIFF - DEA));
低位金叉:=(CROSS(DIFF,DEA) AND (DIFF < (0 - 0.1)));
DRAWICON(低位金叉,LOW,3),ALIGN0;
DRAWTEXT(低位金叉,(LOW - 0.1),' 逢低买进'),ALIGN2,colorFFFF;