Expert Advisors and Automated Trading - page 42

I use an expert advisor on a rented VPS. Is it necessary that 'Algo Trading' is enabled in MT5 on my personal computer? I read somewhere that an EA on a VPS is always active, regardless if algo trading is enabled of disabled. Is this true? If I enable algo trading on my personal computer, could my
Hello everyone, I’m working on an Expert Advisor in MQL5 and I’d like to add a feature where the user can select a predefined set of parameters from a dropdown input. Here’s what I’m trying to achieve: Current Setup I have three parameters in my EA: int Parameter1; int Parameter2; int Parameter3;
Hi! I created a script that is able to update one minute calculations every one minute. It is a multi time frame EA that uses both a daily and one minute time frame. The daily time frame updates but the one minute time frame doesn't update when using a demo live account trading. When using the
Hello everyone. I am trying to update my trading bot but i have theses errors : The thing is, my bot is specialized for AUDCAD. How can I bypass this error? Thank you. Hugo
Hi! I ran my EA on my laptop and the MT5 software shutdown but the laptop was still running. Is there a way to check using the trace and log files if my EA script submitted a trade before the shutdown of the MT5 desktop application? I was trading on a [name] demo account
Hello guys, I want to make an expert which checks if a position was closed by the stoploss. As soon as a position is closed by a stoploss I want to be noticed by an Alert. What is the best way to do this? Would you check the order-history with every tick or is it the better way to use OnTrade() or
When including the header <Generic\ArrayList.mqh> I have encountered an array out of range in 'Introsort.mqh' I had to replicate that error using this script: #include <Generic\ArrayList.mqh> int test_array[]; void OnStart () { int size = 1 e7; // 10 millions ArrayResize (test_array, size);
the condition is when below 200 moving average sell only when above moving average buy only when the yellow signal appear take profit if touch yellow band put stop loss above support and resistance level
Please help me what could cause subjected error while running the strategy tester
Hi! when I use the strategy back tester to test a EA, the back test tab doesn't show. Does anyone know what causes this
I'm new here, can anyone help me get rid of this error in the code. thanks Nathan
Dear experienced traders What is the 2 price in visualize test chart? Is that ask and Bid? Does slippage included? Is that possible to check slippage in back test? Thank you in advance and best wishes, Sky
  ea setting help  (4)
Hi All I'm new to forex trading I brought a moving average cross ea to help scalp on the 15min time frame I set stoploss at 15 pips and take profit at 30 but when a trade is open the stoploss is at 150pips and take profit is at 300pips i have tried entering the amounts in deferent ways in the ea ie
  Read and parse an html page  (25   1 2 3)
Does anyone have experience with reading and parsing an HTML page starting with < meta charset= utf -8> to save the table rows in a csv-file. I try to open the already downloaded, local files with int fHdl = FileOpen (fHTML, FILE_READ | FILE_BIN | FILE_ANSI | FILE_COMMON ); This in the sense the the
For science I decided to run the MetaTester 5 Agents Manager on my 9654 EPYC, but it will only run 32 sessions max when this chip has 96 physical cores and 192GB of memory. I did manage to get it to show 64 sessions after a reboot and when I check the program it seems half the sessions are
Hi everyone and happy New year. I have A Trading robot for me (called EA1), it works well in Some specific time range. I only have the execution file (.ex5). I do not have its script (.mq5) I would like to ask you if there is a way like an EA, code, etc. in mql5 to disable autotrading when The
#include <Controls\CheckBox.mqh> CAppDialog app; CCheckBox checkbox_fixedLot; checkbox_fixedLot.Create( 0 ,LABEL_CHECKBOXFIXEDLOT, 0 , 10 , 200 , 20 , 20 ); checkbox_fixedLot.Text( "Use Fixed Lot" ); checkbox_fixedLot.Color( clrBlue ); //checkbox_fixedLot.Color(clrWhite);
Hi Everybody, checking the the log-iole of the strategy-tester I have seen that the tester is synchronizing / loading into the Cores of the computer EURUSD even a complete different Symbol e.g. the DAX is optimized. I tried it on differrent Metatrader 5 -version from two different brokers and
Sure! Here's a rewritten version of your text in better English: Hello, I was wondering if there is a way to fully automate the testing of multiple EAs across 20 different currencies with 7 time intervals. I currently have over 100 fresh MT5 EAs, which means I would need to run tens of thousands of
Hello everyone, I am facing an issue where I cannot upload my EA to the market. I received the following message: "There are no trading operations." ---The EA is definitely working. Below is an image of the backtest on my personal computer. Backtest results from the year 2024 I have thoroughly
After exhaustive testing and even some chatgpt help it would seem that there is a bug with the OnTesterPass(), I'm hoping someone can shed some light or we can get this issue fixed (I'm far far from a great programmer). I'm trying to do an optimization and store some data but it would seem that the
to calculate total profit of all open orders: double totalprofit ; for( int a = 0 ; a < OrdersTotal (); a ++) if( OrderSelect ( a , 0 , 0 )) totalprofit += OrderProfit (); But the above code only work for MT4/ MQL4 How to code in MQL5 instead
I create an inherited class from class CSymbolInfo. I overwrite the Name( const string name ) method, not the Name( void ) method. Than I call the Name( void ) method in the script and it says (warning) "deprecated behavior, hidden method calling will be disabled in a future MQL compiler version" at
Hello! I write into a file with mql5 script #property strict #define FILE_NAME "test.bin" //+------------------------------------------------------------------+ //| Script program start function |
  Chromebook EA  (2)
I am trying to run an ea on my chromebook, its OS is chrome so it can't handle it, any advice? i want to set up a vps too
Hi all How can I send email to an email address in MQL5
I work with Python and an MT5 terminal and it works correctly. I want to expand to 3 terminals with different accounts (3 accounts too) and I don't see the way. I have tried to solve it with a connection to a portable terminal and it gives me an error. path = "F:\MT5 Portable\terminal64.exe" modo
Hi, I´m writing my first Expert Advisor and I have a Problem I can´t solve. My Code looks like this: #include <Arrays\ArrayDouble.mqh> CArrayDouble *test; //This for example does work #include "Class1.mq5" //Contains class MyTrade MyTrade *example; //This
Hi! I am trading binary options and need to optimize for just one goal: Win Rate (%). Nothing else matters. Has anyone created a custom optimization criteria for this, or would be willing to show me how to add this to my EA? Thanks 😊
Hi, Please enlighten my path! I am writing a class to find values of manually drawn trendlines on the chart. However at compiling this class (and the EA ) the toolbox throws an error: deprecated behavior, hidden method calling will be disabled in a future MQL compiler version RateImp.mqh 17 21 Line