分享

HA

 菠菜205 2018-01-19

N;5 300  20
M;1 100 3
P;0.1 10 2

XXOPEN:=(REF(OPEN,M)+REF(CLOSE,M))/2;
XXCLOSE:=(HIGH+LOW+CLOSE+OPEN)/4; 
XXHIGH:=MAX(XXOPEN,XXCLOSE,HHV(HIGH,M)); 
XXLOW:=MIN(XXOPEN,XXCLOSE,LLV(LOW,M)); 

STICKLINE(XXCLOSE>XXOPEN,XXCLOSE ,XXOPEN ,4,1 ),COLORRED; 
STICKLINE(XXCLOSE<=XXOPEN,XXCLOSE ,XXOPEN ,4,1 ),COLORFFFF66; 
STICKLINE(XXCLOSE>XXOPEN,XXHIGH ,XXCLOSE ,0.1,0 ),COLORRED; 
STICKLINE(XXCLOSE>XXOPEN,XXOPEN ,XXLOW ,0.1,0 ),COLORRED; 
STICKLINE(XXCLOSE<=XXOPEN,XXOPEN ,XXHIGH ,0.1,0 ),COLORFFFF66; 
STICKLINE(XXCLOSE<=XXOPEN,XXCLOSE ,XXLOW ,0.1,0 ),COLORFFFF66;




MID :  MA(CLOSE,N),COLORWHITE,LINETHICK2;
UPPER: MID + P*STD(CLOSE,N);
LOWER: MID - P*STD(CLOSE,N);






TYP:=(HIGH+LOW+CLOSE)/3;

CCI:=(TYP-MA(TYP,13))/(0.015*AVEDEV(TYP,13));


DRAWTEXT(CROSS(CCI,-200) AND CCI>REF(CCI,1),L,'平空'),COLORGREEN;

DRAWTEXT(CROSS(200,CCI) AND CCI<REF(CCI,1),H,'平多'),COLORYELLOW;

DRAWTEXT(CROSS(CCI,100) AND CCI>REF(CCI,1),L,'加多'),COLORYELLOW;

DRAWTEXT(CROSS(-100,CCI) AND CCI<REF(CCI,1),H,'加空'),COLORGREEN








    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约