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
As in the title, I want to have realtime information via MT5 in Python whether a given symbol currently allows trading or not. I want to have the same real-time information as what I have when opening MetaTrader and attempting to buy/sell a given instrument. The UI will not allow me do that for
How can i get total position with PositionGetTicket() MQL please someone help me
I want to build two information panels in one indicator and use the Canvas class for that. Because I want only 2 bitmap label objects on chart. I could find this article for creating a panel using canvas class , but unfortunately, it is only possible to create one panel in each indicator. - If you
Hi, i need help. I would to display a bar, cloured, to indicate a status. What i have to do ? Is it possible to have an example of code ? thank you
hi guys i have this part of code , i call it from button void CPanelDialog::OnClickButtonSellLimit( void ) { // Magic Number double lotSize = StringToDouble (m_edit.Text()); // Reads the lot size value double stopLoss = StringToDouble (m_editPrice1STP1oco.Text()); // Stop Loss (0
Hello everyone, I am working on an EA that follows an Alternating Buy/Sell strategy based on price movements, but I have encountered an issue where it keeps opening consecutive Sell orders instead of alternating between Buy and Sell . Strategy Requirements: The EA starts with a manual Buy order (0.1
consider the following code: /* * Curiously recurring template pattern * In my use case the following inheritance tree was intended to work with Candlestick Patterns */ #include <Arrays\ArrayObj.mqh> // base class for all patterns template < typename Derived> class CBase: public CObject {
Hi, i got a few strategies developed and coded by me, i test them to be profitable for the last 7 years (2018-2024 included). i now have a strategy in my hands that is decently profitable 2016-2024 but is not profitable 2012-2015, is that a reason to not take it into consideration? In my mind is the
Please Help What is the solution to this problem ?? Please help and thank you
Hi guys The strategy tester test my strategy well on major currency pairs such as EURUSD、USDCHF. But when I test my strategy on index such as US500、JP255,the profit and loss shown in the strategy tester is much larger than I expected. The contract size of my US500 is 1. So each 1.0 move of the
Hi all, I'm trying to recall the attached indicator with the followng expert, but it doesn't work. Probably parameters settings are not correct. Could you check please? double Open_Line[] ; int Open_handle ; int Bars = Bars ( Symbol (), PERIOD_CURRENT ); void OnInit () { ArraySetAsSeries
Good morning everyone, I was wondering if anyone has experience with any AI that can really help you with writing MQL5 code and, above all, that understands the difference between MQL5 and MQL4. From personal experience, I have tried several AIs, I can say that my experience with them is rather
Why do i got "failed instant buy 0.01 XAUUSD at 1810.70 [Invalid volume]" message when doing EA validation ? My product needs user to select the forex pair before it can trade
Hi guys, I am very new to this platform so please bare with me... I have recently started building an ea using mql5. I have coded it in such a way that if the previous DEAL_ENTRY_OUT returns a negative profit value, the buy/sell will not be executed until a new bar has been printed. As part of the
I want script that close all pending orders When OnTick accures. I tested this but not happens: #include <Trade/Trade.mqh> void OnTick () { int total= OrdersTotal (); for ( int i= 0 ;i<total;i++) { ulong ticket= OrderGetTicket (i); if (ticket== 0 ) continue ;
Hi everyone, I'm having trouble attaching my custom Expert Advisor (EA) to MT4. I’ve written a VWAP Scalping Strategy and saved the .mq4 file in the MQL4/Experts/ folder. I also compiled it in MetaEditor, and there were no errors. However, when I try to attach the EA to a chart, nothing happens
Hi guys i have a part of panel dialog that create a edit box //+------------------------------------------------------------------+ //| Create the "Edit_Lott" button | //+------------------------------------------------------------------+ bool
I have an EA with 2 Timeframes of 2 different indicators, both are in the input variable I want to optimize input ENUM_TIMEFRAMES timeframeIND1 = PERIOD_M10 ; input ENUM_TIMEFRAMES timeframeIND2 = PERIOD_M30 ; but there is a condition: timeframeIND1 < timeframeIND2. Actually to get out of the way
I need the correction for this code as I am getting the error warning: -------------------------------------------------------------------------------------- double GetPriceValue(string cPair, int nPeriod, int bar) double price[1]; int priceHandle = iClose(cPair,nTimeFrame1,0);
... let me explain. I want to use the iSAR. My Code looks kind of like this: double asar[]; int OnInit (){ ArrayResize (asar, 4 ); ArraySetAsSeries (asar, true ); sar = iSAR ( _Symbol , timeframe, sarStep, sarMaximum); // aktueller SAR-Wert } int OnTick (){ CopyBuffer (sar, 0 , 1 , 2
Hello traders. im opening this topic in order to discuss and find the way of using HFT eas in normal brokers.. lets see if we can figure it out
Hello, I'm backtesting an EA, but I receive completely different results on two different brokers (GMT offset is equal to -7200 for both brokers). One probable reason is that on one broker time stamp of historical data looks erroneous. Look at attachment: 2017.07.08 is Saturday, but historical data...
I know that this topic has been discussed more than hundred of times. But still... The code is following: void OnTick() { int m_magic = 123456; // Magic Number MqlTradeRequest m_request; MqlTradeResult m_result;//-- Clear structures m_request,m_result ZeroMemory(m_request);...
Calling positionClose from the CTrade class doesn't trigger the onTradeTransaction event. Is there a different way I should close a position
Hi Better has really good EA and is winning the championship Participants - Automated Trading Championship 2007 Profile Better - Automated Trading Championship 2007 What is NN ? Where are the NN threads in this forum? Can anyone here make this EA El cid
I have a problem with reading and Opening File . I guess my Code is fine. The Problem is where the File is created, when i create one with int fileHandle = FileOpen ( "DasisteinTestFile.csv" , FILE_WRITE ); Its Created and directly deleted after the test in
Is the MetaTrader5 Python API still fully functional? I haven't been able to use it to login to my terminal or get my trade history

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.