Topics
Replies
romiko
30 Sep 2012, 10:36
Referencing Time
Is this ok to use, I use this condition to trade and specfic times. I tried to stay away from the index accessor.
protected override void OnBar()
{
if (MarketSeries.OpenTime.LastValue.Hour >= 21 || (MarketSeries.OpenTime.LastValue.Hour >= 0 && MarketSeries.OpenTime.LastValue.Hour <= 13))
Initialize();
}
@romiko
romiko
30 Sep 2012, 10:29
Automated BackTesting
Hi,
I use VIsual Studio and reference the Calgo API. The ultimate is writing unit tests and integration tests to run algorithms throught and bypass the program itself, this way we can have full testing in Visual Studio. I am keen to offer support if you are willing to add this. Just need an Interface that we can use to send FAKE data series data to. Then use something like NSubstitute or fake the concrete implementations.
e.g. IDataSeries.Returns = new FakeDataSeries ......
The we can instantiate our algorithm, with the FakeDataSeries. All we then need is an event trigger for the onTick event :)
What you reckon?
@romiko
romiko
06 Oct 2012, 13:36
Fixed
I have it working now :)
@romiko