Expert Advisors and Automated Trading - page 69

  Trade Blocker EA  (6)
Hello, I'm trying to code a EA to block orders being opened once the max number of trades is opened on the terminal. But I'm keeping Autotrading enabled. Just trying to block Additional trades from Any charts or EAs. Here is the code so far: If there is a EA for this that exists or a way to Limit
//+------------------------------------------------------------------+ //| try17.mq5 | //| Copyright 2022, MetaQuotes Ltd. | //| https://www.mql5.com |
[Deleted]
Good Afternoon, As I increase the number of remote agents in my LAN, I am staring to get the "occupied by another terminal" message @ Diary tab when running Strategy Tester. Unfortunatelly the only way I see to unlock the port is rebooting the machine. Does anyone know the reason for this message...
It appears that I'm having some difficulty understanding MT5 optimization and forward testing, but for now, I'll focus on optimization. In certain situations, I've had highly profitable optimizations, which I can divide into two sections: optimizing over a large three-year historical data and
I'm trying to understand the Standard Library by working my way from top->down. I cannot make sense of what the following syntax is trying to accomplish. Its found within the Include\Object.mqh. It appears like its the highest Object from which all other objects have inheritance. Perhaps its a...
Hi, I am new to EA & MQL5 and learning this new system I have created my Code for Trailing Stoploss but it is not working during Testing. Please help me. ... Improperly formatted code removed by moderator. Please EDIT your post and use the CODE button (Alt-S) when inserting code. Hover your mouse
From your experience and research what advise would you give to someone trying to create an AI based expert advisor ,what to look out for what could be added ,what could be requirements in terms of computing power
  EA name search  (2)
Hi all, I'm looking for the name of an EA that has this settings (see image). It is supposed to be a scalping EA. Can someone help ? Thanks in advance
CPositionInfo ::Type() gives always 0, for Buy and Sell positions. double ask = NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_ASK ), _Digits ); double bid = NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_BID ), _Digits ); double P = NormalizeDouble (
Hello friends, Please can anyone help me resolve this issue? I have watched videos on how to install EAs on MT4 and MT5 Trading Terminals but I have installed 2 EAs on the MT4 and MT5 Trading Terminals and none of them is appearing even after the under listed actions: (1) Restarting the MT4 and MT5
Hi! I'm currently using two indicators in an EA (I'm novice) and would like to create a dependency between the two. More specifically, I'd like that the result of the first indicator be used as one of the arguments of the second. Indicators are however usually declared in OnInit (handles created
Hey I am trying to create a Macd EA that also has a stochastic and MA indicator integrated together in it. I'm currently working on the Macd portion of it and am confused on how i can make the EA publish a drawing/arrow on the chart when the condition to buy is met on the macd. I need to debug the
So i create a multidimensional array, 2 of them to be exact as an example. arrbuy[][3] arrsell[][3] these will store all my buy and sell positions that are open. I then populate the index with arrayresize and use the number of open positions as the size of the first dimension for both arrays. I then
Hi I'm quite a newbie when it comes to programming EA's and programming in general. I have a situation where I have been coding an EA for multiple symbols, and my global variable keep on changing to zero after I have assigned the value of 1 to it. The globally declared variable that keeps resetting
Good afternoon forum, As per the title of this thread, I want to limit my bot from firing in many, many positions into the market. I am happy to compound and build in to positions each time an order is triggered but I would like a maximum limit to be able to manage my maximum exposure. Is there a
Hi I'm confused about closing a trade. I am working on a multi symbol EA. So I have an array of symbols that the code works through. I also have a corresponding array of tickets for any trades that are opened. I'm trying to close trades when exit conditions are met, using their ticket number. Most
Hi! I'm aware that renkos have diminishing returns as timeframes go up. In fact in TradingView.com I use renkos on a 1 second chart and the results aren't bad! I'm new to Metatrader and I'm curious to know if renko bricks can be used with e.g. a 1 second timeframe, or even "faster" (more granular)
Has anyone used this optimization option? Any guide for its use please
Hi, i use Metatrader 5 on Windows 10 and another with Server 2022. While i played around with the MQL Wizard (EA generate) to learn the language, i recognized a different list of Signal Modules. (Screenshot) Does anyone know the reason? It is the same build, the first Windows 10 installation was in
Hello every one, Can I find a solution to this erreur " Array out of range "? My strategy is based on the intraday support and resistance levels, It's working fine in backtesting and a demo account. But the checker MQL5 detects this error in line 499 (double ret...0...). } double cHigh[];
Hello. I am backtesting. I've made it to the point where I have a position. However, the position cannot be closed. I have the ticket number.(#1) The error number is 4753. I would be happy if you could tell me. ... Improperly formatted code removed by moderator. Please EDIT your post and use the
Hi all, When testing/visualizing the outcomes of a EA, I observe irrelevant arrows/deals being displayed on the chart. - I'm pretty sure they are not related to relevant deals, as OnTradeTransaction doesn't display any message (even basic) in the journal at the corresponding times. - Also, on the
Hi i need to count how many pairs has opened positions on my account. It can happend that one pair has more than 1 trade open and in that case must be counted one time only. Thank you
I want to have several buttons on the chart window and when I click on each of them, the Draw Rectangle toolbar will be activated
Hello My name is Andres, i will apreciate if somebody knows how to change lot size in MAMA expert? And also the Meta editor wont let me modify anything. thanyou very much. Andres
I have an EA. I want to change lot size in this EA. it takes 0.001 lot size for currency pairs and 0.10 for metals. Can anyone help me to change LOT SIZE. Please find attached file....
How can I orderclose with mql5? Sorry for a basic question. I searched for an hour and couldn't find it. It's too different from 4 and I can't understand it well
Hi, I have a problem. In my trading history or in opened trade list I see differnce in TP or in SL. I set example TP and SL = 5 pip. After opening trade the TP and SL has not the required value: The EA open a trade usdjpy at 113.459, I see TP 113.504 and SL 113.404. But I send with the OrderSend
Hello everyone, I need you help to finally upload a .set file to make a backtest . I downloaded a .set file and want to replace the current EA settings. I just went on the settings, then upload in my backtest windows but nothing happpened... Thank you
Hello traders, i have 3 problems with optimization of mt5. I hope that experienced people can responds them :) 1) if i disable any local agents or local network farm and enable it, it doesn't respond sometimes. For example right now, it says "ready" for local network farm but still i can not see any