通达信最优均线主图源码
<p data-first-child >通达信最优均线主图源码<br/> <br/>MA1:MA(CLOSE,3),LINETHICK3;<br/> MA2:MA(CLOSE,6),LINETHICK3;<br/> MA3:MA(CLOSE,20),COLORBLUE,LINETHICK2;<br/> MA4:MA(CLOSE,50),LINETHICK3;<br/> 高区18:IF(CURRBARSCOUNT<=18, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=18)),0)),DRAWNULL),COLORYELLOW;<br/> 低区18:IF(CURRBARSCOUNT<=18, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=18)),0)),DRAWNULL),COLORYELLOW;<br/> 高:=REF(HHV(H,80),3);<br/>低:=REF(LLV(L,80),3);<br/> H19:=高-(高-低);<br/>H38:=高-(高-低);<br/>H中:=高-(高-低);<br/>H61:=高-(高-低);<br/>H80:=高-(高-低);<br/> 顶点:REFDATE(高,DATE),POINTDOT,LINETHICK2,COLORWHITE;<br/> 低点:REFDATE(低,DATE),POINTDOT,LINETHICK2,COLORWHITE;<br/> C2:=REF(C,1);<br/> 涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);<br/> STICKLINE(涨停,OPEN,CLOSE,2,0),,COLORYELLOW;<br/> STICKLINE(涨停,H,L,0,0),,COLORYELLOW;<br/> 跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);<br/> STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;<br/> STICKLINE(跌停,H,L,0,1),COLORGREEN;N:=10;<br/>高1:=REF(HHV(H,1),3);<br/>低1:=REF(LLV(L,1),3);<br/> HH19:=高-(高-低);<br/>HH38:=高-(高-低);<br/>HH中:=高-(高-低);<br/>HH61:=高-(高-低);<br/>HH80:=高-(高-低);<br/> 顶点1:REFDATE(高1,DATE),COLORWHITE;<br/> 低点1:REFDATE(低1,DATE),COLORWHITE;</p><p></p>
页:
[1]