Thread: How to code?
View Single Post
  #50 (permalink)  
Old 04-09-2006, 01:13 PM
pengie pengie is offline
Member
 
Join Date: Mar 2006
Posts: 58
pengie is on a distinguished road
The problem is with your stoploss. Your OrderSend statement should be written as:

OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Ask-StopLoss*Point,Ask+TakeProfit*Point,"TH_Buy",16384 ,0,Green);

Also, for some brokers, it is not possible to use 10pips as takeprofit. You may have to increase it to 15pips.
Reply With Quote