Sample of what I am trying to do.
public class HelperClass
{
private NinjaScriptBase ninjaScriptBase;
public HelperClass(NinjaScriptBase nsb)
{
ninjaScriptBase = nsb;
ninjaScriptBase.Bars.BarsUpdate += Bars_BarsUpdate;
}
private void Bars_BarsUpdate(object sender, BarsUpdateEventArgs e)
{
/*** RUN MY ANALYSIS ***/
}
}
Does the NinjaScriptBase class just loop through all the historical data ( i.e. calls the OnBarUpdate override method )? Then when the historical data is processed it cuts over to the realtime data and fires off the BarsUpdate? Should I do the same for my class?
Comment