Expert Advisors and Automated Trading

Let's look at the results of the tests on one and a few characters. The tests will be conducted in All ticks mode. You can use your own multisymbol EA schemes to reproduce the problem and share your results. Let us denote the problem. For example, if you test one symbol, the test time takes 1
Can you tell me if this is a realistic tester figure? And is this a good or bad result for a year with a deposit of $3,000
Hello I have the following code that calculates the open orders in a given Timeframe, but I don't know how to count also the pending orders. int TradeCount( ENUM_TIMEFRAMES TimeFrame) { int Cnt; ulong Ticket; long EntryType; datetime DT[ 1 ]; Cnt = 0 ; if ( CopyTime (
I want to use Multiple indicators each responsible for either CheckClose or CheckOpen() of standard library of ExpertSignal.mqh in the source of ExpertSignal.mqh there is parameter called m_direction in the Direction() function which works with a mask and another called m_ignore now that I want to
Please help me what could cause subjected error while running the strategy tester
Hi there! I´m coding an EA which uses pending orders - i know that some people find that EAs shouldn´t use pending orders but it makes sense for my logic - and i want to modify its price depending on the last high/low. Im having trouble with the trade.orderModify parameters count. I´m using it the
Hi everyone, I hope you are fine. I am having a hard time with the following error. I get an error cancelling an already placed pending order due to invalid stops.... 2016.05.12 06:00:00 failed cancel order #226 sell stop 1.20 EURUSD at 1.14209 sl: 1.14462 tp: 1.13653 [Invalid stops] Why am I...
I've searched all the MQL5 market looking for an Expert which can do (Multiple Close By) with the ordinary closing actions like (close all, close pending orders, close only buy, close only sell, etc.) I didn't find a one that can do this important feature (Multiple Close By) I know that not all
Does anyone know why timeout whrn performing a webrequest is ignored? Looking the documentation ti says, timeout in miliseconds. Any value I use, 1000 (1 sec), 2000 or 100000, any value, it is always taken 10 to 12 seconds. Thanks for any input
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
  Canvas is cool!  (942   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 everyone, I have an odd question about something I have noticed in the strategy tester. I am using a bitcoin as my deposit currency (since I am trading BTCUSD and want to ensure my fees are calculated in btc). Next to the deposit section, there is a dropdown box with a value selection between 0
Hi all, I've read lots of conflicting information about this question so i'd like a clear and simple answer if possible. Are commissions and swaps taken into account during the MT5 strategy tester and optimization process? I see a column for commissions in my final backtest report, however it is
I am using MetaTrader 5 for python and regardless of the specified range, symbol and timeframe, copy_rates_range() almost always returns 0 or 1 bars. In the docs they say it's normal for the first call and that the requested data will be ready for subsequent calls but it just never is
I have been using AI to create custom expert advisor for my needs, I have provided code below for the custom EA that should send alerts to my telegram channel. There is no error in compilation. This ea sends initial message that "Alert system initiated" to my telegram which means that the API and
what do you think about this: I'm doing it for other days .... but think I've hit hard with this one... I'm now testing with other symbols and random days (its all from a random day). This result is for 1 h time frame for 1 day
Good Morning to all members, I have coded a Cross Moving Average EA. And I want to activate a trailing stop when trade is in profit the trailing stop must be set at a certain level after open price for buy or below open price for sell.the problem is that the trailing stop does not activate when the
i have some experience creating an .ex4 and .ex5 EA, but i have ZERO experience creating indicators. i never use any visual graphical object either to my EA. so quick question: 1. is it possible to add a custom indicators to an EA? 2. just curious, based on programing side: are indicators is the
I want to convert this code from mql4 to mql5. Please write the code for me. OrderSend(Symbol(),OP_BUY,0.1,Ask,5,Ask-(50*Point),Ask+(TP*Point),"My Comment",00018,0,clrGreen);
Hello and thanks for you time! I would like to me a question about the the OnTick function, the goal is to open 10 buy, then put 10 sell stop, if buy hit tp close the sell stop, if close sell stop open 10 sell, any idea how can i achive that? Like this now i can not beacuse all ifs stucks
test on EURUSD,H1 (netting) 2021.02 . 04 20 : 00 : 00 failed instant buy 0.05 EURUSD at 1.19607 sl: 1.19407 tp: 1.20607 [Invalid volume] 2021.02 . 04 20 : 15 : 20 failed instant buy 0.05 EURUSD at 1.19642 sl: 1.19442 tp: 1.20642 [Invalid volume] 2021.02 . 04 20 : 30 : 40 failed instant buy
#include <Controls\Dialog.mqh> #include <Controls\Button.mqh> #include <Controls\Label.mqh> #include <Controls\Edit.mqh> #include <Controls\CheckBox.mqh> #include <Controls\MyDialogApp.mqh> #include <Controls\RadioGroup.mqh> CAppDialog *MyDialog; void OnInit () { MyDialog = new CMyAppDialog; if
While performing optimization of input parameters via backtesting feature in metatrader 5, I wish to use some condition to stop the agents run of a particular combination of input parameter early. On reaching a certain condition while the agent is performing one such run, i wish to quit that run
Hi all, I want to do the following: -Step 1- catch information about a trade when a position (whether its direct market order or when price hits limit order) opens eg ticket, trade spread, slippage, price requested , price received attribute X value (eg X = 5, this is artificial attribute, not
Can an EA (with or without DLL imports) manage diverse copytrading services such as MQL5, SignalStart and Duplikium for instance ? If yes, how ? If no, what are the other automated solutions to manage the risk while following multiples distinct signals from various services/websites
Hi, I have a EA which has a struct defined in it (because there are variables of its type in the EA mql file) and the struct type is being used to declare a variable in the header file too. // within mql EA file struct LLevel { ..... } // within mqh file LLevel expiredLLevel[]; After i include
Hello ya'll.....Question, is there an effective EA that can make tight scalps at relatively high frequency that you can turn on and off manually as well as choose the side to trade? On MT4 as well... Sounds simple, but I know it's really asking a lot. Thank you
Hi everyone, I am looking for a trailing stop loss which is activated after after reaching a certain value and it moves repetitively. I try to explain with an example: I buy XAU/USD from 2025.0, SL to 2023.0 (20PIPS) and traling stop loss from 2028.1 (30 PIPS). When the profit reach 31 PIPS (2028.1)
Can someone share an EA that will send alerts every time when price stop moving within one minute
What is MQL5 Wizard : The MetaTrader 5 Trading Platform includes the MQL5 Wizard , which allows to quickly generate code of an Expert Advisor (Expert Advisor builder). With MQL5 Wizard, knowledge of programming languages is no longer a prerequisite for creating trading robots . In the past, it