初学者问题 :怎么判断当前的candlestick 正好结束? How can I know the new candlestick bar comes in start() function?

 

[Chinese]

start()函数的触发周期应该是每个新的tick来的时候执行

吧。
比如开着1小时蜡烛图的时候,1小时内有很多tick。
start()函数就被执行很多次。
那么我怎么判断现在的1小时的蜡烛stick正好结束的时刻呢?

还有大家在做历史数据测试的时候,历史数据是以什么为单位的?
是每分钟的数据?还是每个tick的数据都有?
我想应该不是每个tick的数据吧。
这样的话,无法实现完全真实的历史数据模拟吧。

我是初学,可能问的问题比较幼稚。
请大家多指教。

谢谢 :)


[English]

I'm a new beginner on mql4. and I have the follwing qustion.
Start() function is executed when every new tick comes,isn't it?
In one-hour chart,there will be many ticks in a candlestick bar.
Then how can I know the new bar comes in the start() function?
Thank you very much.

 

请大家多指教阿

拜托~

 
Check Time[0] or Volume[0]. if Volume[0]==1 then a new bar starting.
 

Dear Rosh,

Thank you very much for your reply

And could you help me for another question?

When we do histocical backup data test, what is smallest unit of test data ? 1 minute? or every tick?

原因: