N:=120; K:=BARSLAST(CURRBARSCOUNT=N); GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0)),NODRAW;{高點(diǎn)} DDDD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0)),NODRAW;{低點(diǎn)} KJ:=GD-DDDD;{高低點(diǎn)差值=分區(qū)高度} 平衡:=IF(CURRBARSCOUNT<=N,DDDD+KJ/2,DRAWNULL),COLOR00FFFF,NODRAW; 日:=150;昨前:=3; 高區(qū):=REF(HHV(H,日),昨前); 低區(qū):=REF(LLV(L,日),昨前); H1:=高區(qū)-(高區(qū)-低區(qū))*0.191; H2:=高區(qū)-(高區(qū)-低區(qū))*0.382; H3:=高區(qū)-(高區(qū)-低區(qū))*0.5; H4:=高區(qū)-(高區(qū)-低區(qū))*0.618; H5:=高區(qū)-(高區(qū)-低區(qū))*0.809; 頂區(qū)0:=REFDATE(高區(qū),DATE),COLORBLUE,LINETHICK3; 警示0:=REFDATE(H1,DATE),DOTLINE,COLORRED; 強(qiáng)勢(shì)0:=REFDATE(H2,DATE),COLORMAGENTA,DOTLINE; 壓力0:=REFDATE(H3,DATE),COLORWHITE,DOTLINE; 突破0:=REFDATE(H4,DATE),COLORGREEN,DOTLINE; 轉(zhuǎn)強(qiáng)0:=REFDATE(H5,DATE),COLORYELLOW,DOTLINE; 支撐0:=REFDATE(低區(qū),DATE),DOTLINE,COLORFF8080; DRAWBAND(頂區(qū)0,RGB(0,0,0),平衡,RGB(0,0,0)); DRAWBAND(平衡,RGB(0,0,0),低區(qū),RGB(0,0,0)); DRAWBAND(高區(qū),RGB(120,100,0),警示0,RGB(0,0,0)); DRAWBAND(警示0,RGB(258,58,0),壓力0,RGB(0,0,0)); DRAWBAND(壓力0,RGB(128,58,0),突破0,RGB(0,0,0)); DRAWBAND(突破0,RGB(68,0,0),轉(zhuǎn)強(qiáng)0,RGB(0,0,0)); DRAWBAND(轉(zhuǎn)強(qiáng)0,RGB(38,0,0),支撐0,RGB(0,0,0)); DRAWBAND(支撐0,RGB(38,38,38),低區(qū),RGB(0,0,0)); 頂區(qū):頂區(qū)0,COLORBLUE,LINETHICK3; 警示:警示0,DOTLINE,COLORRED; 壓力:壓力0,COLORWHITE,DOTLINE; 突破:突破0,COLORGREEN,DOTLINE; 轉(zhuǎn)強(qiáng):轉(zhuǎn)強(qiáng)0,COLORYELLOW,DOTLINE; 支撐:支撐0,DOTLINE,COLORFF8080; DRAWKLINE(H,O,L,C); |
|