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