Correct. That is the new red price line (ASK price) showing almost behind the BID price.
This way you can monitor the trade: a SELL position will only Take
Profit when that red line reaches your TP level. (and not the BID line price)
Create a new SELL position, set TP, observe the red ASK line until it reaches the TP, and you can see what is happening and/or preventing it from
closing. Probably your broker is moving it very fast away from the BID line at some moments.
is an instruction given to a broker to buy or sell a financial instrument. There are two main types of orders: Market and Pending. In addition, there are special Take Profit and Stop Loss levels. is the commercial exchange (buying or selling) of a financial security. Buying is executed at the demand price (Ask), and Sell is performed at the...
Correct. That is the new red price line (ASK price) showing almost behind the BID price.
This way you can monitor the trade: a SELL position will only Take
Profit when that red line reaches your TP level. (and not the BID line price)
Create a new SELL position, set TP, observe the red ASK line until it reaches the TP, and you can see what is happening and/or preventing it from
closing. Probably your broker is moving it very fast away from the BID line at some moments.
Now you can see it, and check it.
Post your reply here after the operation
Thanks for reply! I believe that I've found whats is happening. In order to debug the problem I have programatically invoked the positionClose
method in case of the condition for triggering the TP or SL has been reached and received the message: "UNSUPPORTED FILLING MODE". I follow
the instructions found here:
https://www.mql5.com/pt/forum/189682 and the position has been
closed sucessfully, I suppose the trick were that my broker just accept ORDER_FILLING_RETURN in the filling mode field and this
option was not used in the closePosition method.
Not sure if it is the correct and unique solution for this issue but it's working :)
press F8 for chart properties, Show tab then select "Show ask price line".
Yes, I did it, please take a look at the attached image
Correct. That is the new red price line (ASK price) showing almost behind the BID price.
This way you can monitor the trade: a SELL position will only Take Profit when that red line reaches your TP level. (and not the BID line price)
Create a new SELL position, set TP, observe the red ASK line until it reaches the TP, and you can see what is happening and/or preventing it from closing. Probably your broker is moving it very fast away from the BID line at some moments.
Now you can see it, and check it.
Post your reply here after the operation
dear guys,
use this sample code on MT4 for closing in gap price for both SL & TP
Correct. That is the new red price line (ASK price) showing almost behind the BID price.
This way you can monitor the trade: a SELL position will only Take Profit when that red line reaches your TP level. (and not the BID line price)
Create a new SELL position, set TP, observe the red ASK line until it reaches the TP, and you can see what is happening and/or preventing it from closing. Probably your broker is moving it very fast away from the BID line at some moments.
Now you can see it, and check it.
Post your reply here after the operation
Thanks for reply! I believe that I've found whats is happening. In order to debug the problem I have programatically invoked the positionClose method in case of the condition for triggering the TP or SL has been reached and received the message: "UNSUPPORTED FILLING MODE". I follow the instructions found here: https://www.mql5.com/pt/forum/189682 and the position has been closed sucessfully, I suppose the trick were that my broker just accept ORDER_FILLING_RETURN in the filling mode field and this option was not used in the closePosition method.
Not sure if it is the correct and unique solution for this issue but it's working :)