信号闪烁
OnBar事件域盘中突破if( High>hprice and cnt =0 ){ Buy(1,MAX(Open,hprice)); cnt = 1; Print(text(cnt));}加入参数cnt控制,也不行,还是在OnBar中执行10次;按道理买入后, cnt =1, 再循环就不满足条件了,为什么还会执行10次呢
OnBar事件域盘中突破if( High>hprice and cnt =0 ){ Buy(1,MAX(Open,hprice)); cnt = 1; Print(text(cnt));}加入参数cnt控制,也不行,还是在OnBar中执行10次;按道理买入后, cnt =1, 再循环就不满足条件了,为什么还会执行10次呢
Global Numeric cnt;
cnt什么数据结构