private SMA sMAPeriod;
and then:
sMAPeriod = 200;
and then:
if (Close[0] > sMAPeriod [0]))// cross up
{
EnterLong( getQty(), "LongEntry" );
why I;m getting that error? I just want to buy if the close of the last bar is above the 200 period SMA.
Thanks
Comment