| || |
Questions on MT4 Error 130 [Invalid Stops]
The purpose of this thread is to get answers to questions I have regarding MT4 error 130 [Invalid Stops] when I place either a OP_SELL or OP_BUY that has a Stop Loss & Take Profit specified on the OrderSend(). I am not looking on how to solve this problem. I have read enough posts to know that it is recommend to enter the OP_BUY/OP_SELL with no SL & TP. Then enter a OrderModify() with the SL & TP which will be picked up on the next tick.
Rather, the purpose of this thread is to delve deeper, to understand why brokers impose this restriction. I want for this post to be instructive, rather than just providing a way out from the problem. I would like to develop an understanding as to the rationale on why I have to submit two orders to perform one operation, the buying or selling an underlying instrument.
I hope someone with information on this topic will provide insightful information as to why this is the case. I do believe that appropriate answers on this topic will help those who have had to deal with this particular problem.
Opportunity is that which is realized an acted upon, by those seeking for that which is hidden from the view of others. SDG.
MarketInfo will tell you minimum distance allowed to put stop and takes profit that your broker allow.
MarketInfo - MQL4 Documentation
use MODE_STOPLEVEL parameter
I add content to the DailyFX Trading Community
Perhaps there is a prohibition on enter the SL and TP levels at the opening of a order.
Tags for this Thread
Disclaimer: Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts. Any opinions, news, research, analyses, prices, or other information contained on this website is provided as general market commentary and does not constitute investment advice. Forex Capital Markets LLC. will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.