I have read the help file on multiple instrument strategy development. While I found the information very helpful, I still have some lingering doubts.
The strategy that I have in mind is dependent on several custom indicators that have been developed in NT 6.5. This strategy will run on a basket of 50 stocks for the daily timeframe. If I understood the help file correctly, the OnBarUpdate method will look like this:
protected override void OnBarUpdate()
{
for (int i = 0; i < 50; i++)
{
if (BarsInProgress == i)
{
CustomIndicator.m_CurrentBar = CurrentBar; //needed for ref. of close, open, etc.
if (CustomIndicator(BarsArray[i]).GetX(CurrentBar) > SOME_CONSTANT)
{
EnterLong();
}
}
}
Is this code snippet an accurate reflection of what needs to be done for a multiple instrument strategy?
Thanks very much in advance.

Comment