九毛八公式指标
可视范围最高:=hhvall(h)=h; h1:=if(可视范围最高,h,0); hh:=if(h=h1,0,h); 可视范围次高:=hhvall(hh)=h; 压力:DRAWLINE(可视范围最高, h,可视范围次高,h,1),LINETHICK1,Color79A5FF; 可视范围最低:=llvall(l)=l; l1:=if(可视范围最低,l,0); ll:=if(l=l1,0,l); 可视范围次低:=llvall(ll)=l; 支撑:DRAWLINE(可视范围最低, l,可视范围次低,l,1),LINETHICK1,Coloryellow; 求助老师修改一下压力位和支撑位主图,我的主图怎么有压缩?请老师帮忙一下。
公式模块:
{视窗画线}
N:=5; SS:=BArslAST(DISPSTATUS=1)+1; H1:=BARSLAST(H>=HHV(H,SS)); L1:=BARSLAST(L<=LLV(L,SS)); H2:=REF(H,N)=HHV(H,L1+1) OR DISPSTATUS=1; H3:=BacKSET(FILTER(H2,N),N+1); H4:=BARSLAST(H3>REF(H3,1)); SS1:=IF(DISPSTATUS=2 AND H1>L1,H4+1,IF(DISPSTATUS=2 AND H1<L1,H4+REF(H4,H4+1)+2,0)); SS2:=IF(DISPSTATUS=2 AND H1>L1,H1+1,IF(DISPSTATUS=2 AND H1<L1,L1+REF(H1,L1)+1,0)); H5:=BACKSET(DISPSTATUS=2,SS1); H6:=BACKSET(DISPSTATUS=2,SS2); L2:=REF(L,N)=LLV(L,H1+1) OR DISPSTATUS=1; L3:=BACKSET(FILTER(L2,N),N+1); L4:=BARSLAST(L3>REF(L3,1)); L5:=BACKSET(DISPSTATUS=2,L4+1); SS3:=IF(L1>L4 AND DISPSTATUS=2,L1+1,IF(DISPSTATUS=2,L4+REF(L4,L4+1)+2,0)); L6:=BACKSET(DISPSTATUS=2,SS3); DRAWLINE(H6>REF(H6,1),H,H5>REF(H5,1),H,11),COLORYELLOW; DRAWLINE(L6>REF(L6,1),L,L5>REF(L5,1),L,11),COLORGREEN;