Expert Advisors and Automated Trading - page 197

Hi Friends I have created a testing EA to calculate High Low value index, and draw arrow for these points on chart. However, while using for..loop it is drawing only 0 and 1 element from the array(s). Rest of the elements 2 to 9 are not drawn. Please help me to locate the issue ... extern int
Guys as you know there mainly two optimizations in mt5: A. All Symbols Selected In Market: You run same Indicator Settings for several Pairs B: Fast/Slow algo : You run different Indicator Settings for same Pair Is there any way to mix them up and run different pairs with different indicator
I have bought an EA a couple of weeks ago, and have been backtesting it before go live, however yesterday it stopped working and I get the error message: "invalid license (508)" "Loading of Perfect Score MT5 failed" Could you help me? What should I do? In case a reinstall it, will this
Hi, I note a strange behavior with my EA. Sometimes it closes the opened positions but without magic number. I tried to figure out why but I can't find the reason I'm using the following code to open trade trade.SetExpertMagicNumber(magic); // .... if (trade.PositionOpen( Symbol
As MQL4 and MQL5 are C++ like, I was wondering if anyone is using C++ to build EAs/indicators? The reason I ask is because with GoogleTest we can properly unit-test our code. If no one has done it yet, can we group up to do this? Thanks
I have this EA am coding in mt5. still learning Mt5 though. The EA takes multiple trade on one candlestick in the same direction, I don't want it so. I want only one trade once I have a buy signal and the take profit or stop loss is hit, no more trade untill the opposite sell signal becomes true
//+------------------------------------------------------------------+ //| TestQMP.mq5 | //| Copyright 2020, MetaQuotes Software Corp. | //| https://www.mql5.com |
[Deleted]
Good Afternoon ! Is there any command in MQL5 to clear to MT5 ToolBox Experts tab ? Thank you ! Marcelo
When trying to change a position to place a take profit, the error [Invalid request] returns, but I don't see where the error is. I'm new to MQL5, it must be something very simple that I haven't seen. Can you help me ? My code
  ichimoku  (9)
Hello, can you help me enter the source code of these Ichimoku parts into an array
  MT5 Optimisation  (3)
I am having a problem to run Optimisation on MT5. When I select "Start" nothing happens and no error message. I have watched various videos and all have the "Optimisation Results" tab at the bottom of the Strategy Tester but I cant get it? My Tabs are - Overview-Settings-Inputs-Agents-Journal. Can
My EA is trading metals and currency pairs without any problems. However, it is not trading cash indices correct. It immediately closes any SHORT position as soon as profit turns positive. Is there something different in trading indices I am not aware of? Thanks in advance for any help
Hi why at the back test i get different result of the tickvalue between MQL4 and MQL5 1. when i run a back test at MQL4 OF MODE_TICKVALUE i get value of 0.96 (base currency USD trade symbol USDJPY) Comment (MarketInfo( NULL ,MODE_TICKVALUE)); 2. but when i run a back test at MQL5 for the same pair
  Please Help Me  (4)
I can login to the transaction with the EA I created. The Moving Average Commences Trading With Its Intersection .. Again with the Moving Average Intersect I want him to exit the trade without waiting for the take profit or stop loss level. Please Help Me !. The Process Access Code is as follows
Please forgive me if this is the wrong place or something like this already exists. I was wondering how difficult and if someone could make an advisor that would halt trades if the existing advisor covered with a defined percentage in losses. Basically the advisor would monitor the balance, if there
Hello, I am looping through all horizontal lines of the current chart using the ObjectsTotal function: int totalLines = ObjectsTotal(0, 0, OBJ_HLINE); I have 3 horizontal lines in my chart that I want the Expert Advisor to trade from. Then I have 2 extra lines that show a treshold value. What I am
i made my expert locked by certain account number and with time constraint and can only work on a demo account , the problem is that it doesn't perform any trades ! static datetime allowed_until = D' 2020.12 . 30 00 : 00 '; const long allowed_accounts = 11111111 ; int
Guys is there any way to get whole history of one trade. I mean for simple trade we open trade (Ex: Send Buy order) and we close that trade (Ex: Stop Loss hit). I can catch when stop loss is hit in OnTradeTransaction. Can I find related Buy order of that stop loss? For example in the below History
[Deleted]
I created an EA scalper and tested it on backtest and I liked the result. So I decided to apply to a demo account. After a long time of testing on the demo account and having gone well I put it on a real account. And the result of the real account was completely different from the demo. (I left
hi I'm new in programming. can you please help me to find out what's the problem with this part of my EA ? I've got this Error : 'totallots'- some operator expected double TotalLots () { double totalots=0; for(int i=0; i<OrdersTotal(); i++) { OrderSelect(i, SELECT_BY_POS,...
Hi, I have an account at xm.com and there, I'm not lucky with my forward test results of my purchased EAs. XM has a stop level of 40(!) points and EURUSD spreads between 1.5 and 1.8 pips. That may be sure a question for each EA's forum --> "how to get this particular EA profitable" but my question...
Hi there I need to select or avoid specific symbols through a string input to make different sets, so the question is how to make this. For example: I want to trade defaults for all 28 forex pairs but EURUSD|USDJPY|EURJPY . Then I want to trade only EURJPY through a custom set and EURUSD|USDJPY by
  An idea?...  (1)
Here is a suggestion. Can Metaquotes add the ability to optimize the optimisation criteria in order to get the criteria that has the best walk-forward? Let's take a simple example of a criteria that considers relative drawdown and profit. If these properties each had a weight per criteria, these
Hi, I have this kind of "error", someone can tell me why they are telling me does the "result" declaration hide the global variable? double getTrailingStop( int per, datetime openTime, bool isLong, string sym = "" ) { if ( sym == "" ) { sym = Symbol (); } // this function will return the trailing
Hi, I want to get the number of positions with different data in the comment column from different symbols. For example; How many open positions are there in the EURUSD symbol with "MA BUY" in the comment column? There is the code I wrote in the attachment. Where am I making a mistake? I would
Hi everybody, I tries to figure out how can I remove the two lines on the strategy tester (see on picture) Someone can help me please
hi everyone , I am looking for a script that can add a stop loss to open positions at a later specified time . For instance I am in a GBPNZD open trade at 0300 GMT and I want to place my stop loss at 2000 GMT at 1.XXXX. The idea is to remove the SL for a hour or so when the day changes over and
I'm backtesting a strategy with MT5 in "Real Ticks" mode. I'm using a broker that offers 2 different Account Types: Type 1 with higher spread and without commission and Type 2 with lower spread + commission. I'm backtesting using Account Type 1. However, when comparing real results vs. backtest
Dear all I created an EA using #import "Wininet.dll" and #import "urlmon.dll" but it can't be validated. please help me how can it be validated? some can help me thank you
Hello dear developers, I have this code below: The Array " SymbolsROC " store the roc of the symbols(in double) stated on the function " WeakAndStrongCurrency() ". what I want is to select the first 2 highest values and the last 2 lowest values in the array without changing the index of the array