Expert Advisors and Automated Trading - page 62

[Deleted]
I have trouble uploading my EA and keep geting this massage Validation completed with errors and in the report : test on EURUSD,H1 (netting) 2022.04.27 10:29:59 failed instant buy 0.2 EURUSD at 1.05887 tp: 1.06387 [Volume limit reached] 2022.04.27 10:29:59 failed instant buy 0.2 EURUSD at 1.05887
Guys , am trying to publish my EA on the Market and I keep getting "not enough money" error .The recommendation is to try and test my EA with $1 , which is impossible coz that $1 will never be enough under any circumstance. The other recommended fix is to put a code not to output the error , but am
Hello All, please I am trying to use the OnTradeTransaction function to manage my positions such that I want to replace a buy position that closes due to take profit with a buy limit order and replace a buy position that closes due to stop loss with a buy stop order. Also vice-versa for sell
Dear All, I am still a beginner in MQL5. I want to add a function of pausing my EA for a specified time after a set profit target is made. I am totally clueless as to how to achieve this. For instance, I want to place several buy trades at different times and I want the EA to keep monitoring my
Hi, I'm new to MQL5 coding. Every time I type something in (Like function) these keywords are before the function name (bool, double, string) I curious to know what exactly mean by it. sometimes I've seen same function is in different formats like bool, double and string. Does it mean the data type
[Deleted]
Hello forum, good day. I'm still relatively new to MQL/MetaTrader and have an EA that would like to use in MT4/MT5 with a real account. What I would like to do is to start trading with it, how is this possible? Best regards and thank you in advance, codeMolecules
Using my mobile phone, I paid for an mt4 expert adviser(EA). The problem is that unfortunately when I am entering in my MT4 platform, on the market tab, that EA is not recognised as being purchased. I raised this issue to the mql5 support, but still no answer. Did any of you encountered the same
Hi everyone, I'm programming an expert advisor for mt4 but when i run it on icmarket or any broker and the bot start opening a trade, it is not setting up the right price for the tp and sl. For exemple, imagine it opened a buy order at the price 1900 and i fix the tp at 30. It will set up randomly
Dear Fellow Members I am trying to use, possibly a new approach with classes to create a multi symbol expert advisor. The main logic of it is explained below: The ArunFX.mq5, the expert will have different parameters and create instances of ExpertBase class for each symbol; The ExpertBase.mqh class
  Volume Tick  (1)
Hello! I would like to retrieve all ticks for the past n candles. In MqlTick structure, what is tick[i].volum and tick[i].volum_real ? I am geting zero for both of them unless I connect to a broker wich is giving real volume. Can I retrieve tick_volume at every tick for forex market using MqlTick
Can't figure this out. I am calling a market buy/sell and provide all properties that are required with values, but yet I continually get "Invalid Request" in the error message. When it prints out, all properties have the correct values, but the request still is invalid. Is there something else I
Can some help clarify me on this! Is control point test on MT4 same as Every thick test on MT5? if no, what is the equivalent test for control point on MT5? And what is the equivalent test for every thick of MT4 on MT5? This is a lot confusing to me and I need clarity Please
All, Firstly I understand that back/forward testing is not an indicator of future results... When I optimise on MT5 using Demo account , therefore Demo data feed I always get 99% history quality. When I optimise using a Live account therefore Live server feed I am getting 80% - 30% history quality
I want to check whether the pending orders are for the current symbol or not (both buy and sell pending orders, but the code does not work. I'm still learning MQL5 , so I appreciate your help. bool NoBuyStopOrders() { for ( int i = 0 ; i < OrdersTotal (); i++) { if ( OrderSelect (
if I need to take 1% if equity as an order target profit, how can I calculate the number of pips (for TP) as a function of Equity percentage? pips = F(equity%)... Any idea? I need to find the formula... bahmanaskerov at yandex dot ru
Hello, need a function to detect if a market is closed for FX symbol .  My solution   bool market_closed(string symbol){    if(StringLen(symbol) > 1)    {        datetime begin=0;        datetime end=0;        datetime now=TimeCurrent();        uint     session_index=0; // guess latest/current...
Is there some styling a viewer of MQL5 source examples can do to increase contrast ? I can testify to come of age and use reading glasses is one thing, but when the contrast of code pages become a challenge it is either time to call it a day as developer, or see if readability can be improved. Known
Hello guys, I’ve a problem with publishing my EA on the market. Although I’ve read all the related articles and topics on this forum to find a solution for it, but still I’m struggling with validation of my EA. All the obligations of the MQL4 has been included in my EA, but still I receive the error...
I encountered a validation error on the market mql4 " log files size exceeded" how can I fix this problem
Hi, I was optimizing an EA and noticed that with the same parameters, I had different results. I wanted to explain my case and benefit from your experience to move on with this. I firmly believe a limitation in how metatrader handles threads and loads data. For a week, I did my investigations. It is
This server is broken for more time than it is working. Doesn't work several times a week (See attached image ). I've seen it broken at least 20 times in the last two months. It takes between 12 and 24 hours to work again... Maybe it's time to think about buying a new one (It's just a suggestion)
Hi. I have a questions about how EAs work with VPS and multiple accounts. 1. I have one intallation of MT5 with one account with a broker under my name, and another account wwith the same broker under another name (its my brothers account). 2. I bought one EA that has 10 activations. I bought it
What is the actual formula used to calculate Complex Criterion Max? thanks
Does anyone knows how is it possible to use keyboard shortcuts to skip chart to the next/previous trade in history? I know I can double click on the specific order in the history panel but using keyboard is so much more productive when doing backtests. please share your Idea, including any method
Hi, 2024.02 . 26 17 : 47 : 35.847 Terminal MetaTrader 5 x64 build 4199 started for MetaQuotes Software Corp. 2024.02 . 26 17 : 47 : 35.847 Terminal Windows 11 build 22631 , 16 x AMD Ryzen 7 5700 U with Radeon, AVX2, 9 / 13 Gb memory, 203 / 476 Gb disk, UAC, GMT+ 1 i think the last
I used GetCalendarEventbyCurrency(Symbol(),3,Events); to get a list of important event and I know that RBA Interest Rate decision is 36030008 [id] [type] [sector] [frequency] [time_mode] [country_id] [unit] [importance] [multiplier] [digits] [source_url]
//+------------------------------------------------------------------+ //| Investtest.mq5 | //| Copyright 2024, MetaQuotes Ltd. | //| https://www.mql5.com |
Hello, I would like to know if there's a way to catch the parameters being optimized (name and value) on the OnTesterFunction. I know that I can do that using FrameNext and FrameInputs, but I would not like to use it, I'd like to catch it via OnTesterFuction. I could take the initial parameters
gidday. This is my first attempt at creating a service. The plan was to make this into an ea that would close all trades when other eas changed a globalvariable. But I had been reading up on services, so I thought i'd have a crack at doing a service; altho I am unsure if a service or an ea is better
  Not happy :(  (6)
What can be done when I have accepted and paid for a freelancer job but am now not happy with what I have got ... Yes I should have conducted more rigorous tests Is there a "cooling off" or "guarantee" period