OrderModify error 130 on this code.
You buy at the Ask and sell at the Bid.
- Your buy order's TP/SL are triggered when the Bid reaches it. Not the Ask.
- Your sell order's TP/SL will be triggered when the Ask reaches it. To trigger at a specific Bid price, add the average spread.
whroeder1:
You buy at the Ask and sell at the Bid.
You buy at the Ask and sell at the Bid.
- Your buy order's TP/SL are triggered when the Bid reaches it. Not the Ask.
- Your sell order's TP/SL will be triggered when the Ask reaches it. To trigger at a specific Bid price, add the average spread.
However, it still shows errors 130
OrderModify(OrderTicket(),OrderOpenPrice(),Ask-StopLoss*Point*10,Ask+TakeProfit*Point*10,0,Blue);
What part of "not the Ask" was unclear?
whroeder1:
What part of "not the Ask" was unclear?
Could you explain it based on the above code?
Since I am a beginner, it is difficult to apply the word to the code.
cape1354: Could you explain it based on the above code?
Not the Ask. Not the Ask. What part of "not the Ask" was unclear?
OrderModify(OrderTicket(),OrderOpenPrice(),Ask-StopLoss*Point*10,Ask+TakeProfit*Point*10,0,Blue);
hi guys.
I'm trying to modify an Order, but I always get Error #130.
I looked for other texts, but ...
Different from this code, it is difficult to understand and apply.
So I raise my code.
Please let me know based on this code.