客服老师这样写可以吗?
我想表达本月盈利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线走完模式,可以吗?
不行,必须固定时间间隔
金字塔也有,需要专业版,k线走完提前下单模式
r1:=barslast(month<>ref(month,1));r2:=asset-ref(asset,r1)<=20000;(这个地方还用*mindiff吗?)
老师:那个地方地方还用*mindiff吗?