Expert Advisors and Automated Trading - page 97

I'm currently working on getting calendar events and coded the following , but it gives me an error of "array out of range in 'file.mq5' (113,26)" in journal when I backtest. void OnTick(void) { //--- country code for EU (ISO 3166-1 Alpha-2) string US_code= "US" ; //--- get EU events
Hello I cannot connect to my provider for the trade copier
Just try to draw a Vertical line on BUY operation using BBands. I attach the code. Many thanks in advance
I can't use the strategy tester on the cloud, it randomly stopped working. I have sufficient balance, there is no issue with connectivity, I am using a VPS and it shows I have plenty of bandwidth. The strategy tester works fine on local agents but it is really slow so I want to use the cloud
  Multiple Trades  (4)
Hi Is there any free Robot/Script where I can take multiple order at once in a currency pair using a fixed lot size. Like if I want to take 15 trades in EURUD pairs using 0.01 lot size. Thanks
Hi coders. After running a walk forward analysis, lets say my 'walk forward efficiency ratio' is acceptable. After that I'll have x-period optimized inputs. Question: which inputs from which period do I need to consider to run my EA no live account? Maybe the inputs of the period with the best...
  Beginer question  (3)
Hello all, I was wondering if anyone can help me with an answer. I have an expert . For example if i run it today it is working fine, entering in all the trades, doing the things how it is suppose to do , but when i run it the next day it doesn't enter trades at all. I am doing something wrong or it
When I call MetaTrader5.initialize passing in the exe file path and the login credentials, it is opening the Metatrader terminal with the last logged in account ignoring the one passed in the initialize method, then it errors out with error code: (-10003, "IPC initialize failed, Pipe server didn't
Hello, I was reading this very old article, https://www.mql5.com/en/articles/19 where the author has a dll get the pointer adress (which mql5 doesn't allow you to). The use was to not be copying values back and forth, but accessing the indicators buffers directly. Really interesting what the author
I am running two instances of the same EA on two VPSes in two different data-centers, each with a different magic number. Tonight both EAs placed the same buy stop order (with different magic numbers) using this code: CTrade trade; if (!trade.BuyStop(lotSize, entry, _Symbol , sl, tp, ORDER_TIME_GTC
[Deleted]
Dear Members I am trying following code for Pullback LONG, but feels a bit complicated. Also they give false signals when in RANGE. Can someone suggest a correct and simple way to find pullbacks? bool CMACDCross::Pullback_Long( const double pPB_Level) { bool Rule1 = false , Rule2 = false
In this video, I'm showing you a simple, high win rate MACD indicator strategy The Moving Average Convergence Divergence or also known as the MACD, is one of the most simplest and popular indicator used by traders. It is a trend following indicator that shows the relationship between two moving
Hello, New here, I slowly learn how to code my EA on MQL5, but now I'm stuck on a problem and I don't find the solution. I made an EA and this EA can open a trade on different TF, but only one trade at a time per TF. So, it's running and analyze the TF 1min, 2min, 3min, 4min and 5min. It can open 5
i wish to include this file TrailingMA.mph in my auto-trading how to initial its function
  Latency Monitor EA for MT5  (15   1 2)
Hi. I need help to write an EA that monitors latency of the exchange to create/alter orders. For example sometimes it takes 10 seconds to change a Stop Loss and they say it's my internet but I'm sure it is not. Idea: Create and change orders that will never be executed and measure how long the...
  Dynamic Partials  (2)
Hey, Can anyone help me with dynamic partials system? I want the partials to work in such a way: 1:1 trade goes BE and takes 20% TP, 1:2 it takes another 20%, 1:3 it takes 60%. Thanks in advance
Does anyone have a basic moving average pullback EA that I could use as the basis for coding a new EA?   The functionality I am looking for is:   - Price passes through a moving average, and then a trade is entered once price moves back and touches the moving average again.     Thanks in advance,...
Hi I have tried to create need RSI EA with an moving average applied to an RSI, (using simple moving average instead of rsi line) Sells at a (MA)downward crossing of an oscillator overbought level, buys at an (MA)upward crossing of an oscillator oversold level but the EA IS NOT WORKING
Hi, Could anyone help me to set the levels for a RSI indicator that I'm creating/adding during EA OnInit() event ? Just to be clear, I want to do this during the EXPERT execution, not during Indicator initialization, as I'm getting those limits as parameters from my EA. I can add the RSI indicator
If somebody have any knowledge about a robot or an EA that can close positions at a given time like a position opens@ 11h.20m.10s this should be close after 60 minutes of its opening time or it can be 30 minutes or any time may be 10 minutes
Hello, I would like to use my EA on different symbols on the same MT5 account but I can't because in some parts of the code I used PositionsTotal , or a double openprice but they are focusing on all the symbols on the account. //count open position buy_count = 0 ; sell_count = 0 ; for
Hello, I've set the custom symbol Synthetic instrument formula to "ENQH23" and it is moving with live data --> However the custom time zones that I set up in this custom symbol does not engange. How can I enable the custom time zones for example 1300-2000 each day (removing any extra data in the
Hello, //+------------------------------------------------------------------+ //| MatrixKiller.mq5 | //| Copyright 2023, MatrixKiller | //| |
  Error Code 409  (5)
Hi, i am trying to use an EA but in the experts log it gives me “error code 409. Conflict terminated by other request; make sure that only one bit instance is running” Does anybody know what this is and how I can correct it? thanks
Hi, I need an EA that can copy trades between many master accounts on one MT5 to many slave accoutns on another MT5. These accounts will be paired one-to-one. I already tried FXBlue Trade Copier solution, but it only broadcasts trades to logged in accounts on receiver side. I have 5 sender accounts
Hello, Can anyone help writing a super simple scripts for MT5 (one script for buy and one for a sell) when applied to the chart it will do the following. (<Deleted>) 1) Open a 0.01 lots 2) Sets SL at 10 pips from entry 3) Sets TP at 10 pips from entry
In this Video you will learn #IntradayTrading, how to earn income from #StockMarket on daily basis. About the Trainer : Master of Leadership Psychology, Pushkar Raj Thakur is one of the Most Influential Motivational Speaker & Digital Entrepreneurship Coach in India. A SelfMade Millionaire on the
I have written a code with the following conditions: Long: RSI must be below the 50 line Stochastic %K line must be above %D line Stochastic %K line must be below 80 Enter when MACD line crosses above signal line Set SL at twice the ATR below the entry candle low Set TP at three times the ATR above
Hi I try Create some EAs base on my custom indicator and ichimoku for meta trader 5, But when I run my EAs on strategy tester or real chart the indicators not show. I try ChartIndicatorAdd from this link but not working(https://www.mql5.com/en/forum/ea/new_topic). how can fix this problem? please
Hi, I'd like to change my SL to breakeven when certain logic triggered. string GetTradeManagementStatus( int SymbolLoop) { string CurrentSymbol = SymbolArray[SymbolLoop]; //Need to copy values from indicator buffers to local buffers int numValuesNeeded = 3 ; double bufferIndi[];