https://www.cashbackforex.com/en-us/school/tabid/426/ID/560737/pending-orders-with-the-ordersend-functionอาจติด พวกค่า spread
OrderSend(), OP_BUYLIMIT, Lots, Ask - PriceLevel * Point, Slippage, Bid-StopLoss *Point, Bid+TakeProfit*Point, "EAName", MagicNumber, 0, Blue)
OrderSend(), OP_SELLSTOP, Lots, Bid + PriceLevel * Point, Slippage, Ask+StopLoss *Point, Ask-TakeProfit*Point, "EAName", MagicNumber, 0, Red)
การเปิดอาจต้อง อ้างอิง พวก Ask/Bid และ Point ด้วย
ปล. การเปิด order ยังมีปัญหาอย่างอื่น link หลุด , server down ขณะเเปิด order มีคนเชียนเป็น lib ให้เรียกใช้แล้ว ลอง search google
LibOrderReliable_v1_1_4 ดูครับ แล้วเก็บไว้เรียกใช้ทีหลังก็สะดวกดีครับ