Forum

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

how calculate indicator only once with each new candle?

Hi i Want calculate my Indicator only Once Per each new candle. I use the code in the Image Blow but the code run on each tick. how can fix this? please help

how to prevent restart object in mql5?

Hi I want create indicator with some objects that users can select one of them and change the position as they like. I use this code but when the user change location, the object location or time frame change, object instantly back to default . how can prevent this? Probably because of time[0]. I do