Коллеги!
Помогите разобраться с BarsInProgress (в соответствии со справкой):
protected override void OnBarUpdate()
{
// Checks if OnBarUpdate() is called from an update on the primary Bars
if (BarsInProgress == 0)
{
if (Close[0] > Open[0])
// Do something
}
// Checks if OnBarUpdate() is called from an update on MSFT 3 minute Bars
if (BarsInProgress == 1)
{
if (Close[0] > Open[0])
// Do something
}
// Checks if OnBarUpdate() is called from an update on AAPL 1 minute Bars
if (BarsInProgress == 2)
{
if (Close[0] > Open[0])
// Do something
}
}
К чему обращается BarsInProgress ==0, BarsInProgress ==1, BarsInProgress ==2? Что такое 0,1,2?
Спасибо.
Помогите разобраться с BarsInProgress (в соответствии со справкой):
protected override void OnBarUpdate()
{
// Checks if OnBarUpdate() is called from an update on the primary Bars
if (BarsInProgress == 0)
{
if (Close[0] > Open[0])
// Do something
}
// Checks if OnBarUpdate() is called from an update on MSFT 3 minute Bars
if (BarsInProgress == 1)
{
if (Close[0] > Open[0])
// Do something
}
// Checks if OnBarUpdate() is called from an update on AAPL 1 minute Bars
if (BarsInProgress == 2)
{
if (Close[0] > Open[0])
// Do something
}
}
К чему обращается BarsInProgress ==0, BarsInProgress ==1, BarsInProgress ==2? Что такое 0,1,2?
Спасибо.