请问老师,variable直接用于后台交易有没有问题,下面的交易模式有没有问题variable:n=0;
if DYNAINFO(28)=75500 and tholding>0 and n<3 then
begin
tsell(1,0,lmt,75600);
tbuyshort(1,1,lmt,75610);
end
if DYNAINFO(28)=75500 and tholding>0 and 3<n<6 then
begin
tsell(1,0,lmt,75600);
tbuyshort(1,2,lmt,75610);
end
这个是图表交易用的全局变量,后台使用
GLOBALVARIABLE或者extgbdataset