View Single Post
  #1 (permalink)  
Old 12-22-2005, 08:11 PM
trevman2005 trevman2005 is offline
Junior Member
 
Join Date: Dec 2005
Posts: 6
trevman2005 is on a distinguished road
buy order problems

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.
Reply With Quote