Expert Advisors and Automated Trading - page 2

  Canvas is cool!  (948   1 2 3 4 5 ... 94 95)
I set myself a task: to demonstrate the capabilities of custom graphics via CCanvas class in a short code. Here's what came out of it. This script works in both MQL5 and MQL4. But it is much faster on MT5. Each frame is unique and does not repeat, i.e. the script is not cyclic. #include
hi. I have error in my expert. you can find my codes and errors in below. please advice me. thanks. //+------------------------------------------------------------------+//| crossma.mq5 |//| Copyright 2020, MetaQuotes
this is the MQL5 code I use: //+------------------------------------------------------------------+ //| Socket.mq5 | //| Copyright 2024, Javier Santiago Gaston de Iriarte Cabrera. | //|
I've had some code that has been working fine on a demo account ever since I wrote it 9 months ago. Using MT5. I recently moved to a funded account (live) and have run into issues. Here a snippet of my original code where I located the issue is occurring, that was working fine on demo okay. I'll
Hello All, I'm sure the answer is buried deep within this forum and I have attempted to look just didn't find anything I might be able to use. Well any ways. Here is what I am trying to do. Basically once an order is closed I want the take profit booleans to be set back to false that way the current
Hello. I have a program that opens a position with a higher lot size if there's a position open and it aims to multiply based on the lowest lot size but I'm having trouble getting the lowest lotsize. Please help double getLowestLots(){ double lowestLots = 0 ; for ( int i = 0 ; i < PositionsTotal
Is there any function to return the day of the week of today? Like: Sunday, Monday, Tuesday
Hello Friends Is there a way to contact 'Service Desk' for technical issues which remained unresolved on the forum? I have been struggling for almost three weeks now, since the last release of MQL on 21st June 2024 after which the problem started. Regards
Hi every one. Please help me how solve error in backtest after updating mt5 and compiling my program: Access violation at 0x000000007FFF00D6 read to 0xFFFFFFFFFFFFFFFF In forum I found several similar problem but no clear answer. Thanks
Hello Everyone, If you are an EA developer and experienced with the following: 1. Reviewing and running EA in the marketplace. 2. You know tricks and scam EA sellers use to show fake back test. 3. Avoiding fake back test. I would like to hire you for a 1-hour consultation fee on how I can mitigate
Hi, I am running MT5 on Wine (Linux Ubuntu) and I get this message in the journal tab of the 'Strategy Tester Visualization' window, "IO operation failed with code e9 (233)" The log file gives the same info, the ending lines are NP 0 13:50:34.592 Tester final balance 10000.00 USD RJ 0 13:50:34.592
  Neural network  (5)
Where can I learn neural network in mql5? Or which book can I use to learn neural network in mql5 or mql4
  Better NN EA  (132   1 2 3 4 5 ... 13 14)
Hi Better has really good EA and is winning the championship Participants - Automated Trading Championship 2007 Profile Better - Automated Trading Championship 2007 What is NN ? Where are the NN threads in this forum? Can anyone here make this EA El cid
I'm trying to convert a string into a char[], in order to write a file using WriteFile from kernel32.dll. string writethis = "abc" ; int lineSize = StringLen (writethis); uchar line[]; ArrayResize (line, lineSize); StringToCharArray (writethis, line, 0 , - 1 ); Happens that, this gives me
Hi All, I hit a rare issue in OnTradeTransaction , which I suspect could be a bug. Basically, what I did is in OnTradeTransaction, I will check the order_state and if the order_state is TRADE_TRANSACTION_DEAL_ADD, then it will print the following Print("On Trade for Ticket:", lastOrderID, "
Hi. My EA is reading a json file which I've placed in the common folder (using FILE_COMMON flag in FileOpen). When optimizing it works fine, but once I add agents on my other PC, it can't find the file even though I've placed it in the common files folder on that machine. What am I doing wrong
Hello Everyone, I have 10 EAs that I need to run on MT4 and MT5. Question: 1. How many MT4/5 instances can I run successfully on 1 VPS? Thank you
Any help guys i can’t past EA on MT5
Hello All My modify TP/SL code below won't modify sell positions instead I get modify errors. With Buy positions everything modifies as normal, please assist me as to why sell positions will not modify. #include <Trade\Trade.mqh> #include <Trade\SymbolInfo.mqh> #include <Trade\PositionInfo.mqh>
Why does MT5 strategy tester ask for .ini set files instead of .set files? Why are all the set files available to download in .set format if I need .ini format? What's the difference between them, and are they interchangeable
Hello MQL5 Community, I have some questions regarding the use of DLLs during multi-threaded backtesting in MetaTrader 5, based on the documentation I found: Multiple Instances : From the documentation, it seems that if a DLL is already loaded (even by another Expert Advisor or client terminal), it
#include <Trade\Trade.mqh> //Instatiate Trades Execution Library CTrade trade; // Trades Info and Executions library void OnTick () { double Ask = NormalizeDouble ( SymbolInfoDouble ( Symbol (), SYMBOL_ASK ), _Digits );
Dear All I am trying to create Multi Symbol EA using OOP. I have created a set of files and EATemplate to test it. I am getting invalid pointer error in the mfCStrategyA (child of mfCStrategyBase). To my understanding child class should be able to access variables/methods of parent class, which I am
  ExpertMAPSARSizeOptimized  (13   1 2)
Hi, does any artical talk about MT5 build in EA Sample ExpertMAPSARSizeOptimized? It is wriiten in pure OO style, but metaeditor is not excellent enough as Eclips or VS studio now. Sometimes i feel reading MQ5 OO program using metaeditor is just like using Notepad. :) I cant get the point of the...
I'm having issues validating an update to an EA, and I can't figure out what I'm doing wrong. The problem is with the trailing stop, and even though I validate the SYMBOL_TRADE_FREEZE_LEVEL and SYMBOL_TRADE_STOPS_LEVEL, I still get the error "[Modification failed due to order or position being close
Hello everyone. Suppose you need to create an EA to close all trades and disable autotrading once it hits a minimum daily profit target. As you know you cannot be sure to close all trades exactly at the price you desire besides the deal out commission that is not predictable sometimes. This causes
Good Day, Please assist I have coded the two horizontal lines in between the Bid and Ask price line. I need the lines to move as the bid/ask price lines move. I tried the Objectmove() function and they only move when i recompile the file. Please assist how or what code I can use to solve the
  Range Breakout EA MT5 issues  (11   1 2)
I wrote that code by some youtube programming channel. No errors, compiles fine but in tester DrawingObjects doesn't look right(specially range) and finally it stops taking trades(probably because of that buggy range) //+------------------------------------------------------------------+ //|
Dear Good day I am learning to code EA for two timeframe EMA trading strategy . I need to count/calculate the number of bars from when FAST EMA crosses SLOW EMA and when the Ask Prices retraces back and touches on or below SLOW EMA. I need to record this number as well as be able to get the
#include <Trade\Trade.mqh> CTrade trade; I am new to mql. I have seen the code above in *** but there are parts I do not understand. I understand the first line. We are importing the Trade header file from the Trade.mqh library. What does the second line mean? Are we assigning the CTrade class to a