1. 股票论坛首页
  2. 炒股技巧
  3. 均线

新8条代缺口均线

MA5:MA(CLOSE,5),COLORFFFFFF;
MA10:MA(CLOSE,10),COLOR00FFFF;
MA20:MA(CLOSE,20),COLORFF00FF;
MA30:MA(CLOSE,30),COLORFFFF00,LINETHICK2;
MA60:MA(CLOSE,60),COLOR00FF00,LINETHICK2;
MA80:MA(CLOSE,80),COLORGRAY;
MA120:MA(CLOSE,120),COLORFF937F,LINETHICK2;
MA240:MA(CLOSE,240),COLOR0000FF;
{缺口提示}
fh:=h;fl:=l;
for p=datacount-1 downto 1 do begin
if fh[p]<fh[p+1] then
fh[p]:=fh[p+1];
if fl[p]>fl[p+1] then
fl[p]:=fl[p+1];
end;
qk:=l>ref(h,1)OR H<ref(L,1);
G:=IF(l>ref(h,1),L,IF(H<ref(L,1),ref(L,1),0));
D:=IF(l>ref(h,1),ref(H,1),IF(H<ref(L,1),H,0));
S:=IF(l>ref(h,1),2,IF(H<ref(L,1),1,0));
tj:=s=2 and fL<=G AND fL>=D OR s=1 and fH<G AND fH>=D ;
w:=BARSSINCE(BACKSET(BARSTATUS=2,BARSLAST(TJ*BARPOS=BARPOS)+1))+1;
DD:=DATE;
最近缺口日:REF(DD,W-1)+19000000,LINETHICK0,COLORAAFF33;
S1:=IF(ref(S,W-1)=2,ref(fL,w-1),IF(ref(S,W-1)=1,ref(fH,w-1),0));
S2:=IF(ref(S,W-1)=2,ref(D,w-1),IF(ref(S,W-1)=1,ref(G,w-1),0));
A:=MAX(S1,S2);
B:=MIN(S1,S2);
缺口:B[datacount],COLORWHITE,LINETHICK,,PRECISION2;
→:A[datacount],COLORWHITE,LINETHICK,PRECISION2;
STICKLINE(w,S1,S2,15,0),COLORGRAY;

原创文章,作者:不将就的人生,如若转载,请注明出处:https://www.qianglongwang.com/3944.html

联系我们