图表程序化,逐k模式,固定时间间隔1秒
语句大概如下:
GLOBALVARIABLE:mystate = 0;
if (mystate = 0 and some condition)
then mystate := 1;
if (mystate = 1 and some condition 2)
then mystate = 2;
if (mystate = 2)
then begin
buy(1 = 1, 1) //开仓一手,希望马上市价开仓,而不是等待周期结束
mystate = 0;
end;
执行时通过自己的log可以确认执行到buy语句,但是不开仓,PleaceOrder.txt也没有下单记录
请问是哪儿的问题?