Expert Advisors and Automated Trading - page 12

Why did you post your coding question in the MT 5 General section (a miscellaneous catch-all category) instead of the MT 5 EA section (non-indicator coding)? General rules and best pratices of the Forum. - General - MQL5 programming forum ? (20 17 ) Next time, post in the correct place. I
Please...have an idea on how i can convert my code to mt5 ea robot and trade succesfully.... The Code is develop on chatgbt with my best indicator, i just need it to be runing as ea robot..Any Help
Hi, I am using ADX indicator and the values I received at the time of execution of trade was 69 and 72 for 2 consecutive bars (increasing), while the values shown in tester for that trade was 62.5 and 58 (reducing). I have observed the same for other indicators also (Bollinger bands, MACD, EMA etc)
the red and gray lines seems to be the line graph of the "open ask & close price "... my EA does not hay ANY indicator.. where tthose lines comes from ??? and how to disable them ??? the "help info" of the MT5 does not offer help
I have been trying to find an answer for this but still unsuccessful. Seniors, kindly guide. I want to do it using MQL5
struct economicNews { MqlCalendarEvent event ; MqlCalendarValue value ; MqlCalendarCountry country; }; //+------------------------------------------------------------------+ //| |
Hi, I work now with dark venus with several weeks, and most of the time it's working well. But sometimes, I have an exit on live for some trades that should'nt happen, and when I backtest the same trades, It not closing where the live is closing. I'm on MT5. Please check the two images below that
Can someone help me with this? I’m optimizing a new EA, everything begin correctly but then some Agents finish while others are stuck going over 100%, the overall optimization remains blocked. Optimization at 1:53 pm After 10 minutes not even a new pass executed
I want to calculate the data through matrix and convert the one vector to array for indicator show. And it is found there is no output array function in matrix or vector. the "row" or "col" member only output vector. https://www.mql5.com/en/docs/basis/types/matrix_vector Is it necessary the get all
  Look for Best EA  (10)
Can someone tell me which ea is the best in MQL5 market ? There are so many EAs in MQL5. It is difficult to find good EA
For me personally I build strategies based off indicators so I follow something like the darwinex multisymbol template posted on github. I have a bunch of enums for deciding lot size, sl and tp based on ATR, new filter enum, and a bunch of functions I copy and paste over for placing trades that have
  Invalid stops  (1)
Hi, I want to set the stop loss for the trade to a particular % of the price. For making it multiple of the ticks, I used the below code: double tickValue = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_SIZE); double price = (type == ORDER_TYPE_BUY) ? SymbolInfoDouble(_Symbol, SYMBOL_ASK)
folks, it's a big pain navigating between charts and editing indicators (add, remove, change color, change time frame....etc) in mt5....so i was wondering if anyone managed to hotkey important charting and trading functions using autohotkey and elgato steam deck ? i was thinking it might be possible
Hi all, I'm trying to build a hedge-based EA where: A manual trade is opened (BUY/SELL) If the trade goes into 2-point loss, a hedge trade is opened in the opposite direction Once the hedge trade gains 3+ points, I try to move the hedge trade’s SL to breakeven I am using trade.PositionModify(...)
  Price_Channel_v6-ea  (88   1 2 3 4 5 ... 8 9)
Hello. Today I come to propose a new method to you which proved reliable manually. I know that newdigital uses this indicator on its method, but today the approach is different . Here several weeks that one of my best friends trade with this method than it improved much and who is advantageous still
Yesterday when I was doing some backtesting of EA I realised that ticks data were missing for year 2023 and before resulting the testing quality to be 0 What could have happened? Do I need to contact the broker for this? I have tried to delete all tick data and tried to re-download but data are
Hi all, maybe someone knows whether there will ever be the possibility of showing "Positions" in the backtest report? In MT4, they were clearly listed using their Open price + time, Close price + time and their total profit/loss. In MT5, only "Orders" and "Deals" are shown with no real connection to
hello, I'd like to run many test with different parameters and/or on different pairs automatically. for example I'd like to test my EA on EURUSD2012 and CADCHF2011 wihtout having to manually restart backtest at the end of the first run, in this way I could let my laptop work overnight and collect
Cannot load indicator/Cannot load custom indicator error MT5 tester My Ea runs normal when trading but when I test it I get the mentioned error, anybody knows how to solve it please? Thanks
My question is does the base currency of an account require corresponding symbols to be enabled in market watch? For context. My ea runs on the eurusd pair. It uses the OrderCalcMargin function. I noticed it was unable to trade without both the eurgbp and gbpusd pair also present in the market
I can't find a clear documentation about the values returned by the SYMBOL_TRADE_CALC_MODE. Print ( SymbolInfoInteger ( _Symbol , SYMBOL_TRADE_CALC_MODE )); would result in 0 for forex (I guess), 2 for CFDs.. do you guys have faced a similar situation
please create the metatrader 5 python module for linux users. A linux user cant connect to the MT5 terminal since the API is only compatible with windows, make a version that supports linux to so that it can be installed via pip in linux operating systems too, consider everyone please
Please, how I can check if market is open or closed in MT5, I cant find answer. something similar to MT4 - MarketInfo(Symbol(),MODE_TRADEALLOWED) this command doesn't exist in MT5 anymore. Thank you
I'm trying to use the following function to "see" if the last trade resulted in porfit or loss. The problem is: the function is returning "true" whether the profit is positive or not, that is, always returns true. I don't know if i'm using the wrong "get" functions or misunderstood how they work....
I've tried multiple methods to detect the stop-out event while running an Expert Advisor in the Strategy Tester, but none have worked so far. The OnTradeTransaction function doesn’t seem to catch it, even though there's an ENUM_DEAL_REASON type DEAL_REASON_SO that should indicate a stop-out. I
Hello all, on trading view its possible to create currency baskets like the yen basket (JPYBASKET) but on mt5 I'm not sure how to go about this. I have zero experience in create custom symbols other than downloading tick data from dukascopy so I'd thought I would ask if anyone knew how to do this
These are the results of my strategy, both use data based on real ticks of the same currency pair and the same strategy with the same inputs and conditions, the only difference is that the real tick data from one is from Pepperstone broker and the other is from Dukascopy. Would anyone know why they
Hello, I'm sorry if the question sounds a bit dumb. I sought ways to improve my strategy and decided to add Parabolic SAR signals. So I wrote this small class to handle that: class ParabolicSARSignal { private : int handle; // Indicator handle double
How can I set the default value of an integer input parameter based on chart timeframe? For example if loaded in 1min, the default value becomes 123 and for 5min chart it becomes 456
EA works with the Strategy Tester. It also works on real accounts. However, I get an error in the automatic market validation. The error is "strategy tester report not found". What should I do to resolve this issue? The EA is for sale, so the code is private