我想入场后30秒平仓,用后台的话如何表达,我想是不是可以用全局变量?
请问time0可以记录为全局变量吗?
我试了好像不行?赋值为0
怎么没有人回答呢?
我想入场后30秒平仓,用后台的话如何实现呢?
能举个例子吗?
if 下单条件 and islastbar and 持仓判断 then begin
下单语句;
extgbdataset('shijian',currenttime);
end
if islastbar and 持仓判断 and currenttime>extgbdata('shijian') then 平仓语句;