客服老師這樣寫可以嗎?
我想表達本月盈利2萬(不用百分比),然后本月停止交易,下個月繼續。(用在圖表的5分過夜模型或30秒周期日內)
r1:=barslast(month<>ref(month,1));
r2:=asset-ref(asset,r1)<=20000;(這個地方還用*mindiff嗎?)
IF 開倉條件 AND R2 THEN BUY(1,1,MARKET);
if 平倉條件 and not(time=closetime(0)) then begin sell(**)
if 平倉條件 and cc then begin sell(**)
if 平倉條件 and not(time=closetime(0)) then begin sellshort(**)
if 平倉條件 and cc then begin sellshort(**)
(假如5分)用K線走完模式,可以嗎?
不行,必須固定時間間隔