Expert Advisors and Automated Trading - page 4

How can I implement logic in my EA that it may work on demo accounts but not on live accounts without a license key
  Remote License  (4)
Hello everyone, everything good? I have a doubt, I have the code below where I limit the use of my EA to a certain limit of Metatrader IDs, however for each new Id that I add I will need to recompile the code, I would like to know if there is any tutorial on how I can do to create a remote license
Hello Folks, I assume that its a quite easy question for you but I need your help. I got a website where I want my future EA clients to but their AccountIDs for a license Check. When I call the API via Postman I get the data, however I am unable to adapt the Webrequest() function accordingly to get
//+------------------------------------------------------------------+ //| Moving Averages.mq5 | //| Copyright 2000-2024, MetaQuotes Ltd. | //| https://www.mql5.com |
Hi guys! I would like to sell Indicators (and perhaps EA's) in the META MARKET and directly too (outside the MARKET). I'm reading about how to effectively protect an Indicator (or an EA) for EVALUATION PURPOSES (for the bought versions I can provide a good scheme based on the user account). I had
Hi, I'm a little confused about what exactly these functions return. If I understand correctly: - iTickVolume returns the count of ticks used to build a bar. It is also passed by onCalculate with the "tick_volume" array. It's also shown in the data window as "Tick volume". Right? - IRealVolume
I want to check weather the deal in history is SL or TP. How do I track the deal from the order number that assigned when place order (name: ticket01). I understand that ' HistoryDealGetTicket' parameter is 'Number of a deal in the list of deals'. But what is that? ulong deal =
OK, so I have made myself an EA and am very proud of it. So proud that I'm thinking to sell it to others. But I want it to be used only by the customers, not to be shared online or re-sold for less. Therefore it has to be sold as ex5/ex5 (ie encrypted) and it must contain an input field where the
I need help. I'm trying to optimize an EA I created myself on MT5, but it won't run when I press the start button. The broker is DECODE Fx and target currency pair is XAUUSD, but the operation log shows it's also trying to download historical data for XAUJPY, which is unrelated. Since there's no
Hi All, Can anyone help me with this issue? I dont know if it is a VPS issue or the EA issue, but an EA does nt seem to be allowing me to get to the properties box to change some inputs. All I hear is like an error sound after I right click on the EA name, as though I was trying to open something
Hi everyone, I'm working on a custom tool that needs to calculate position sizing based on risk percentage. My tool needs to convert distance (in Points/Pips) into a monetary value (e.g., how much $ I lose/gain if price moves X points). I've been using MarketInfo(Symbol(), MODE_TICKVALUE) to do
Anyone has the EA that performs as profit alarm EA: - for example, if the profit is currently negative - 150 usd - if the profit reached after some time and fell below negatively - 15 usd then the EA plays wave as the alarm located in soundw folder. Thanks in advance
What forms of advertising/promotion do you use for raising the profile of your EA
I have a custom indicator with a reusable CMA class ( Setup() + Compute() ) that computes one of 14 selectable moving-average types. Two different input-variable pairs feed separate instances of this exact same class/method: baseMAType / baseLength → feeds 4 instances ( maBaseClose , maBaseSrc
I read somewhere MQL 4/5 is not as fast in execution as using C++ to write algo`s, granted i`m new. I just wanted to preferably use raw C++ instead of learning another scripting language. Are there coding benefits in the types of things you can create/do with MQL that are longer harder in C++? Thank
When testing an EA in the strategy tester, code changes after the first test do not seem to be reflected correctly in subsequent tests. Example scenario: 1. In the settings tab of the strategy tester, I select the ex5 file of my EA, symbol, period etc. In the input tab, I set the input values. Then
Hi! Currently performing a slow complete optimization on my EA, but quite astonished to see that the number of passes covered in the forward phase is much lower than in the optimization phase ( Optimization Results ). I assume MT5 only considers the best passes of the optimization phase to assess
Sorry, but why are the simplest of things just impossible. The fact that there are other posts on here saying the same thing - with equally unclear responses - speaks volumes. The `PlaySound()` method - seriously? The file path ` C:\Users\<user>\AppData\Roaming\MetaQuotes\Terminal\Sounds ` is where
[Deleted]
Hello, How to do, let say EA usually take 10 ms and i want to set if EA taking more than 20ms during onTick operation exit/break whole operation in middle and start again in next tick
[Deleted]
fRSI(SelectedSymbol, PERIOD_CURRENT , 14 , PRICE_CLOSE , 0 ); double fRSI( string sy, ENUM_TIMEFRAMES SelectedTimeFrame, int period, ENUM_APPLIED_PRICE applied_price, int shift) { double buf[ 1 ]; int handle= iRSI (sy,SelectedTimeFrame,period,applied_price); if (handle< 0 ) {
gidday. i want my script to work on forex pairs, all trades, from all forec symbols. My script below is working on both usd and aud deposit accounts, but only on BUY TRADES. help! I want all my trades have an sl that is equivalent of $350
I want to get the position ID of a trade right after opening it, but it always returns 0 . Here is the code I’m using: if (trade.Sell(volume, symbol, 0 , sl, tp)) { ulong order_ticket = trade.ResultOrder(); // Trying to get the position ID ulong pos_id = HistoryDealGetInteger (order_ticket
Hello, I'm working on a multi‑symbol Expert Advisor that monitors trade events across several instruments. I know that OnTradeTransaction is triggered when a trade transaction occurs on the account, but I'm not entirely sure about its scope when used in an EA. If I have a single EA running on a
I am developng EA, I want to set max slippage in mql5, do anyone know how to set max slippage
  EAs wont place trades  (14   1 2)
Hi I am new to MT4/MT5 and I'm trying to backtest some EAs. There are a couple EAs I've tested that will place trades like the <Deleted> bot but I tried 4-5 others and they all fail to place any trades. I noticed in the journal that the bots do not initiate any buy trades but has many sell trades
No further information, impossible to debug, since it happens with indicators when the profile is changed and when the indicator terminates. And it happens after everything is already shut down, like IPC connections etc. Next problem: It happens sometimes. Randomly. Any ideas? Source code is
my code below just prints best/worst equity when these are breached. And when equity hits X then closes all trades. This worked fine for oever 3 months til my lateest update 5833. i dont know if this is a bug or is my amateur coding. Here's my coding below. If you see anything that is wrong or can
Since I updated the platform, the strategy tester no longer works. Every time I run a test in the diary, it says "no history data." How can I fix this? Thanks
i wish to include this file TrailingMA.mph in my auto-trading how to initial its function
I found a solution for the many charts that the strategy tester opens automatically in MT5. Till now I closed them one by one with Ctrl F4 and than clicking on the next chart tab. But this goes faster: On your keyboard: Alt W ... this opens the Windows List. Now select the first of the charts you