庆祝中华人民共和国成立五十九周年。主图指标【沪深300指数】沪深300指数在某种程度上可以体现市场主力的真正动向。
因为它们是由各行各业中的龙头、具有代表性的上市公司做成样本股。
了解市场的动向,看看沪深300,会对我们的判断、决策提供较为有力的依据。
input: n(5,0,999,1),n1(10,0,999,1),n2(20,0,999,1),n3(30,0,999,1);
stickline("399300$close">"399300$open","399300$close","399300$open",6,1),colorred;
stickline("399300$close">"399300$open","399300$open","399300$LOW",0.1,0),colorred;
stickline("399300$close">"399300$open","399300$close","399300$HIGH",0.1,0),colorred;
stickline("399300$close"<"399300$open","399300$close","399300$open",6,0),COLORCYAN;
stickline("399300$close"<"399300$open","399300$HIGH","399300$LOW",0.1,0),COLORCYAN;
jj:=DMA((3*"399300$HIGH"+"399300$LOW"+"399300$open"+2*"399300$close")/7,VOL/(SUM(AMOUNT, 1)/(AMOUNT/VOL/100)/100));
平:EMA(EMA(jj,5),14),ColorEEEEEE;
衡:WMA(平,90),LINEDOT,COLOR00EE00;
HD:=FILTER(BACKSET(FILTER(REF(jj,10)=HHV(jj,2*10+1),10),10+1),10);
LD:=FILTER(BACKSET(FILTER(REF(jj,10)=LLV(jj,2*10+1),10),10+1),10);
A21:=REF(jj,BARSLAST(HD));
B21:=REF(jj,BARSLAST(LD));
T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
顶:IF(T1,A21,A21),COLORff9900,POINTDOT,LINETHICK3;
底:IF(T2,B21,B21),COLORFF00FF,POINTDOT,LINETHICK3;
QJ:=REF("399300$HIGH",1)-REF("399300$LOW",1);
重心:=("399300$HIGH" + "399300$LOW" + "399300$close")/3;
压力Ⅰ:=2*重心-"399300$LOW";
压力Ⅱ:=重心+QJ;
支撑Ⅰ:=2*重心-"399300$HIGH";
支撑Ⅱ:=重心-QJ;
DRAWTEXTEX(C,1,72,25,' 股价:'+NUMTOSTR("399300$close",2)),ColorFF00FF;
DRAWTEXTEX(C,1,225,25,' 重心:'+NUMTOSTR(重心,2)),Color00FF00;
DRAWTEXTEX(C,1,72,75,' 支 撑'),ColorFF00FF;
DRAWTEXTEX(C,1,72,125,' '+NUMTOSTR(支撑Ⅰ,2)),ColorFF00FF;
DRAWTEXTEX(C,1,72,175,' '+NUMTOSTR(支撑Ⅱ,2)),ColorFF00FF;
DRAWTEXTEX(C,1,225,75,' 压 力'),Color00FF00;
DRAWTEXTEX(C,1,225,125,' '+NUMTOSTR(压力Ⅰ,2)),Color00FF00;
DRAWTEXTEX(C,1,225,175,' '+NUMTOSTR(压力Ⅱ,2)),Color00FF00;
DRAWTEXTEX(C,1,72,20,'│'),Color00FFFF;
DRAWTEXTEX(C,1,72,70,'│'),Color00FFFF;
DRAWTEXTEX(C,1,72,120,'│'),Color00FFFF;
DRAWTEXTEX(C,1,72,170,'│'),Color00FFFF;
DRAWTEXTEX(C,1,360,20,'│'),Color00FFFF;
DRAWTEXTEX(C,1,360,70,'│'),Color00FFFF;
DRAWTEXTEX(C,1,360,120,'│'),Color00FFFF;
DRAWTEXTEX(C,1,360,170,'│'),Color00FFFF;
DRAWTEXTEX(C,1,220,20,'│'),Color00FFFF;
DRAWTEXTEX(C,1,220,70,'│'),Color00FFFF;
DRAWTEXTEX(C,1,220,120,'│'),Color00FFFF;
DRAWTEXTEX(C,1,220,170,'│'),Color00FFFF;
DRAWTEXTEX(C,1,80,0,'────────────--'),Color00FFFF;
DRAWTEXTEX(C,1,80,50,'────────────--'),Color00FFFF;
DRAWTEXTEX(C,1,80,100,'────────────--'),Color00FFFF;
DRAWTEXTEX(C,1,80,150,'────────────--'),Color00FFFF;
DRAWTEXTEX(C,1,80,200,'────────────--'),Color00FFFF;
|