请老师帮忙:
当天模型盈利达到30点后,平仓并停止全天交易,的模型怎么写?
variable:c1=1;
r1:=ref(asset,todaybars);
r2:=(asset-r1)/300>30;
if r2 then
begin
sell(1,0,-----)
sellshort(1,0,-----)
c1:=-1;
end
if 开仓条件 and c1>0 then //在开仓条件中加入c1>0的条件
if time>=151500 then c1:=1; //在收盘前将c1重新赋值1
这个能用在图表吗?还有r2:=(asset-r1)/300>30;为什么除300,是用在股指上吗?

此主题相关图片如下:qq截图20130703101847.jpg