客服老师这样写可以吗?
我想表达本月盈利2万(不用百分比),然后本月停止交易,下个月继续。(用在图表的5分过夜模型或30秒周期日内)
r1:=barslast(month<>ref(month,1));
r2:=asset-ref(asset,r1)<=20000;(这个地方还用*mindiff吗?)
IF 开仓条件 AND R2 THEN BUY(1,1,MARKET);
(islastbar and timetot0(dynainfo(207))>=time0-20 or not(islastbar)) and time=closetime(0); |
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线走完模式,可以吗? |
不行,必须固定时间间隔
r1:=barslast(month<>ref(month,1));
r2:=asset-ref(asset,r1)<=20000;(这个地方还用*mindiff吗?)
IF 开仓条件 AND R2 THEN BUY(1,1,MARKET);
老师:那个地方地方还用*mindiff吗?