Expert Advisors and Automated Trading - page 26

I want to launch/run 40 times the same EA (same code) to different (40 charts/symbols). Is there a way to automatize this process (or run them all at once), or would I have to launch one after another, manually? I really looked for an answer but didn't find it. Finally, is there any inconvenient in
Hi dear I wrote an price action strategy and it comes with 67% winrate How can i create the dataset for that strategy and make machine learning model for that and lable the dataset
Hello everyone, I'm new to Metatrader 5 and had a question about backtesting . I used data that my broker provide to do backtesting but history quality indicate 98% instead 99%. May I know why this is happened? Currently I backtest SPY instrument on H1 timeframe using 1M OHLC data
what does this mean(title)? and how can I fix this? handle_iFibo= iCustom ( _Symbol , PERIOD_CURRENT , "/Indicators/Free Indicators/Fibonacci Channel" ); if (handle_iFibo== INVALID_HANDLE ) { //--- tell about the failure and output the error code PrintFormat ( "Failed to create
hi, want to run my EA on MT4 on vps hosting how to proceed
Please help debug this code, I have tried for days and failed. The EA is meant to draw these sessions every day but it only works once when I try it in the strategy tester. When I forward test it seems to work. Where would my error be
//--- input parameters input int StopLoss= 30 ; // Stop Loss input int TakeProfit= 100 ; // Take Profit input int ADX_Period= 8 ; // ADX Period input int MA_Period= 8 ; // Moving Average Period input int EA_Magic= 12345 ; // EA Magic Number input double
  how to use ChartRedraw()  (14   1 2)
How do I use ChartRedraw()? I have my comment/OSD function like so... and eqplus iStartLots and Spread is in ea inputs. void osd2() { Comment ( "\n Profit Target = $" + DoubleToString (eqplus, 2 )+ ", Minimal Profit per Trade = " +
My EA adds some MTF indicators to the chart and in order to see them after the backtesting, I have to add the EA to the tester chart manually, everytime the backtester finishes testing. this manual loading taking me some amount of time for saving the backtest settings then loading them into the EA
I need a mql5 code for remove expert advisor from the chart if the conditions are false
Hi there! I have a template that comes with an EA. When I apply this template manually (right click on chart > templates), then Algo Trading is activated in the EA. But when I apply this template using ChartApplyTemplate(), Algo Trading is off (in the EA settings). Is there a way to load a template
@MetaQuotes , there seems to be 2 partially contradictory sources of information with regard to Type of Execution vs. allowable Fill Policy types - the information in both sources differs for IOC and Return fill policies. Which one is the correct one? 1) MQL5 Reference , namely in
I am trying to learn how to close a position. I found at least a dozen examples, more like two dozen, but it seems that ALL of them either require CTrade or present a solution that involves iterating over many open orders and selecting by position, which confuses me. Can someone please provide an
  Mt4 to telegram  (1)
Hi, I'm looking for an EA that sends my trades as a signal to telegram. I'm looking for one that supports multiple TP's as all the ones I've found only support 1 tp. Thank you 😊
Here is a step by step guide for buying, installing, testing and using a Metatrader 5 Expert Advisor (Robot, Bot are whatever): 1. First make sure that you have the necessary funds required for your purchase in your MQL5 account, its always easier to pay with your MQL5 balance, than using a credit
Hello, I am doing a backtest of my EA with MT5 and some optimisations settings. When I go to to Agents tab, I see that 7 processors over 8 have their status on Finished. Only one is working, and I still have 200h of backtesting. I don't understand why all the processors are not 100% used . Can
I do an optimization and the result is quite good, lots of parameter showing green color. But when I change to 3D graph most of the color is change to red color. Is there a condition that determine the color change between the 1d graph and 3D graph? Here's the result of 1D graph and here's what 3D
  Make coding  (4)
Can anyone help me? I want to create code using a Moving Average that compares the closing price of each candle. Example: Buy if the closing price of candle 0 increases x% from the closing price of candle 1, and Sell if the closing price of candle 0 decreases x% from candle 1
Hi guys, how do I deactivate an EA's license. I tried to delete the EA from the trading terminal but it didn't work
Good day everyone. Firstly, I appreciate everyone who have contributed on this forum. Thanks a lot I need help with a particular arithmetic. I want to add some values together In mql5 , the value might be currently unknown, But would be known during the execution of the code For example, If want to
Hi there, at the end of my EA's OnTick() function I wrote a short line to get the latest error that occured: if ( GetLastError ()!= 0 ) { v_err = GetLastError (); Print (v_err); ResetLastError (); } Although I am resetting it, on
for the life of me, I cannot accurately get the upper and lower bollinger bands. I apply my code and when referencing with the same input settings on the real-time chart, they don't align! The upper is in sync with the middle bollinger line (average). Here's my code: - CopyBuffer function should be
Hi guys, this is topic often discussed. However, I cannot get the strategy tester started in batch mode from the command line. Can anyone held? Here is my ini file: [Common] Environment=--- MQL5Login=programminggeek MQL5Password=--- Login=--- ProxyEnable= 0 ProxyType= 0 ProxyAddress= ProxyAuth=
  make a new EA  (1)
i want to build a Ea for MT4 and MT5 but i dont have the skils...can somebody help me for free...? is a very simple EA
Good morning, I would like to know if anyone has already tried to write some MQL5 code to determine the high and low of the current candle. Thank you
  Bug in strategy tester  (35   1 2 3 4)
Hi there. I searched the forums but could not find an answer or similar existing topic. The issue I have for a while with MT5 is freezing after selecting "Run single test" from optimization results window. The version I have is latest version from my broker (version 5.00 build 4153 dated 22 Jan
I am trying with this part of code to add to a string array and to testers marrketwatch forex and crypto. I do not understand what i am doing wrong.. litle help? string symbolss[]= { }; int OnInit () { int total= SymbolsTotal ( false ); Print (total); for ( int i=total- 1 ; i>= 0 ; i--)
Hi, Can anyone help with calculating indicators within a for loop. I am trying to call out the moving average and atr indicators within a loop of bars in a chat. I already calculated the indicators handles and set the array for each indicator as a series in the "Oninit" function. It keeps saying
Hello, I've Googled extensively for this answer, but can't find it! I've just setup a signal, and obviously the initial lot sizes are based off the % set of the initial deposit, but is this always the case? Ie, the lots don't get bigger as profits are made? It clearly says "use no more than x % of
{ m_trade.PositionModify( _Symbol ,sl,tp); Print ( "ch slb sl=" ,sl, " tp=" ,tp); } // Normalised like: double tp=NormalizeDouble(m_position.TakeProfit(),Digits()); This is inside an EA working with cfd