I am trying to create a strategy that trades two instruments at once based on each other's price movement. I have the following:
if (BarsInProgress == 0)
{
if (CrossBelow(Close, Close[2], 1)) EnterLong(1, 1, "Entry for instrument B");
}
The code was able to compile, but is not executing anything.
Thank you
Comment