Expert Advisors and Automated Trading - page 7

Hello everyone, I'm Abel Nicholas, based in Los Angeles, and I’ve been exploring automated trading for a while now. I’ve worked with some basic strategies but am eager to enhance my skills in MQL5. I’m particularly interested in developing custom indicators and optimizing Expert Advisors. I’m
[Deleted]
  Useful money management expert  (50   1 2 3 4 5)
Hi everyone, As any real trader knows money management is a key part to successful trading. I have spent many hours coding the expert below and have decided to share it with the forum as a thanks for all the knowledge I have obtained from it over the years. This is not an auto-trading expert, it...
Hi, Stuck into a problem. Using the standard MoneyManagement modules results in OrderCalcMargin always returns true and margin 0. in AccountInfo it's that call OrderCalcMargin (trade_operation,symbol, 1.0 ,price,margin) which with further execution leads to the usage maxvolume of the symbol
Hi I'm in the process of implementing the calculation of the "secure f" but there is something I don't understand. I've already read the article explaining the algorithm and I understand it almost entirely. But there is still one part that is not entirely clear. The article I'm talking about is "
I would like to add a news filter to my EAs. My plan is to build a service that will pull data from the brokers economic calendar and populate a local database. EAs would then use this database to avoid trading during certain news events; both for live testing and back testing. Unfortunately, I
// Define the necessary global variables double monthlyProfit = 0.0 ; // Tracks monthly profit double ProfitTarget = 1000.0 ; // Monthly profit target bool allowNewTrade = true ; // Flag to allow new trades datetime monthStart; // Stores the
I copied the entire installation folder to a new computer, logged into my account, and started backtesting. In debugging, the value of any arithmetic operation became 0. See the figure below for details. Does anyone know what the cause of this error might be
So i want to code EA that will open 1 trade every time new candle opens, can anyone please tell me how to do it
HI, recently I noticed all my ifs works in code and when i set break points it does stop at them but in the watch list it shows them as false as i showed in picture below and here is the code that does print x=3 which is correct but if you set break point at the print you will see in watch list that
Hi everyone, help me please. When I ran the EA trading system(MT5), I found a message in the journal tab that said " take profit triggered #2 sell 0.02 XAUUSDm 2042.486 sl: 2058.181 tp: 2036.359 [#3 buy 0.02 XAUUSDm at 2036.359]" This event represents the automatic opening of an order. When the
Is it possible to send order to MT4/MT5 from Ms Excel? thankyou for your answer
Hello everyone, I’ve developed an Expert Advisor (EA) that uses a simple neural network architecture to make buy and sell decisions based on historical price data. The EA includes some interesting features, such as dynamic stop-loss adjustments using the ATR indicator and a momentum-based
EAs are very slow to optimize and even backtest . Having a lot of criteria and indicators must not help. If a more powerful computer could solve the problem, but I doubt it, since only one of the 8 cores of the processor is used. Is it the broker that limits the speed or MT5 itself? The speed is
I was hoping someone knew this answer. How many bars (candles) of historical data can MT5 do back-testing on? For instance on TradingView the limit is 20,000 bars. Thank you in advance for your knowledge
Hi There, Can anyone please advise why i have this message when i start my MT5 software? Tester: "cloud servers switched off". I cannot use the strategy tester because of this issue. Thanks
MQL5 seems to be having some issues with calling functions, despite correctly not only including the the file with which the function is situated in #include <RunDiagnostics.mqh> but I have also correctly instanted the required variables, or in this case, no variable needs to be passed. Having been
Can anyone tell me how to report the profit as a sum of multiple orders that have the same stop loss and/or take profit on the chart as text? I'll give you the program I developed, but it doesn't work for me. On the contrary, it works in the tester, I didn't understand anything void
Hello fellow traders, I'm working on the HLINE alert trigger function of my EA, and I've stored as a ressource WAV sound files for a few symbols, and wanted to use the Alert() function for when the audi file is not found. But I realized that when you use Playsound with a resource file, it will
I will show the part of my code that im having trouble with any tips would be much appreciated. Have a nice day. void OnTick () { if (handleIndicator == INVALID_HANDLE ) { handleIndicator = iCustom ( _Symbol , SuperSignalTimeframe, "IndicatorName", SuperSignalPeriod1
I started coding the EA in MQL4 but decided it was time to switch to MQL5. I want to write an EA which will take trades off support and resistance levels , but will also use protective hedges to guard against loss in case the trade doesn't go the direction it is supposed to. The protective hedge
Bitcoin market is open ! But I'm launching on History and ctrade say - Market closed . 2024.09.28 11:47:39.054 2024.09.01 00:00:00 failed market buy 0.01 BTCUSD [Market closed] 2024.09.28 11:47:39.054 2024.09.01 00:00:00 CTrade::OrderSend: market buy 0.01 BTCUSD [market closed]
Hey all, I wonder if anyone can help me. I am trying to launch MetaTrader 5 using a batch file and then loading a custom ini file that I have created using the information on the https://www.metatrader5.com/en/terminal/help/start_advanced/start#command_line page. This is the current information
hello I have a bug when I want to create a robot I tried everything with 10 of code or account settings but on several accounts or brokers the problem persists wrong parameters acount function used is rsi ima ect can you help me
Dear I want to optimize my trading robot in MT5, I need a computer, and I need to suggestion a configuration to build a PC that is best for MT5 optimization
I have this MQL4 code: Which I generated using ChatGPT and then read resources and help groups online and fixed the errors Now It's giving 0 errors and 0 warnings, but still not working as expected Here is MQL4 code: //+------------------------------------------------------------------+ //|
#define EXPERT_MAGIC 123456 // MagicNumber of the expert //+------------------------------------------------------------------+ //| Closing all positions | //+------------------------------------------------------------------+ void OnStart () { //---
Trying to write code in python to download MT5 historical tick data into a CVS file
Hi All, I need help in fixing errors and warnings on an AI EA. The AI EA is based on Bollinger bands BB_NONE, // no BB strategy BB_SQUEEZE, // BB squeeze strategy BB_BREAKOUT, // BB breakout strategy BB_TREND, // BB trend strategy BB_REVERSAL, // BB reversal strategy
Hello all, I want to sell an EA in the Market. Can I use this code below, or is this not allowed by the rules? thanks #include <WinAPI\winapi.mqh> #define MT_WMCMD_EXPERTS 32851 #define WM_COMMAND 0x0111 #define GA_ROOT 2 //+------------------------------------------------------------------+ //|
Hi, I am seeking your help, I am trying to upload an EA that trades news to MQL5, I am having the following error: test on EURUSD,H1 (netting) tester_file 'Calendar.bin' is not exist tester_file 'Calendar.bin' is not exist strategy tester report 6 total trades I am using the following library to