Expert Advisors and Automated Trading - page 19

Hello I uses below function for calculate lot size in MQL5 for use simple OrderSend (symbol EURUSD_i and Alpari broker). double dblLotsRisk( double dbStopLoss, double dbRiskRatio ) { double dbLotsMinimum = SymbolInfoDouble ( _Symbol , SYMBOL_VOLUME_MIN ), dbLotsMaximum =
How long does it take for an update to be published in MT5? version 0.81 has been on the website for several hours but 0.8 is still available in MT5 I have already informed my users about the new version, but it is still not available for download. does anyone know how long it takes
I have written an EA (in MQL4) to test a strategy which involves placing a buy and sell pending order at the same price on a grid, with target profit, and once the orders are triggered, another pending order of buy and sell is placed at the next level in the direction of travel. I am not a
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
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 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 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
[Deleted]
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
Hi everyone, System: Windows / MT5 Environnement: Python Script + Socket Server (Python) + Socket Client (MQL5) Problem: After few hours (around 25-26hrs) the EA stop sending any data through the socket or the Socket Server stop receiving data I'm a fresh python coder, and for the last few days I'm
[Deleted]
Can an EA be able to completely halt trading from all sources ? Signals, other EAs, manual trading, etc. If so, can it resume trading from all the previously halted sources ? Such EA would have complete power over the account so I don't know if it's possible
[Deleted]
Hi, Can an Expert Advisor manage copytrading services (mql5, signalstart, etc.) ? For instance, one of its function could be to suspend/stop copytrading when a specific DrawDown is reached and then resume it after a specific time period. I know we'll likely need DLL imports in order to handle such
Hello everyone, I am testing a strategy on a demo account and something strange happened. The expert advisor executed a position at a price that did not exist at that time. How can this be possible? attached image. Thank you
Hello to all and thanks from now. My code can send "Buy Market Orders" to Binace (SPOT) successfully, but only this. I'm trying to do the same for Sell, Limit, StopLimit, Getting Current account Info, etc. But I could not. I need the URL structure for the mentioned other actions. Is there anyone
I created several Expert Advisors and want to upload them to the market for subscription signals. They use several indicators in unison to detect reversals, break out and perfect buying and selling opportunities on Gold and Dogecoin. I have one version that strictly buys and sells, and another
Hello everybody, I would have a simple question about backtest... Is there a way to know the total of traded lots ? It is possible to know the number of trades, but I cant see the number of lots... that's all.. :) bye bye