this bit of code doesnt seem to buy, any ideas why?
Code:
if(Close[2]<ma && Close[1]>ma)
{
OrderSend(Symbol(),OP_BUY,lots,Ask,3,stop,Ask+profit,"",2005,0,Green);
}
it should buy when a new candle closes above the moving average and the previous closed below it.