计算K线实体,上影线,下影线的高度
2017-1-13 乱云飞
上影线:=(H-MAX(O,C))/(H-L);//上影线高度实体:=ABS(O-C)/(H-L);//实体高度
下影线:=(MIN(O,C)-L)/(H-L);//下影线高度
DRAWTEXT_FIX(ISLASTBAR,0.8,0.22,0,"●上影线:"+上影线*100),colorgreen;
DRAWTEXT_FIX(ISLASTBAR,0.8,0.33,0,"●实体:"+实体*100),colorFFFFFF;
DRAWTEXT_FIX(ISLASTBAR,0.8,0.44,0,"●下影线:"+下影线*100),colorred;
发表评论: