“后面K线上涨,如果后面创新高” 创多少周期新高?
“后面K线下跌,如果后面创新底” 创多少周期新低?
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
MACD : 2*(DIFF-DEA), COLORSTICK;
up:macd>0 and ref(macd,1)>0 and ref(macd,2)>0 and macd+ref(macd,1)<ref(macd,1)+ref(macd,2);
down:macd<0 and ref(macd,1)<0 and ref(macd,2)<0 and abs(macd+ref(macd,1))<abs(ref(macd,1)+ref(macd,2));
if up then begin
sell(holding>0,holding,market);
buyshort(holding=0,holding,market);
end
if h<ref(h,1) and down then begin
sellshort(holding<0,holding,market);
buy(holding=0,1,market);
end
if h>ref(h,1) and h>hhv(h,n) then begin //创n周期新高。n的值自己改下
sellshort(holding<0,holding,market);
buy(holding=0,1,market);
end
if down then begin
sellshort(holding<0,holding,market);
buy(holding=0);
end
if h>ref(h,1) and up then begin
sell(holding>0,holding,market);
buyshort(holding=0,1,market);
end
if h<ref(h,1) and l<llv(l,n) then begin //n周期新低,改成具体周期
sell(holding>0,holding,market);
buyshort(holding=0,1,market);
end
Y轴右键
勾选“仅随k线变动”
Y轴右键
勾选“仅随k线变动” 这里Y轴右键 什么意思 |