公式设置时候选择主图叠加即可在主图显示。
当前收盘价突破前20日收盘价:
N := 20;
UB := C > REF(HHV(C,N),1);
DB := C < REF(LLV(C,N),1);
UN := IF(DB,0,IF(UB,REF(UN,1)+1,REF(UN,1)));
DN := IF(UB,0,IF(DB,REF(DN,1)+1,REF(DN,1)));
DRAWICON(UN = 1 AND REF(UN,1) = 0,H,4);
DRAWICON(DN = 1 AND REF(DN,1) = 0,L,5);
|