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
Does no one check sellers code for scams. For example this guy shows his EAs winning but they only win up until the last upload date and then they lose. He obviously has the data loaded in the EA For example, his program was last updated on 28th february 2023 and you can see the great results before
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
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
hi guy i have a part of my code that i try to calla OrderType void CheckAndCancelOrders() { // Verifica se il primo ordine è stato eseguito if (ticket1 != 0 && OrderSelect (ticket1)) // Selezioniamo l'ordine con il ticket { ENUM_ORDER_TYPE type1 =
Is it possible to integrate the DLL into the EA internally so that it can function properly during runtime without explicit import? Market considerations are not needed; this is for personal use only
Hello, In ' Strategy Tester ' > ' Trade Settings ' > ' Margins ' I can adjust ' Unrealized profit ' from ' use unrealizez profit/loss ' to ' do not use unrealized profit/loss '. However, after pressing 'OK' this option switches back to its default setting. Is this a known issue/bug or am I doing
Hi, During strategy testing, results appear that are either really good, or very much into the negative. But when I try to run their parameters standalone, the outcome is completely different, not even close. I observed this on Zen 2 and Zen 4 based CPUs as well, not sure if it is caused by the
I have written an expert advisor (admittedly first attempt) which uses a canvas as well as a cAppDialog to simulate the TradeView trade visualiser and it works great. However, when removing the EA using the "Expert List" option on MT5, it also closes the chart to which the EA is bound. I am clearly
Has anyone ever seen this problem? I ran a single back testing on my EA. Graphical show there are profit on trading. However, the history show loss in all trading. I don't known what the issue is
Hi, Can someone help me please to understand the maximum drawdown in the strategy tester. I have a setting in the EA to close all positions when the drawdown reaches -$50k, that's why you see the many drops in the attached equity chart, that's understandable. But what I don't understand is that the
Sup guys, i hope u can help me again. i got this code. this is from the customindicator: void SendSignalsToEA( const int rates_total, const double &close_price[], int &buy_signal, int &sell_signal) { double ma = ExtLineBuffer[ 0 ]; if (close_price[rates_total - 1 ] > ma) {
I have written a bot that automatically places trades based on multiple indicators, after some trying and compiling I succeeded and went on with Metatrader 5 on Vantage, in the strategy tester it is giving me error code 4756 Invalid Request in the journal, I've already tried analysing the problem
Hi, I encounter this error when I execute my code: ')' - open parenthesis expected , I am unable to solve this error, I don't know what the problem is, would please help me to solve this error if possible? Here is my code: //+------------------------------------------------------------------+ //|
Can anyone explain me how to find contract size programmatically? Like the one which is on MT4 contract specification... Market Watch -> Right Click -> Specification -> Contract size -- 100,000 (for ex, for EURUSD=100,000, for Bitcoin it is 1, for XAUUSD=100, and so on) It is used in formula for
Hy! If Anyone can Help me with this PLEASE.... I have an EA I want a change in little bit that place a stop order at the place of Stop loss for close trade on SL price to fix slippage issue and I also want that stop order act as a trailing stop and stop order has a fix user define SL I attached my
Hi Last night I ran my expert and it automatically traded without any problem. But now, even when I activate auto trading, it still gives an error and does not trade I activated and deactivated it several times, but it did not work. What is the problem and how can I fix it
In Ninja traders 8 platform one can customize time frames when getting the return value for the OHLC by adding a data series which one square bracket would say how many bars ago, and the other square bracket would give the time frame value calculated in minutes. Is the same thing possible with

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.