Expert Advisors and Automated Trading - page 62

Hi everyone, I'm just learning about mql5 programming. I had a little difficulty and created an expert advisor. I want to enter the MQ5 indicator code into the Expert Advisor but without using the onCalculate function. My code runs smoothly for indicators. But I want to use it directly into the EA
Hello fellow traders, I’m looking for assistance with a specific code for my trading robot. In my setup, whenever a new pending order is placed, the robot assigns a magic number that is incremented by 1 from the previous order’s magic number. Additionally, along with each new pending order, a
Hi! One of my compiled EAs calls an MT5 library and I would like to control what the library does by specifying inputs from a second EA that I would create. Though, even if quite familiar with building EA for trading purposes, I don't know the structure of a simplified EA sending inputs to a
Hi I'm trying to find peaks on RSI indicator by code below, but it's not work. I don't know if finding the peak based on my idea is correct? Please help me to fix it. Thanks in advance //+------------------------------------------------------------------+ //|
Hello, I am new to this forum and don’t wish to break any rules. I am trying to commission a tweak to my EA , I send them the parameters I want to keep and then they write an extra code so I can make pipstep customisable… They have asked to me to send the EA over to have a look at… is that something
I've been trying to install an ea i just purchased and its just not appearing it keeps saying failed with code 0
Hi, For my EA, I try to close an order with 2 partial close but without success. I would like to send two OP_SELLLIMIT to close a BUY order (with specifics volume and price for each sell limit order), how to proceed? The problem is the ticket number of my BUY order, my sell limit order must have the
I crave a simple one-click order execution app that allows me to obtain an entry order by clicking on the price bar and automatically get the closing price. In addition, it has a manual TP and stops modification/savings feature (No indicators or any other market analysis). I searched the market
//+------------------------------------------------------------------+ //| MarketAdaptation.mqh | //| Advanced functions for adapting strategies to market conditions | //+------------------------------------------------------------------+ #ifndef
I had my strategy coded into an EA by someone on FIverr. I want to sell it on marketplace but it will not pass inspection. How do I go about finding someone that can correct the code so that it will pass inspection
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