Forum

ComboBox control not working in MT4?

Does anyone have any experience in using the ComboBox control ? I'm trying to use the ComboBox control that is part of the standard MQL4 library. Creating it is very simple, but when I click it to open the list, it doesn't open. I do .Create, then .AddItem a few times, and it shows fine on the

Indicator visualisation has no effect

All indicators have a "visualisation" setting, which should allow the trader to set which timeframes he wants an indicator to appear on, however I'm seeing all custom indicators being initialised on all timeframes regardless of the "visualisation" settings. Is this a bug or am I missing something

Z-Order has no effect?

The object property OBJPROP_ZORDER is used to set the click priority of the object, according to the docs. I have tried settings the Z-Order of a number of different objects to anywhere between 1 and 999999999 and it still has no effect on the click priority. Is this a known issue or am I missing

Unicode not fully supported?

The new MQL4 introduced a function named ShortToString which is supposed to convert a Unicode character code to the equivalent character, but when I use it all I see for the most part is a question mark instead of the character. If I use a label set to use the Arial font, I should get the character

OrderSelect fails on existing ticket numbers

I have just come across a seriously weird issue. If I delete a pending order , 9 times out of 10 I can't do an OrderSelect on the same ticket number afterwards. I'm really puzzled why selecting an existing (yet closed) ticket number would fail??? Don't ask me why I'm selecting the order again, it's

Differences in error codes

Looking at the error code reference table I see 4 different error codes that all have to do with an invalid price/quote. I'm wondering what the difference is between codes 129 (Invalid price), 135 (Price changed), 136 (Off quotes), 138 (Requote) as they seem to all imply there's something wrong with

Slippage not working as expected on brokers with extra decimal

I have noticed that slippage doesn't seem to work (or the broker doesn't care) when I'm placing orders on a broker who uses the extra digit. If the market price is 1.23456 and I try and place an order at 1.23450 it get " invalid price " even with a slippage > 10, that can't be right. Am I missing

MetaTrader can't do simple math?

Hi, I'm working on a trailing stop EA, and for some reason I can't get the platform to compare numbers correctly, and it's driving me up the wall. Before trying to set a new SL value, I check to see if the new calculated SL is great than or lesser than the current SL, depending on it being a Buy or

No StopLoss on market order but I still get Error #130 Invalid Stops?

Hello, I use an EA to place orders on multiple accounts and sometimes I get Error #130 Invalid Stops on market orders that have no SL set (SL = 0). How can MT throw a StopLoss error when there is no stop loss set? It doesn't happen on every trade, and not on every platform/account. Any help or