I was testing my complicated strategy in Sim Mode, but nothing ever fired off when it was supposed to.
So I started debugging, commenting out section by section to see what might have been causing the problems.
I got down to the bare bones, no calculations, nothing at all except the "if this then enter" lines. Still nothing.
So I created a new strategy in Sim that had absolutely nothing but this in it:
protected override void OnBarUpdate()
{
if (Close[0] < Open[0])
{
EnterLong(4);
}
if (Close[0] > Open[0])
{
EnterLong(4);
}
}
Thanks in advance,
Gary

Comment