Forum

the Alerts window and sound not working in Metatrader 4

Hi I create Custom Indicator for meta trader 4. In this Indicator Users should get the text alert in alert window and the alert sound should play too in special situation . ،his is worked perfectly in my and some of my friend system, both in live market and the simulation. but in one of the system

macd classic in mql5

hi I want create MACD Classic in MQL 5. in this macd the signal line also should the create with Mode_EMA. (all of other indicator i find the Signal line in sma mode and can not be changed). My entire code is like below. I do not have the syntax error, But the indicator not run. please help

how can get user system information in both mql4 and 5?

Hi I write some Custom Indicator in MQL4 and MQL5. I currently use account number and broker name so that each indicator can be executed on only one account. But I have to change this value for every user who wants to buy my indicator. For this reason, I want to take the serial number of the user's

What causes error on my EA?

Hi i programming EA and it is work correctly in demo account, But when i want run it on real account i get the error 10004 and 10021. I read this link " https://www.mql5.com/en/docs/constants/errorswarnings/enum_trade_return_codes " But the definition of some error is not clear and i do not

how can close order with ticket?

Hi I try create EA. in my EA every open position ticket save in array and close with their ticket too. But i got some error and i do not know how to do it. first: this is my open trade function. from my source for training MTRequest get error. also i do not know how to get ticket after position

How show indicator on EA with mql5 on meta trader 5?

Hi I try Create some EAs base on my custom indicator and ichimoku for meta trader 5, But when I run my EAs on strategy tester or real chart the indicators not show. I try ChartIndicatorAdd from this link but not working( https://www.mql5.com/en/forum/ea/new_topic ). how can fix this problem? please

how calculate volume position?

Hi i want create EA that calculete entry volume for each postion according the risk percentage. i use belowcode: Input_Volume= (((UserBalance*(Risk_Money/ 100 ))/(Stoploss_point/ 100 )) * ( SymbolInfoDouble ( Symbol (), SYMBOL_TRADE_TICK_VALUE ))) / ( 100000 / AccountInfoInteger ( ACCOUNT_LEVERAGE

How to use global data in mql4 and mql5?

Hi i want my global data in too many chart as once. For example if i have variable name "test" in my custom indicator and in chart one test data equals "5" i want get this data from my indicator or EA from another chart, change and use them. I find this two link for mql4 and 5 "

how to control user indicator buffer in mql5?

I created an indicator that is drawn on only a part of the chart according to the user's request and the values before and after it are filled with Empty_value so that they are not displayed. This section works well; But I need it when my indicator is active. If the user adds another technical or

how can use custom indicator in EA?

Hi i have an .exe file of custom indicator from my friend. But this indicator seems to have a password and encryption. how can i use this indicator in my expert