Hi guys, first of all I'm not a coder and so I tried to create a bot with deepseek. I managed to create it , the strategy work on candle rejections based on pips. The problem is that in every tick backtest the bot is profitable but in every tick based on real tick and on live trading , the EA it's
Hello, I'm not sure about this EA being overfit or not. How do you go about evaluating overfitting? Are there any books, articles? Backtest settings (50ms is my actual delay on my pc) 2021-01-01 -> 2022-01-01 2022-01-01 -> 2023-01-01 2023-01-01 -> 2024 -01-01 2024-01-01 -> 2025 -01-06 2021-01-01 ->
Hi all. I could not find documentation about the Push() built-in method available on arrays. I have tested it and the behaviour seems pretty straightforward, it appends an element to the array with automatic resizing, but I have searched for info both in MQL5 reference from the app (v5.00 build
I have looked and searched the forum and cannot find a proper answer on how to copy set files in the most updated MT5 version. I saw a YouTube video that says the set files are in the Preset folder but it was an old video and my current version of MT5 does not have a Preset Folder. My situation is I
How can an EA know if a market is open or closed ... January 9th 2025 President Biden made it a National Day of Mourning to Honor President James Earl Carter, Jr ... My EA did not get the memo and it does not repeat Thing is although the NYSE closed trading continued around it ... least it did with
Hello, I just download the official Metatrader 5. When I coded, I received the error: 'PositionSelectByIndex' - undeclared identifier In the file Trade.mqh, I don't see any reference to the PositionSelectByIndex. I'm using a pure MQL5 environment, in windows software. And I don't install MT4 in my
... Unexpected token, probably type is missing? & Function already defined and has different type
(14 1 2)
Hello , in my ZigZag.mqh file when I compile I'm receive the following errors : 'Create' - unexpected token, probably type is missing? ZigZag.mqh 72 10 'Create' - function already defined and has different type ZigZag.mqh 72 10 'Calculate' - unexpected token, probably type is missing? ZigZag.mqh 89
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 developers. I am close to finishing my EA which i want to protect from unauthorized users. I have searched over this platform but I've only came across MQL4 3 simple ways of protecting your code. I have searched on the documentation of MQL5 but seems like it does not touch anything to do with
hi guys i have app that write a txt with this syntax in Mql5\Files EURUSD,BUY,0.10 the mt5 read perfect load data but when execute return error but in my accont i have 10k and if i run the same command by hand it works my code // ===== COMANDO DO ORDER: "<SYMBOL>,<BUY/SELL>,<VOLUME>" ===== if
Can anyone help me trace it and remove it? No real answers or real help came from support, either the broker or MetaTrader 5 and MQL. Keep opening trades randomly on all pairs almost every hour, causing losses if not closed manually, and I tried all the troubleshooting, and I don't want to delete
Hello All, I'm new to this forum. I have created 1 strategy using pine on tradingview which produces buy and sell signals, Integrated with PineConnector and MT5. The condition of the script is that it doesn't has SL/TP. It exits on opposite signal. I need to use specific lots eg. XAUUSD lot=0.02
I need help if anyone know how to do this or has a bot please reach out to me
I am making a EA that will run on accounts with low leverage. To avoid runtime errors, I am trying to find the maximum number of lots that can be opened given the available free margin. Here's my attempt at the calculation. double marginRequired; double freeMargin; double maxOpenLots; void OnInit ()
Hi I rent a VPS for a month and I run it , My question is when synchronization With expert advisor and completion Should I turn on automatic trading or close it , because it closes automatically when I activate the VPS ? Should I add the expert advisor to the planned ? And how to choose the...
How to increase the font size of the opening price on the chart
Hello, I have Garnet. However, it is difficult to know which signals are available, as many are not available though listed. Is there a filter or some other way to only display the signals compatible with Gartnet and Metatrader? Thanks
i have a take profit of " 150 " points but , I'd like to partially close a position if it get 50 points profits then modify the remaining position with a take profit ( 100 points) , here's my code the problem is that the position closes fully at 50 points , i understand why but can't figure out how
im trying to test a new hft ea but get the error message invalid price . i think its the buy and sell stops that are too close to chart price. how can i find out if thats whats happening, and what hte min distance should be
Looking to build good backtesting (optimisation) pc. - whats better for backtesting (optimisation) on MT5, ryzen 9 7950x or intel i9 13900k My understanding is that AMD does better on the multicore but Intel beats it on single core processing. Also will 64gb ram be enough or should I splash put on
Hi guys nayone can help me to understund why not write the file .csv in File foder? this is my code #property strict double spreadSumCurrentMinute = 0.0 ; datetime currentM1BarTime = 0 ; string FileName; //+------------------------------------------------------------------+ int OnInit () { string
Right after midnight (00:19 for example), I got the equity that drops significantly and temporarily, it all goes back to normal levels after midnight. my EA is a grid that consists of buys and sells. I tried to hedge my grid before midnight so that there are the same number of buys and sells but the
my errors do not happen often, however, I know that it will happen on 8 of 16 cores/threads if i start optimiser with all 16 threads enabled. But makes sense to me that it would so i never start optimiser with more than 6. But I am getting 1 core, never the same core, every 16 hours or so, with the
Hi i have this code for extract the history of the day double CalculateDayTotal( string symbol = NULL ) { // Ottieni mezzanotte di oggi (inizio del giorno) datetime today = DateOfDay( TimeCurrent ()); datetime now = TimeCurrent (); //Print("today ",today); //Print("now ",now);
I've read a few articles, and still have yet to find a working solution for this, while also trying not to deviate too far from what the documentation says to do. I'm trying to create my own custom SPY symbol ( different than the default SP500m data provided by the demo server ). For ease (and THIS
Hi everyone, I've read some topics on this function, but I'm really stuck with this situation. I wrote two functions to get the takeprofit price and the stoploss price for a position that is already opened manually. Takeprofit and Stoploss prices are calculated knowing the details of the opened
Right now I'm studying how to use AI to convert my ideas into an EA in MQL5 language. Has anyone had experience doing this? I'd like to share ideas. Currently, I'm interested in using Cursor, QODO, MT5 coder. Has anyone used any of these before
Hi everyone, I have always programmed in mql4, now I am using mql5. I have a problem: I am doing tests for an expert advisor that trades two pair at the same time (spread trading). To use qualitative data, I create custom symbols. However, for example, when I have to test the AUDCAD - AUDCHF pair, I
Hi,
within the EA it is simple to get the name of my EA using following code:
MQL5InfoString(MQL5_PROGRAM_NAME)
But I couldn't figure out to get the version number of the version #property field. Is there a similar way to get the version number? My workaround at the moment is a #define after the...
Hi, I have a problem with margin calculation and would be very happy if someone can help. MT5 build 4885. MetaQuotes Demo Account Netting. Leverage is 1:500. Deposit currency is EUR. If I buy 1 Lot EURUSD all is like I expect: Margin is 200 like I expect. Buying another lot results in margin 400
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.