買賣非常準(zhǔn)的自用組合主圖
參數(shù) 最小 最大 缺省
N 3.00 30.00 10.00
M 1.00 999.00 150.00
{黃金分割操盤王} {N 3 30 10} STICKLINE(買線>=賣線,REFDATE(HHV(H,M),DATE),REFDATE(LLV(L,M),DATE),5,0),
COLOR600020; STICKLINE(買線<賣線,REFDATE(HHV(H,M),DATE),REFDATE(LLV(L,M),DATE),5,0), COLOR404050; DRAWKLINE(H,O,L,C); M5:MA(CLOSE,5); M10:MA(CLOSE,10); M20:MA(CLOSE,20); M30:MA(CLOSE,30); M60:MA(CLOSE,60); M120:MA(CLOSE,120); M250:MA(CLOSE,250); {黃金分割線}{公式在線提供:www.} 頂1:=REFDATE(HHV(H,M),DATE); 底1:=REFDATE(LLV(L,M),DATE); H1:=頂1-(頂1-底1)*0.191; H2:=頂1-(頂1-底1)*0.382; H3:=頂1-(頂1-底1)*0.5; H4:=頂1-(頂1-底1)*0.618; H5:=頂1-(頂1-底1)*0.809; 頂部:REFDATE(頂1,DATE),COLOR666666; %19.8:REFDATE(H1,DATE),COLOR666666; %38.2:REFDATE(H2,DATE),COLOR666666; %50:REFDATE(H3,DATE),COLOR666666; %61.8:REFDATE(H4,DATE),COLOR666666; %80.9:REFDATE(H5,DATE),COLOR666666; 底部:REFDATE(底1,DATE),COLOR666666; DRAWTEXT(ISLASTBAR,頂部,' 頂部'),COLORGREEN; DRAWTEXT(ISLASTBAR,%19.8,' 19.8%'),COLORMAGENTA; DRAWTEXT(ISLASTBAR,%38.2,' 38.2%'),COLORYELLOW; DRAWTEXT(ISLASTBAR,%50,' 50%'),COLORWHITE; DRAWTEXT(ISLASTBAR,%61.8,' 61.8%'),COLORYELLOW; DRAWTEXT(ISLASTBAR,%80.9,' 80.9%'),COLORMAGENTA; DRAWTEXT(ISLASTBAR,底部,' 底部'),COLORRED; {箱體} { 箱頂:PEAK(CLOSE,N,1)*0.98,POINTDOT,LINETHICK3,COLORYELLOW; 箱底:TROUGH(CLOSE,N,1)*1.02,POINTDOT,LINETHICK3,COLORFFFF00; 箱高:100*(箱頂-箱底)/箱底,NODRAW; } {買賣標(biāo)志} DRAWICON(CROSS(買線,賣線),LOW*0.99,1); DRAWICON(CROSS(賣線,買線),HIGH*1.01,2); {BS標(biāo)志} DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,7); DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.02,8); |
|