交易策略源码:
H1:=IFELSE(HIGH=REF(HIGH,3)REF(HIGH,2)>=REF(HIGH,4)REF(HIGH,2)>=REF(HIGH,5)REF(HIGH,2)>=REF(HIGH,6), REF(HIGH,2),0);
L1:=IFELSE(LOW>REF(LOW,2)REF(LOW,1)>REF(LOW,2)REF(LOW,2)0,H1);
L2:=VALUEWHEN(L1>0,L1);
K11:=IFELSE(H>H2,-3,IFELSE(L0,K11);
G:=IFELSE(K22=1,H2,L2);
G1:=VALUEWHEN(ISLASTBAR,G);
DRAWNUMBER(LOW>0,G1,G1,0,COLORCYAN);
TMP:=VALUEWHEN(K110,K11);
DRAWLINE(TMP=1REF(TMP,1)=1,G,TMP=1REF(TMP,1)=1,REF(G,1),COLORCYAN);
DRAWLINE(TMP=-3REF(TMP,1)=-3,G,TMP=-3REF(TMP,1)=-3,REF(G,1),COLORRED);
DRAWSL(K22=1,G,0,1,0,COLORCYAN);
DRAWSL(K22=-3,G,0,1,0,COLORRED);
W1:=IFELSE((OPEN-CLOSE)>0,1,-3);
W2:=OPEN-CLOSE;
HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);
LT:=IFELSE(OPEN0,OPEN,CLOSE,COLORCYAN,1);
STICKLINE(W1REF(G,1),BK;
K22=1REF(K22=1,1)GREF(G,1),SK;
点击复制上述代码粘贴到到公式管理器