Codes

1H EUR_USD for MetaTrader 4

The purpose of this EA is to find good entry in a well established trend. The EA was developed on 1 Hour EUR_USD graph, but I think that the similar concept can works in a good manner on the other crosses too. I’m happy about the drawdown

Forum

Global Variable as datetime

Hi all, is it possible to save a global variable as datetime format? I'm trying with the following code, but I see it as a string. void OnInit () { string d = "TIME_BUY_" ; string e = Symbol () ; string TIME_BUY_ = d + e ; GlobalVariableSet (TIME_BUY_, datetime ( iTime

Are Global Variables deleted from MT5 updates?

HI all, today my MT5 platforms were updated and I lost all my global variables. Could you confirm that global variables are (or can be) deleted following a platform update? I never noticed this before

Memory and CPU usage with many experts

Hi all, could you tell me if memory and CPU usage are the same between these two options? - run the same expert on 10 different charts - run the expert on a single chart, but in this case the expert can trade on 10 symbols indicated as input string. So I can open only 1 chart. Is CPU and memory

problem when market is closed

Hi all, I have the following error when market is closed I tried to fix placing the followng code at the beginning of the expert, but it doesn't work. void OnTick () { if ( SymbolInfoInteger ( Symbol (), SYMBOL_TRADE_MODE )== SYMBOL_TRADE_MODE_FULL ) { Could you help me? Thank you

CFD expiration date

HI all, how can I recall CFD expiration date indicated in properties window? I tried with SYMBOL_EXPIRATION_TIME but I seem it's not correct. Thank you

reason for error 4756

Hi all, I'm trying to open a sell stop order with the following parameters request_3.action= TRADE_ACTION_PENDING ; request_3.type= ORDER_TYPE_SELL_STOP ; request_3.price=Entry_Price; request_3.magic= 1 ; request_3.symbol= _Symbol ;

Virtual alloc error with custom symbol generator

Hi all, I have a problem with an indicator that generates a custom Symbol . When I apply the indicator on a chart, in some cases I have the attached error. Could you explain what kind of errori is it? I didn’t find discussions or articles about it. Thank you

previous bar Sunday

Hi all, could you suggest a method to detect if previous bar is Sunday? Thank you

avoid notification @ log in

Hi all, is it possible to avoid the mobile notifcation when I log in to mql5.com? Thank you

ORDER_TIME_DAY not respected

Hi all, I'm testing an expert on D1 time frame in which I wrote the following condition to open pending orders request_type = ORDER_TIME_DAY I see that in some cases pending orders are not deleted at the end of the day. What could be the reason? Thank you