下面是寫的要求:
1.牙齒上穿下顎確認后 進場做多,
2.當上唇下穿下顎確認 平倉
3.當牙齒下穿下顎 確認做空
4.上唇上穿下顎 平倉 循環 這么交易
交易模式是用固定時間間隔模式的用1,走完k線模式的用2
1.
上唇:REF(SMA(C,3,1),3),COLORGREEN,LINETHICK1;
牙齒:REF(SMA(C,7,1),5),COLORRED,LINETHICK2,CROSSDOT;
下顎:REF(SMA(C,25,1),5),COLORBLUE,LINETHICK2;
{下面是寫的要求:
1.牙齒上穿下顎確認后 進場做多,
2.當上唇下穿下顎確認 平倉
3.當牙齒下穿下顎 確認做空
4.上唇上穿下顎 平倉 循環 這么交易}
if ref(cross(牙齒,下顎),1) then buy(holding=0,1,limitr,open);
if ref(cross(下顎,上唇),1) then sell(1,0,limitr,open);
if ref(cross(下顎,牙齒),1) then buyshort(holding=0,1,limitr,open);
if ref(cross(上唇,下顎),1) then sellshort(1,0,limitr,open);
2.
上唇:REF(SMA(C,3,1),3),COLORGREEN,LINETHICK1;
牙齒:REF(SMA(C,7,1),5),COLORRED,LINETHICK2,CROSSDOT;
下顎:REF(SMA(C,25,1),5),COLORBLUE,LINETHICK2;
{下面是寫的要求:
1.牙齒上穿下顎確認后 進場做多,
2.當上唇下穿下顎確認 平倉
3.當牙齒下穿下顎 確認做空
4.上唇上穿下顎 平倉 循環 這么交易}
if cross(牙齒,下顎) then buy(holding=0,1,thisclose);
if cross(下顎,上唇) then sell(1,0,thisclose);
if cross(下顎,牙齒) then buyshort(holding=0,1,thisclose);
if cross(上唇,下顎) then sellshort(1,0,thisclose);
模式在這里設置