Expert Advisors and Automated Trading - page 4

string symbols[] = { "GBPUSD" , "USDJPY" , "GBPJPY" , "GBPCAD" , "UK100" , "Ger40" , "US30" , "US100" , "US500" , "XAUUSD" }; First of all, what i'm trying to achieve is a bot which can run on multiple currency pairs. I've defined an array called symbols[] as per the line above. Then I have this
Hi everyone, I'm in search of an indicator that can be applied to the equity or drawdown chart during backtests and in live trading (e.g., using a demo account). The key features I'm looking for are: The ability to plot a Simple Moving Average (SMA) on the equity or drawdown curve. If the equity or
Hi, I hope someone can shed some light on this.. I am trying to make a simple EA using the change in momentum using heiken ashi candles. The basic jist of what im trying to do is if there is a red candle the EA will place a trade under the red candle and await to see if the next candle will trigger
Hi guys I was trying to run a backtest on a fully functional EA I coded, and for 2 days now I get this error. What does this mean? what can I do about this? I have seen Array out of range errors in the past, as well as "divide by zero" errors. Never had I seen a "unknown error". Any idea what I can
So I have been watching a very interesting video series by Darwinex about improving your EA to reflect backtester results in live charts. It seems that the best method is controlling bar opening prices. You program the EA in a way that it processes only bar open tick so this will reflect on a live
Purchased an indicator with a limited number of activations(5 activations). Running MT4 on an iMac and sometimes because of wine server updates, it requires me to download and reinstall MT4 again for mac on the SAME machine. The activation of the purchased Indicator increases because it doesn't work
I connect to the MT5 terminal using the MetaTrader 5 library, but I encountered an issue: when a user enters incorrect credentials in MetaTrader 5, the terminal becomes unresponsive, repeatedly attempting to connect to a nonexistent account. This prevents users with valid credentials from logging
Hello traders! I hope someone can help me with this... I'm a supply and demand trader with a fulltime dayjob. I finally got the hang of my strategy but the problem is, I don't have much time to watch the charts because of my job. Now, what I want to do is create an Expert advisor that will open
Is there any way to collect market close time so we can close positions before market closes? No matter general or specifically for each instrument, to prevent market gaps' affections. It is MQL5 question, however if you have any solution for MQL4 too, it would be double appreciated
Hello, I am scripting an EA to send post request using sockets in mql5. void OnTick () { Print ( "history-->" , HistoryOrdersTotal ()); int socket = SocketCreate (); // Check the handle if (socket != INVALID_HANDLE ) { // Connect if all is well if ( SocketConnect (socket
Hello! Im trying to change the values of the RSI Oversold and Overbought levels on the Strategy Tester , but I don't see any options. The standard values are 70-30 so the indicator shows those. Is there any way to change it? Heres the EA Code part where I calculate the RSI. (OnInit) I have the other
Hi! Currently performing a slow complete optimization on my EA, but quite astonished to see that the number of passes covered in the forward phase is much lower than in the optimization phase ( Optimization Results ). I assume MT5 only considers the best passes of the optimization phase to assess
Dear friends! I have a unique trading algorithmic strategy and I want to let other people to earn with me. So I have two ways for this: 1. To start broadcasting signals (less preferable). 2. To get account credentials from clients and run EA on dedicated VPS. I know that there are some EAs and
Migration to virtual hosting failed: DLLs are not allowed. expert advisory uses Kernel32.ddl, please remove the expert from your charts and migrate again. Never had this problem before. Can anybody help
Hey people, the broker I'm using imposes that TPs and SLs should be set a certain points away from the entry price. Around 2 months ago, I used this code that closes a position based on the profit it generated, I was able to bypass the broker's limitations. PositionSelect ( _Symbol );
Hi, I am trying to input my OpenAI API key to the Options>AI Assistant but the key length is being trimmed when I input to the MQL5 Options panel. Does anyone else have this issue>
Hi Happy Weekend to everyone I am trying to calculate Slope of Linear Regression line with vectors. It is calculated but with a opposite direction signal i.e. positive slope is returned as negative slope. I checked the code and it seems vector.CorrCoef() is causing the issue. e.g if prices are
Dear Support Team, I am experiencing an issue with an Expert Advisor (EA) that operates flawlessly on my demo account but encounters problems when switched to my live account. Details: • EA Name: alphastriker SMCKING • Account Type: Demo (working fine) vs. Live (not functioning) • Issue: The EA
any one tell why i got 'OrderSend' - wrong parameters count built-in: bool OrderSend(const MqlTradeRequest&,MqlTradeResult&) any one clarify ?? // Open a sell order ticket = OrderSend(_Symbol, ORDER_TYPE_SELL, lotSize, SymbolInfoDouble(_Symbol, SYMBOL_ASK), 3, 0, 0, "Sell Order", magicNumber
Hi, I'm new to creating my first mql5 robot, I have one error and need to solve, could you please help me to correct it? Thank you. #property copyright "Copyright 2024, MetaQuotes Ltd." #property link "https://www.mql5.com" #property version "1.00" #include <Trade/Trade.mqh> CTrade
[Deleted]
Anyone know how to catch the 'Algo Trading Button' click event in an EA? If it is turned on or off I need to run some logic. TIA
I'm finding plenty of ea's on here that close trades but I find that trades open back up because Auto Trading itself is still on. Any good paid or free EA's you know of that does this
Hello everyone, I am coding my first expert advisor, and I have encountered some issues with mine. The first one is that I can't code the EA to close the pending orders or open positions when a new bar appears. The EA is coded to open place one pending order per bar and when the bar close I want it
2024.08 . 16 04 : 07 : 13.842 Core 01 2024.03 . 14 23 : 47 : 38 failed instant sell 0.02 EURTRY at 34.89920 sl: 35.89920 tp: 33.89920 [Invalid stops]
// include the file Trade.mqh #include<Trade\Trade.mqh> // Create an instance of Ctrade CTrade trade; void OnTick () { // Get the Ask price double Ask= NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_ASK ), _Digits ); // get the account balance double Balance= AccountInfoDouble
Hi all Please may I have some help with this code. It is just a sample that i'm trying to get to work on the back tester. I copied it from Chat GPT. It gives no errors on the debug, but produces no trades on the back test. input int MaxConsecutiveLosses = 5 ; // Max consecutive
I need an expert advisor with the subsequent charateristics: It allows you to calculate the lots based on the fixed amount of risk % (also including commissions) with which I wish to enter the market by entering only the stop loss price (and also the entry price in the case of pending orders) ad
Hi guys, I used to experience intermitent issues with the Tester Visualization hanging on "Waiting for Update" but usually if I forced close it and retried a few times or changed the symbol it would start working again. However, now I am completely stuck. No matter what symbol I try, how many times
Good morning, everyone. I am using an ea that I have created, which normally works fine, but this morning as I normally do I went in to check if any trades had been executed and found an open order that should have been cancelled. Normally it does cancel them, but something happened and it didn't
Hey guys, I thought I give it a try by spending a week on a trading idea that I found interesting to implement in a rather simple indicator and coding some fancy EA to execute the trade signals. The results look somewhat interesting, but before I'd like to look into optimizing I was surprised to see