大智慧夏卫东老师的主图指标源码
DRAWTEXTREL(0,0,'股市风云'),COLORYELLOW;
DRAWTEXTABS(45,0,'《夏卫东-原创》'),COLOR0000FF;
前期最高价:PEAK(1,5,1),linethick1,COLOR5500FF;
前期最低价:TROUGH(2,5,1),linethick1,COLOR00FF00;
中间价:(前期最高价+前期最低价)/2,linethick1,COLORFFFFFF;
冲高回踩买入价:前期最高价*1.03,linethick0,COLOR00FFFF;
买入:CROSS(CLOSE,前期最高价*1.03) ,LINETHICK0,COLOR0000FF;
DRAWTEXT(barstatus=2,前期最高价,'前期最高价: '+NUMTOSTRN(前期最高价,2)+'元'),linethick1,ALIGN2,VALIGN2,Color5500ff;
DRAWTEXT(barstatus=2,前期最低价,'前期最低价: '+NUMTOSTRN(前期最低价,2)+'元'),linethick1,ALIGN2,VALIGN2,colorgreen;
DRAWTEXT(barstatus=2,冲高回踩买入价,'冲高回踩买入价: '+NUMTOSTRN(冲高回踩买入价,2)+'元'),linethick1,ALIGN2,VALIGN2,Color00FFFF;
DRAWTEXT(barstatus=2,中间价,'中间价: '+NUMTOSTRN(中间价,2)+'元'),linethick1,ALIGN2,VALIGN2,ColorFFFFFF;
PARTLINE(冲高回踩买入价,冲高回踩买入价<c,rgb(255,255,0),冲高回踩买入价>c,rgb(0,0,0)),linethick2;
DRAWTEXTREL(10,50,'放量下跌要减仓'),LINETHICK3,COLORYELLOW;
DRAWTEXTREL(10,110,'缩量下跌是底像'),LINETHICK3,COLORYELLOW;
DRAWTEXTREL(10,170,'增量回升是关键'),LINETHICK3,COLORYELLOW;
DRAWTEXTREL(10,230,'回头确认要进场'),LINETHICK3,COLORYELLOW;