Server Bar Time is skipping?
Server Bar Time is skipping?
25 Nov 2012, 22:04
Hi, I wrote a small robot to check descrepancies I noticed with the timing of the onBar event. it seems to be skipping bars. It also shows up on the chart. Here is the program I used and some screen shots to explain what I mean, do you have any explainations?
using System;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
namespace cAlgo.Robots
{
[Robot]
public class TestTime : Robot
{
private int Count=0;
protected override void OnStart()
{
Print(Server.Time.ToString("MM/dd/yyyy HH:mm")+" *******************************************************************Start************************************************************************");
}
protected override void OnBar()
{
if (Count!=250)
{
Print(Server.Time.ToString("MM/dd/yyyy HH:mm")+" **********************************************************************Bar************************************************************************");
Count++;
}
if (Count==250)
{
Stop();
}
}
}//** End of class **********
}//** End of namespace **********
herp
26 Nov 2012, 10:15
Hi there,
What seems to be the symbol/currency you're using for this?
@herp