// check new bar
static datetime last_time=0;
datetime current_time=iTime(NULL,_Period,0);
if(current_time != last_time) // if new
{
Print("new bar");
}
last_time=current_time; // update last_time
检查是否有新柱产生:
作用是检查是否产生新柱 这是一个类文件,可作为类使用,也可以复制到EA或脚本中使用
作者: Mage He