Forum

Error 130 without SL and TP

Hello, today while sending a buy stop order on GBPJPY I received this error #130 (invalid stops): 2017.06.07 15:19:35.353 '7626221': order buy stop 0.5 GBPJPY opening at 141.394 sl: 0.000 tp: 0.000 failed [Invalid S/L or T/P] How's that possible since the stop order was sent without SL and TP

A doubt

Is SymbolInfoDouble( Symbol(), SYMBOL_TRADE_TICK_VALUE ) / SymbolInfoDouble( Symbol(), SYMBOL_TRADE_TICK_SIZE ) the same value as SymbolInfoDouble( Symbol(), SYMBOL_TRADE_CONTRACT_SIZE) or I am missing something? Thanks in advance

Internet UTC time

Hello, In my libraries I was used to implement a function called InternetUtcNow(). That function just loaded the page at https://greenwichmeantime.com/time/scripts/clock-8/x.php and read the current UTC time. Now that page is not working anymore and I was searching for a replacement or another

Market Watch instrument position number

Hello, I would like to know if there's a relatively simple (but mql-only) way to find the position number of a given symbol in the market watch symbols list. For instance something like: EURUSD is the 4th symbol, EURCAD is the 12th, XAUUSD is the 24th and so on thanks in advance

Indicator or EA ?

Hello, is there any way to find if a given function from an external mqh is called from a custom indicator or from an expert advisor? Thanks in advance

Halt/Abort a backtest

Hello folk, I was wondering if anybody of you know a reliable way to programmatically abort a MT4 backtest . The point is that if during an optimization pass a given halt condition is met, (e.g. DD > 5% or a custom OnTester() value is over a threshold etc...) there's no reason to continue the test

Account Checking

Hello, I'm wondering if under the new MQL of bulds 574+ is there any way to identify if a given account is just a single trading account or a managed master account (PAMM - MAM etc...). I'm not asking for an IsMam() / IsPamm() function... that would be too easy... but I would be happy even for an