Expert Advisors and Automated Trading - page 10

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
Apologies for any confusion beforehand, I'm pretty new to EA's and Mql5. That being said I made an EA that was seemingly working fine, then after editing a few things, went to test it again, only to find my Sell function not working because of ' Invalid Stops '. I've had this issue before and was
  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 //+------------------------------------------------------------------+ //|
Hi, I'm working on a netting account. As far as I understand: by reversing an existing position the position will be closed and a new one will be opened with a new id and the contrarian type (buy --> sell or sell --> buy). Am I correct here? But I have difficulties to access to the newly opened
Hi, Is there a way to find what the balance was after a deal finished in the OnTester method at the end of a backtesting pass? I noticed when we traverse through the deal and their properties, in the documentation ENUM_DEAL_PROPERTY_DOUBLE doesnt have a resulting balance property. 1. Is there
Hi. I have the following code from the `TrailingMA.mqh` file that comes with Metatrader: //+------------------------------------------------------------------+ //| Checking trailing stop and/or profit for long position. |
  EA Creation  (2)
I have a easy strategy. How can I create an EA for the same? or where should I ask for this help
  DialogBox issue  (1)
Hi ! I have one question, I have a dialog box on the chart, and everutimi I minimize it it goes on the left top corner and it is dificult to drag it because there is also charts trading panel it that location. Is it posibile to change the place where my dialog box will go when minimize it
Dear Coders! I started a backtest. My expert advisor is trying to open a position immediately at time 00:00. I get 'Market is closed' (TRADE_RETCODE_MARKET_CLOSED, error code: 10018) message, because the trading is start only at time 00:01: How can I check in advance if it is possible to open a
Hello, Can anyone tell me why these bands appear in the MT5 strategy tester? Thanks in advance, (No indicator loaded)
Hello everyone, I'm experiencing a critical issue with a custom stepped trailing stop that I've implemented in my MQL5 Expert Advisor (EA). The trailing stop logic should be as follows: Stepped Logic: The trailing stop moves the stop loss in fixed increments of 10 points. Favorable Movement Only
Hi guys, I created a GUI, and when I click a checkbox, it creates two lines on the chart. However, the lines also appear on top of the GUI. Would it be possible to make them appear below the GUI? I tried this, but it doesn't work. Thanks! // Traccia la linea superiore ObjectCreate ( 0
Hi! I know many already use AI to help them place orders manually through chats and report easy gains. On here i see many EA in the topCharts are AI based promising to interact with AI to place and manage trades for you. Since there are usually no backtests possible i would like to start this thread
Hi! I just wanted to ask if someone could 'spot' me and double check if my understanding is 100% correct with regards to: 1. Coding an uptrend would be: Open[0] > Open[1] Coding a downtrend would be: Open[0] < Open[1] 2. Coding a IsRising would be: Momentum[1] > Close[1] Coding a IsFalling would be
Hi there guys, i just wanted to share this Expert i've created for buying and selling on semi-auto trading using hotkeys that will allow you to open trades in both direction using only letter "Q" and letter "E" on your keyboard. Lot is fixed to 1.00 but you can adjust that in your code preference
Hi everyone, I am looking for what I feel it's a really simple EA, I basically just want to enter the trade with a fixed SL and TP as a market order. It doesn't even have to calculate the lot size for me, just set the SL and TP based on the amount of pips that I give it... I'd prefer a free one but
hi. I have error in my expert. you can find my codes and errors in below. please advice me. thanks. //+------------------------------------------------------------------+//| crossma.mq5 |//| Copyright 2020, MetaQuotes
  Expert advisor questions  (11   1 2)
Hello, I have a question to the trader who used to trade with self made EA that is coded 100% realisticly and was tested. What was your expierience trading EA in real time, were the results similar to the tested ones? I am not talking about scalping or speed trading, just normal trading with
Hello! I have trained a neural network and have the MyModel.net file but the EA or Strategy Tester cannot find the file. 1) I am supposed to put the model into the MQL5/Files folder for the EA to work on a chart using the common directory. But the EA cannot find it. 2) Also the strategy tester
Context: This is my second time using MT5 with my python code and it used to work perfectly fine placing trades around 6 months ago. Now when I try connecting via the same exact code I get both of these error codes when I try to place trade depending on which algorithmic trading option is enabled
Hi guys in my program i have part of code that send in chart a limit order i sett it but the strange effect is : when market price touch a limit price , the trade not go in execution and disappear from chart like cancel , why ? ?this this is my code void ExecuteOrders( double lotSize, double
While running an automatic market tester for verification, I encountered an error with my EA that is intended to only trade US330. As I understand that this might violate the market rules for EA limitations, I updated the OnInit function to alert the user instead of returning a non-zero error code
I need an algorithm written for me to buy when price crosses over sma - 200. And sell when certain prices hit. And on the other side when the price crosses under sma-200 sell, and then buy when certain price hits
Hello friends The code below has two problems that I don't understand. 1. When I make the constructor private, the compiler gives an error. Even when I define a single pointer, it gives an error without instantiation. Shouldn't we do this for singletons?! 2. The array that I have defined to store
Hi all, I'm testing an expert in strategy tester . Stop orders are correctly placed from the expert, but for some reason are not filled when price level is triggered. Parameters order are settled as follow, without slippage parameters or similar. request_3.action= TRADE_ACTION_PENDING ;
Hello all, Long time lurker, first time poster, as I always find my answer by searching the forum. Not this time though, and I have been scratching my head for a while. After calling ChartSetSymbolPeriod (either to change Symbol or Period), my EA deinitializes (as it should), my chart is updated
//+------------------------------------------------------------------+ //| Antfruition.mq5 | //| Expert Advisor for MT5 | //+------------------------------------------------------------------+ #property strict
Hi guys, I have a script composed of two scripts: PanelDialog.mqh and TradeManager.mq5 . I'm trying to access the function CheckAndCancelOrders(); , which is inside a class that, in theory, should be fully public, so I should be able to access it. However, there's no way to make it work. Basically