Expert Advisors and Automated Trading - page 4

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
Hi everyone, I'm facing an issue where my EA isn't executing any trades on both demo accounts and during backtests. The EA loads correctly, "AutoTrading" is enabled, and there are no errors during compilation. I've verified the parameters and tried different symbols, timeframes, and simplified the
Good evening, I am attempting to write a HHLLS (Higher High Lower Low EA). First HHS and LLS are calculated as below. double High1 = iHigh ( Symbol (), Period (), 1 ); double High2 = iHigh ( Symbol (), Period (), 2 ); double Low1 = iLow ( Symbol (), Period (), 1 ); double Low2 = iLow ( Symbol ()
I am encountering an issue with file access in my Expert Advisor (EA). Specifically, I am trying to place TXT files and DLL files into the MQL5/Files folder and have the EA access these files. However, I am receiving error code 5002, indicating that access to the files is denied. Here are the
i can get the latest MA value for the last 5 bar using dynamic array. thanks to ArraySetAsSeries(), it reverse it's saving point so that current bar MA will be saved to index 0 double MA_Handle[]; ArraySetAsSeries (MA_Result, true ); if ( CopyBuffer (MA_Handle, 0 , 0 , 5 , MA_Result)<= 0 ) {
Hi to alla guys , Wile i was trying to set my EA code for a strategy in AUXUSD I get a strange value for SYMBOL_TRADE_TICK_VALUE, spcifically this is my code snippet : int OnInit() { string szSymbol = "XAUUSD"; bool selected = SymbolSelect(szSymbol, true ); // select in market Watch bool found =
Hi, I have a program signals sheet that is giving me signals in shares and I typically have 30-40 trades to do near the market close. At the moment this signal sheet spits out a CSV/excel and I have to then manually execute these trades. does anyone know of a simple EA/script that would be able to
  ONNXRun Issue  (1)
Hello, I'm receiving errorcode 5804 where the parameters count is incorrect (expected 4 instead of 2) to the OnnxRun() function for my simple script. I'm not sure why this issue persists and what exactly I'm supposed to pass through apart from the x- and y-tensor. Help would be much appreciated
Good morning Apparently there are two ways to code indicators for EAs. The first, put all the indicator code in the EA code. The second, put the indicator code in an indicator and call it via icustom() or CreateIndicator() I am clearly in favor of creating the indicators in an indicator and making
So currently when I start up a Strategy Tester, I can only select the day I want it to test on. As example, if I select today, it will start at 00:00. Is there a way to change the start time, since I want to test from 9am until 9pm
Hello, Does anyone know why my MT5 strategy results are coming back in RED when there's profit. If you look further down you see that there are some in GREEN. Also with profit, Can't figure out why a lot of my results are in RED when there's profit. Thanks
Hi everyone, I just started learning how to code yesterday so i'm fairly new to all of this. I'm sorry if this is a stupid mistake but here is the problem i'm trying to solve. input double MarginPercent= 300 ; //User input for the margin percentage the user wants to trade with input double
Hi All, I am having this error when calling OrderSend function . I hope someone can help me. This is error log : 2021.11 . 11 04 : 10 : 45.254 TEST (EURUSD,M5) Alert : Open market order: Error 10013 - Invalid request 2021.11 . 11 04 : 10 : 45.254 TEST (EURUSD,M5) MqlTradeRequest - action: 1