请问一下如何控制EA中的一段代码每隔一个周期执行一次?
local_e = 0;
local_loopcount2 = 29;
for (local_loopcount1 = 0; local_loopcount1 < upto30counter; local_loopcount1++)
{
local_e += array_spread[local_loopcount2];
local_loopcount2--;
}
高手能翻译下吗{:soso_e165:} |
|
|
|
|
if (iTime(0, PERIOD_M5, 0) == nowtime)
return(0);
nowtime = iTime(0, PERIOD_M5, 0);
if (iTime(0, PERIOD_M15, 0) == bandTiempo)
return(0);
nowtime = iTime(0, PERIOD_M15, 0);
.....................诸如此类 |
|
|
|
|