Event Driven Strategies
Designing an algorithm couldn't be easier. There are only two required functions and we take care of
everything else! You just Initialize() your strategy and handle the data-events you
requested.
You can create new indicators, classes, folders and files with a web based full C# compiler and
auto-complete.
We are committed to giving you the best possible algorithm design experience.
public class MyFirstAlgorithm : QCAlgorithm
{
public override void Initialize()
{
SetStartDate(2015, 01, 01);
SetEndDate(2016, 12, 31);
SetCash(100000);
}
//Data event - Every minute, second or tick
public void OnData(Slice data)
{
//Your strategy here!
}
}