top of page

Ordersend Error 130 – Err_invalid_stops

If you’re getting the Metatrader error: Ordersend Error 130, it might imply a couple of various things are going improper. First, it would imply your cease loss is just too near the market value. Second, it would imply your take revenue is just too near the market value. And Third, if you’re inserting a pending order, you is likely to be attempting to position it too near the market value. What must you do?

Because there are various totally different foreign exchange brokers with totally different account sorts on the market, it’s important to verify the present account’s market data inside your professional advisor to seek out out the minimal cease degree distance you may have. Some accounts are three pips, whereas others is likely to be 15 pips.

The perform you’ll use known as MarketInfo. It requires two parameters, SYMBOL & TYPE. SYMBOL is the foreign money pair or safety you wish to entry and TYPE is the request identifier to specify the account data you want to return. Since we’re on the lookout for the minimal cease degree, we’ll use the kind, MODE_STOPLEVEL.

double MarketInfo (string image, int sort)

EXAMPLE:

int MinStopDist = MarketInfo(“EURUSD”,MODE_STOPLEVEL);

Once you may have this knowledge, you wish to be sure to don’t attempt to place cease losses or take income nearer than this minimal distance from the market value. Additionally, you do not need to attempt to place pending orders nearer than this distance from the present market value. If you’re utilizing an professional advisor that you just do not need the supply code for, you’ll want to look within the enter worth settings and see if there’s a cease loss or minimal cease loss setting that you could change.

1 view0 comments

Recent Posts

See All

Comments


bottom of page