
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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 :)