It is necessary to avoid a duplicate working of my Expert Advisor in paralel Charts. For ex, if it is already running in EURUSD chart, then if a user loads it into GBPUSD, it should not work but exit. It is because, my EA is not related to only one instrument or one chart, it works with several of
Will the following action consume 1 activation? For example, currently I installed an EA into my local PC, and then migrated to MT5's own VPS with 1 month subscription. Now I want to get another MT5 's own vps with 6 month subscription. Will changing the mt5 vps result in consuming 1 activation
Could anyone make me a ATR trailing stop indicator for the metatrader plattform or simply provide me with the script. When I define my ATR traling stop it's calculated from this common formula: ATR Figure = $0.08 Last Close = $6.78 3 x ATR Stop = $6.78 - ($0.08 x 3) = $6.78 - $0.24 = $6.54 The
Hello guys, I have an EA that reads data from a txt file and opens positions based on them I am testing this in strategy tester, the problem is when I change the name of txt file it still reads the previous file name and it isn't changed. and when I use the same file name and change the data in it
Hi everybody, I need to get the current datetime in a string, possibly in a SQL format (e.g. 2019-04-07 15:37:02). I've tried three methods of MQL5 standard library: TimeCurrent, TimeGMT, TimeLocal but during backtest they all return the same date that is not the actual date. I need to get the...
I have some functions in a script file some of which are visible and callable from within the same script. Others though always throw the compile error -undeclared identifier. I'm assuming that i have something wrong with programmatic flow. Any help would be appreciated - the Copy File Function is
If your posting code please limit to forum specific MT5 only. Please take a look at a thought on logic for how to detect ranging or trending markets. Any thoughts or idea or other logic that I can implement to detect ranging or trending market would be great to hear. Please discuss your tactics on
import MetaTrader5 as mt5 rates = mt5.copy_rates_from_pos( "EURUSD" , mt5.TIMEFRAME_H4, 0 , 2 ) df = pd.DataFrame(rates) print (df) This code used to return OHLC But now it returns time bid ask last volume time_msc flags volume_real 0 1732176000 1.05466
After the last updates of MT5, I noticed that the MQL5 Debugger is unable to identify Local Variables, thus managing to display only Global ones. Does anyone know how to fix? Or do you know how to report the problem in the debugger
hi, i am searching for a indicator which can stop trading in any session i need, like i dont want to trade in asian session, it does not allow my terminal and ea to take position on asian session , looking for help from your guys
When I published my EA, the automatic verification failed and there was no trading operation.How to solve this
In MT5, in the Strategy Tester, debug tab, if I try and display the values of my "input" variables, it shows a value of "unknown identifier". It used to work fine but just stopped one day around 1 month ago. e.g. for the coded line "input bool testBOOL = true;" when the testBOOL is displayed in the
Hello, I am new to forex trading and need some advice. If I have an account balance of $1000, is it advisable to run EAs on several pairs on a single account, or should I rather divide up the balance into several accounts, one for each trading pair. My fear is that if just one trading pair goes
Hello i just started mql5 python today. I used the example tutorial. They work well but only values (bid price and ask price) are different. For example: when i run example code in "https://www.mql5.com/en/docs/integration/python_metatrader5" on python it prints current bid value as 85.334 and ask
I'm working on an EA and my procedure is that after adding new functionality I compile the EA to check for errors. After doing that 5-6 times and I compile the EA without errors this screenshot is what I see in input parameters. And from the Select Expert list I cant find my EA. I'm doing something
Hello, I would like to understand why some currency pairs, which perform very well and are profitable in real trading with an EA, do not show good results when backtested with the same EA. The backtest results are completely different from the real trading outcomes. What could be the reason for
While updating custom symbols using Service, one can hide/show the custom symbols from Market Watch using SymbolSelect(custom_symbol, false) but there is no way to "release" (detach) the custom symbol without having to call the SymbolSelect(). Unwanted side effect: User can not Hide/Show the custom
Hello, it seems that global variables can not been assigned and inspected. When inspect in debugger, it just says: <not implemented>. Also the value seems not to be assigned. This is a short sample code: int digits= 0 ; double point= 0.0 ; int OnInit () { digits=( int ) SymbolInfoInteger ( Symbol
Hi, I have run backtests of a specific EA on "all Symbols selected in Marketwatch". However, the results are shown individually, and I dont have an overall picture of what would have happened to my account if I had run all those pairs concurrently on a single account. Is there a way of knowing the
Hello there, this is for information. I have recently struggled to convert string to bool in MQL5. Thanks to the tip of a friend, I could resolve it. I want to post it here, in case somebody has the same problem. The source field is a string, which has either "true" or "false". Important, this must
Hi, on MT5 and MT4 is it possible to trade an EA on the M3 timeframe? I dont see this option in trading. However, on MT5 it is possible to backtest using the M3 timeframe. Could you please confirm? Thanks
Hello guys. I'm developing an EA that needs to make requests from MT5 to my external API. To do this on my local machine, I had to enable an option on MT5 and register my server URL. My question is: If I use the MetaTrader VPS to run my EA, will it be able to make external web requests
Guys does anyone know why i am getting this error . 'period' - cannot convert to enum new to programming . thanks a lot
Hello. I have created an EA but it does not open operations and when I manage to get it to operate, it only opens sell or only buy in each tick, in a few minutes it opens thousands of operations, I want to know how much it costs to review and correct my code
Hi, I've been using a utomated algo trading fulltime for years (though pretty new to MetaTrader). I'm backtesting a demo of " Bitcoin Robot " and I'm seeing something I've NEVER seen before: the EXACT same trades no matter WHAT candle timeframe I specify. M5? M15? H1? D1? All the IDENTICAL 406
How do I put the ex5 expert files or the closed code indicator correctly in the related post? In which category should I share
Hello everyone. I came across a strange behavior where there were wrong results in non-visual backtest. Finally I realized that retrieving custom indicator values using CopyBuffer on every new tick(up in OnTick function) resolves the issue. Does anyone have a similar experience and can you make it
Hi, I'm experiencing a problem with the CustomRatesUpdate function. The custom chart "breaks" and I get undocumented error messages in the "Journal" tab. The problem surfaces very often (not always) when the server time goes from one day to the next. Here are the error messages: 2021.01.22
Hello everyone, I’m trying to create a new user account on the MT5 server using the following Python code, but it’s not working as expected. The connection to the server seems to succeed, but the user creation process either fails or does not return the expected result. Here is the full code I’m
Hello there, I'm trying to save some values to file for analysis. First, I get the open and close times for each week, and then I use them as the range to find the day of the week with the highest and lowest price. That works fine but for a few iterations. For this sample, I was collecting 52 weeks'
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.