Forum

MT5 Build 206x, CustomSymbolCreate Always Fail

Upgraded to MT5 Build 206x, but CustomSymbolCreate function always failed ( error code: 5305). Any comments? void OnStart () { //--- string custom_symbol = "TestSymbol" ; CustomSymbolDelete (custom_symbol); ResetLastError (); if (! CustomSymbolCreate (custom_symbol)) {

[BUG] Convert double to long

MT5 build 2009. Just try following code: void OnStart () { string real_number = "4.467916942e9" ; //double d_amount = StringToDouble(real_number); double d_amount = 4.467916942 e9; ulong l_amount = ( ulong )d_amount; printf ( "amount: %s, %f, %u" , real_number, d_amount, l_amount);

MT5 build 19xx, CustomTicksAdd function alsway return 5310 error

Since MT5 build 19xx, CustomTicksAdd function alsway return 5310 error. Please help me to solve it. MqlTick last_tick[]; ArrayResize (last_tick, 1 ); last_tick[ 0 ].flags = TICK_FLAG_LAST ; last_tick[ 0 ].ask = SymbolInfoDouble ( _Symbol , SYMBOL_ASK ); last_tick[ 0 ].bid = SymbolInfoDouble (

How to get length of enum and item in MQL4/MQL5 ?

How to get length of enum and item in MQL4/MQL5 ? For example, there has an enum definition: enum ENUM_FRUIT {APPLE, BANANA, GRAPE}; Next, I want to use it in loop: for ( int i = 0 ; i < length_of_enum; i++) { Print ( EnumToString (get_enum_item(i))); } How to implement this requirement? I've

How can I get symbol's margin percentage?

MQL4/5 adds new "symbol margin percentage" property , but how can I get this value

Tester agent issus: Local Network Farm doesn't work

Setup PC-A/B/C in same local network (192.168.0.xxx), all PC are running Windows 10 64-bits, MT5 build 1241. Setup Tester Agents service on PC-A, PC-B, ensure service is started and listening ports. From PC-C, add agent via scan or manually, but didn't work anyway. Shell I add some firewall rules on

Why MQL5/MQL4 doesn't provide SYMBOL_COMMISSION property?

Broker may charge commission fee for each deal, also broker may charge it instantly or at the end of trading day/month. Anyway, it's important to know current commission rate before open position

Order Sort Issue in MT4 Build 941

Usually, if I report some issues in ServiceDesk, I can't get response in time. I have to post it here. Sigh... In MT4 Build 941, I created some orders in a sequence "GBPUSD", "EURUSD", "AUDUSD", then I check them by "SELECT_BY_POS" immediately, the result like: order#2, [AUDUSD] order#1, [EURUSD]

Multiple terminals performance issue

On my Windows 10 Pro x64 4GB system, if I ran 5+ MT5(Build 1210) terminals, CPU usage is less than 50%, but if I ran 5+ MT4(Build 926) terminals, CPU usage often occur 90+%. Does anybody meet same situation? If so, how to tuning? Thanks in advance

I noticed that signals service doesn't sync data

I noticed that signals service doesn't synchronize data with my account at broker's side (since 2015.08.17 16:00 GMT). I sent request to ServiceDesk three hours ago, but nobody respond yet. What happened