Expert Advisors and Automated Trading - page 32

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
Hi all , i have bought an EA but it doesn't work. I tried to reach the author but he doesn't respond. The issue is that the EA stop after few second is lauched with reason 9. This happen in both backtest and live. I have tested ICMarkets, AXI and Roboforex, it has the same behaviour on all the
Hello everyone, I’ve noticed that in the standard MQL5 library ( Expert.mqh ), the CExpert class (derived from CExpertBase ) implements its own Init() method without calling the parent class’s CExpertBase::Init() . This seems unusual because: Inheritance Principle : Child classes typically call
Hello! In this module, it is supposed to close half the volume after the price moves 10 pips into profit and move the stop loss to the entry point plus commission. However, unfortunately, after 10 pips of profit, the entire volume is closed in consecutive positions. Module code: void
Hi guys how calcolate a stop loss with ATR ? anyone have some example ? i find but not have a good example i tryed double atrSL = 2.0 ; SL = NormalizeDouble (OpenPrice - (ATR_Value * atrSL), Digits ()); but not return me a price correct
Hello, I am new to this? Is there an solution? I don't want to open a new chart for every pair, when I also want to trade manually together with expert advisor , so I want to open also manual trades from there, but without getting interrupted by the EA. The expert advisor has a setting with hidden
The product rule -: " Embedding any limitations by time, account type or number, financial instrument, etc. into your Program is prohibited. All such actions will be considered as unfriendly to the Buyer and are prohibited. " I want to code an EA to work only on special instrument also in specific
Im fairly new to all of this and I got started by watching a video of a guy who explained a simple EA called "simple MACD expert". Its a free bot from the market place. The guy in the video I was watching is using the same bot and even the same version and his was displaying a magic number in the
Hello everyone, I'm experiencing an issue with the activator in my EA. The EA is supposed to validate a license key by contacting a verification page using the WebRequest function. Although the EA appears to connect to the page, I never receive any response. In the Experts log, I see the following
hi , i have an EA . This EA should open a trade for example at 17.00 and close next day 9.oo but in tests i get 2 errors , first is unsupported filling mode and the second is Ordersend 4756 Error its on every Pair, Gold, DE40 and so on here is the code
I rent out my CPU power to others here, which has been fine for a long time. Over the last week or so, I have had 2 machines locking up, caused by MetaTester64.exe. Today, I managed to prevent a full lockup and get some sort of meaningful error - "buffer overflow", classic method of code injection
Hi, Sorry for probably an easy question but I just started learning how to mql5. Let's say I have two simple pending orders, a long and a short, waiting to get triggered trade.BuyStop(0.1,longpriceentry,_Symbol,LTP,LSL, ORDER_TIME_GTC );
Last week I started testing my robot, I use MT5, Metaquotes broker demo, average ping about 7ms. However, today during the day I noticed two such trade entries. I wonder how he was able to trade in places where there are no charts. I use VPS exclusively for trading, so there were no work
Hi guys I am looking for a MT5 utility that enables me to open the same trade an x amount of times instantly. FOR example if I buy 100 lots of EUR/USD i want it to automatically open 4 other buy positions of the same volume at the same price. Then when i close the main trade or modify it with a SL...
//+------------------------------------------------------------------+ //| Naz Sell EAs (1).mq5 | //| Copyright 2023, MetaQuotes Software Corp. | //| https://www.mql5.com |
[Deleted]
Downloaded the history, still checks for the history, timed out and error message no history data !!! ... this is really frustrating :( Hi Friends I have run the strategy tester about 30 minutes ago and it worked fine. after changing some corrections in my code and when I try to run, I got "no
I wanted to see if it was possible to make the EA enter a buy position only when the ask price is less than or equal to the moving average price. NormalizeDouble (currentAsk, _Digits ) <= NormalizeDouble (ma[ 0 ], _Digits ) Full snippet: if (allow_buy && trade_type == market_orders &&
Hey everyone, I noticed a weird number in the MT5 Strategy Tester under the Deposit and Leverage section. It appears before the leverage setting (example: 8 1:100 ). Changing it doesn’t affect the leverage. It doesn’t seem to change anything else either . I can still adjust leverage normally in the
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
for moderator plase not remove my post , cpanel is part of standar library of mql5 ( https://www.mql5.com/en/docs/standardlibrary/controls/cpanel#sample) is possible remove the button resize in tool bar in up right _ (i attach foto for better details) thanks
Hi guys i notice some error but strange error if some one cangive me some suggest , because i want resolve it by my self because the code is too large i attach a video of defect in practical: When I click on the checkbox, at the variable level, the variable changes as if I had clicked it, but the
#include <Trade\Trade.mqh> CTrade trade; I am new to mql. I have seen the code above in *** but there are parts I do not understand. I understand the first line. We are importing the Trade header file from the Trade.mqh library. What does the second line mean? Are we assigning the CTrade class to a
Hi All I am looking to build a screener that I can load onto one pair that can monitor 20+ pairs. A pair should appear on the screener if a level is broken, in this case the high of the previous day, at particular times of day (asia / london / NY). I have seen a few code examples that are able to
Is ALGO trading better with Python or MQL5
Hello everyone, I am new to trading , currently only doing demo accounts , I just installed a EA and would like to know where I can get set files that I can install , for different pairs, mainly for the scalping strategy which is what my EA is supposed to be good at, ANY RECOMENDATIONS ?, Thanks
Hi guys i try to understund how work dll import in mt5 i use this tutorial https://www.mql5.com/en/blogs/post/753426 i create a dll in VS 2022 c++ , dll ,with this code BybitAPI.dll #pragma once #include "pch.h" #include <utility> #include <limits.h> #ifdef BYBITAPIDLL_EXPORTS #define
Sometimes, I need to use a code that will be not attached to a specific chart. I mean, if I use the same EA in 2 charts(for ex EURUSD, GOLD), then the code of this EA runs twice for both charts which is not desirable. For example, orders closing, I want to do once, for all the symbols... not each of
  I Need MT5 EA  (6)
I need of MT5 EA that open unlimited sell positions only on every 5 seconds,or on every new candle with target profit in pips for every single position,I trade xau/usd,please please help me,this is very important for me.Thanks
EA using indicators downloaded for free from mql5. Is it possible
Hi guys i dnot know if i understund a good logic of a checkbox in cpanel i want know if when i flag cjeckbox it must return 1 and when defalg it must rerun zero ? because in my sript return always zero paneldialog.mqh //+------------------------------------------------------------------+ //|