Expert Advisors and Automated Trading - page 10

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
  Strange Code  (3)
I have just had a MT5 EA made for me ... Now I have the code I am a little unsure about part of it ... I cannot see the relevance ... The name, broker, account number and markets are all wrong Are they piggybacking on my EA ? The only part I can accept is the expiry date Is it cause for concern or
Is it possible to modify the trading results during a certain period? Recently, the EA I’ve been using got consecutive losses. Then the developer of the EA updated the EA after that. I have compared the backtest results between the previous version and the new version. The new version improved the
Bought an EA from marketplace and it will not install on my Mac. I have installed other EAs manually with no issue: The issue is not antivirus related The issue is not firewall related The issue is not to do with a VPS - I do not need one or want one. I am logged into mt4 on my Mac, through
How to use keyboard functions to call function in my EA
Hi all. Thanks for all the help so far with a few questions I've posted recently. Here's another. Well, a bunch of related ones... I've read a number of posts and the doc'n about Order vs Deal vs Position, including this documentation , and this , and others . A few things I'm unclear on, and
Hello guys i want know is it possible for an ea to trade a small balance of $10
Hello, I have an MT5 EA that works really well until spreads widen. The EA is a free EA that i have optimized really well on XAUUSD and the spread is what makes or breaks its performance. It has no spread filter and i don't have access to the source code. I believe the options i have are -Somehow
I've been doing some tests translating keyboard events to a string (kind of what you would expect any edit field to do, either in metatrader, or your web browser, or anywhere). Nothing too crazy at first, you press 'a', TranslateKey returns 'a' (or 'A' if shift is pressed). But when dealing with
Hello, I want to know if anyone else is having this problem. Since last update on mt5, my bot is running into problem when backtest in real ticks. When I start the backtest it goes normal, the cpu goes to 100% while the memory is loading each agent, normally it would be 100% CPU and about 40% of
Hi i have this problem that i have not found a solution for it in the forum this is the example code to call indicator within the ea code : (using ChartIndicatorAdd ) #property description "Expert Advisor demonstrating the work with ChartIndicatorAdd() function." #property description "After
Hi, I currently create an EA, but still confuse to calculate the proper lot to trade. Assume that I want to trade XAUUSD with $700 balance, How much lot maximum that I can trade safely? And can please suggest a broker and a vps hosting that can work seamlessly? Thanks
I want to launch/run 40 times the same EA (same code) to different (40 charts/symbols). Is there a way to automatize this process (or run them all at once), or would I have to launch one after another, manually? I really looked for an answer but didn't find it. Finally, is there any inconvenient in
Hi dear I wrote an price action strategy and it comes with 67% winrate How can i create the dataset for that strategy and make machine learning model for that and lable the dataset