Expert Advisors and Automated Trading - page 3

I recently raised the following issue , where I was having problems using input variables in a common file (MT5 V5.00 build 4150). I eventually got to the bottom of the issue and believe that I have found a bug with input group when used with iCustom(). The input data is shown here... enum LogLevel
Hi I have created a VWMA custom indicator , and using an OOP class to get VWMA_Tx (triple period values) for different timeframes. The class is however returning _Sybmol + _Period data only, irrespective of initializing class with different time frames. Please help me out, what is wrong in my code
Hello First ever post, and total novice in mql5. i am coding a practice EA to learn the language and platform. I have placed the trade.buy after checking if any open postions, despite this conditional check the ea seems to just keep placing more orders. Another weird thing that is happening is a few
Hello. I'm new to using the OnTradeTransaction Event. I'm using it to detect pending orders that I place manually from a different terminal. The pending orders should trigger the EA to start a trading session based on the pending order parameters. That's working very well. But now I want to delete
Hello, Please see the attached as I am trying to add my EA to market for sale but getting the attached error. EA runs perfectly when back testing. Thanks
int bandsHandle = iBands ( _Symbol , PERIOD_CURRENT , BB_Period, BB_Deviation, 0 , PRICE_CLOSE ); double bbUpper[]; double bbMiddle[]; double bbLower[]; CopyBuffer (bandsHandle, 0 , 0 , 1 , bbUpper); CopyBuffer
Example: Initial range (pips) = 50 pips. Multi range between orders = 2 . 1st buy trade 0.1 lot; 2nd buy trade 0.2 lot opened below 50 pips on a new candle open. The indicators are still aligned ; 3rd buy trade 0.4 lot opened below 100 pips on a new candle open. The indicators are still aligned ;
i'd like to code EA which has a 2 step signal , if something happens ( like a cross ma or anything ) , then wait for 1-5 candles to see if another behavior happens and only then give me the signal the problem i'm facing is that after the first check , i don't know how to keep the value static for 5
Is there a programagic way (like SymbolInfoDouble, or AccountInfoDouble) to get the broker's commission per lot. From the market watch window, I can get it by right click on a symbol -> symbol specs. Anybody has an idea how the market watch window implemented it? I suggest this feature should be
Hey dear, I have been looking for something to reduce the lot of an pending order. Let's say I put the a 10 lot buy limit. Later on I want to reduced it to a 5 lot buy limit, before it got open. It's there a function to do so
Hi all I have a short simple code here below, if anyone could help please , it would be really appreciated. Main idea is when the fast ema cross over slow ema then to open a buy position and actually it works quite well with the code below. However I need your help about how to close the position
Hello, champs! Tried to search around and couldn't find a proper solution. I'm trying to create an EA that detects pending orders I place from my mobile terminal. It will extract some information from the order and close it. It will instead remember the details, and calculate new entries and exits
Hello, When backetsting an EA on strategy tester on MT4, will the value you use on strategy tester be the exact same as when configuring the bot for live trading? Or is one pips and the other points? If I use 3250 points/ pips as TP on strategy tester, will I use the exact same 3250 as the TP under
Free to write MT4 EA program, I want to practice, EA programming and learn excellent trading strategies, if you want to program can find me The following pictures are some of the EA I programmed and the results are not so bad
  Better NN EA development  (863   1 2 3 4 5 ... 86 87)
Hello everyone, I will start this thread by first stating that if you are a beginner and have no high level programming experience you are better off reading other threads. I intend this thread to be for the very experienced programmers with some Artificial Intelligence background. I am attaching...
I have a piece of code that calls into the canvas CreateBitmapLabel() method... #include <Canvas/Canvas.mqh> CCanvas canvas; canvas.CreateBitmapLabel( "test_name" , 0 , 0 , width, height, clrfmt); This in turn makes its way down to the Create() method... bool CCanvas::Create( const string name
  Don't load ea  (3)
I am having these these as shown in the photo . Please help us to install EA
Hello. I have on my onInit many return(INIT_PARAMETERS_INCORRECT); statements to exclude any combination that doesn't make sense and save passes. That still leaves tens of thousands of possible passes if not more. However the genetic based algorithm only runs 512 passes out of which most are with
Hello friends! I am building a NextJS project to improve my full stack skills and am wanting to know how to get trade/account history to display on a dashboard? Much like MyFXBook and FXBlue do it! How do they do it? haha I know MYFXBOOK must use some kind of api as you can enter a username and
Hi, I wanted to test my strategy on stock and had to changed the demo account, using VantageFX-demo account. Had to switch the filling_type to SYMBOL_ORDER_MARKET and then I got the " Market closed " error on order execution. With other order types is got "unsupported filling type". I can't seem to
Does anyone know how I can know how many lots I can open for example in a buy knowing the available capital? double max_lots() { double lots = MathMin (( AccountInfoDouble ( ACCOUNT_BALANCE )* AccountInfoInteger ( ACCOUNT_LEVERAGE )/ SymbolInfoDouble ( Symbol (), SYMBOL_TRADE_CONTRACT_SIZE ))
Hey everyone! I'm excited to start this thread and share a trading ideology and EA that I believe can benefit everyone. But before we dive in, let me introduce myself. My name is Philip Pankaj, and you can find me on LinkedIn . I've spent nearly 10 years in trading, working with various algorithms
is possible an indicator call all symbols listed on market view and each chart charge this indicator
Hi, i recently wrote 2 complementary EA in order to get familiar with NamePipe. One EA send data and the other one receive. The transfert i made accross platform. SENDER EA is on one plateform and RECEVER EA is on an other platform. Both MT5 1. Each time i delete the SENDER EA from the chart, it
maybe somebody already has got this script? mind sharing? script reconnects favorite account once it detects that there are no quotes or a freeze occured
Hi guys, i'm looking for a MT4 EA that opens at specific price a position based on a market order with predefined SL and TP, like the image below. The reason is simple. It is better for me to enter at market price when the price is reached, rather than placing limit orders that often do not open a
I am always getting the same errors and am not intelligent enough to understand what is wrong with this line in the code. Can someone please help me? It's really appreciated. code line double maShortPrev = iMA(_Symbol, PERIOD_H1, ShortMAPeriod, 0, MODE_SMA, PRICE_CLOSE, 1); error: 'iMA' - wrong
Hi All, I am looking for a potential solution to control the passes/parameter combinatations in strategy optmization. When running strategy optimzation (slow complete, not genetic) the ontesterinit() will create the list of all combinations of the parameters selected for optimization. With
Note for Moderator : I had a post earlier with same issue ( https://www.mql5.com/en/forum/469030 ), however I deleted it since matter was resolved when I just transferred the files to different location. I am not sure if the earlier post is still there or not!!! I am creating this new post[2], as