Expert Advisors and Automated Trading - page 16

Hi everyone Ive been playing around with a lot of EAs for some weeks now until I decided to test the Quantum Emperor EA today. I used the demo to backtest and the results were... too good to be true Checking the reviews and comments it seems that this guy bribes ppl who blew their account by giving
Looking at the journal, you can see it is trying to modify the same position with the same SL and TP every tick: 2024.05.23 13:15:36.661 2024.05.01 21:00:58 order performed buy 1 at 1.06904 [#6 buy 1 EURUSD at 1.06904] 2024.05.23 13:15:36.663 2024.05.01 21:00:58 CTrade::OrderSend: market buy 1.00
Hi , i try to look if exist a oreder all close , i find many article but all example have this include #include <Trade\PositionInfo.mqh> #include <Trade\Trade.mqh> but where i find this library ? thanks
Hi, Is it possible to add more than one EA to a single chart ? When I try, MT5 always remove the already installed EA... why this limitation ? Thanks! Erwann
So it seems that that 'classic' way to calculate ATR stoploss can fall apart depending on the brokers configuration for a <symbol> double CalcLots( double PctEquityX, double SlDistanceX){ double ticksize = SymbolInfoDouble ( _Symbol , SYMBOL_TRADE_TICK_SIZE ); //<-- Smallest px increment
Goal to get new specified Forex Session start-end times in CPRSession[] ... (Code in ' bold' letters) ForexSession are calculated and populated in cFxSession[day][sessionID] and arrayprint used to display calculated values. CPRSession[] is created to get particular sessionID start-end times (Broker
Hey everyone just wondering what peoples opinions are, I’ve come across this strategy quant program and the "quant analyzer" part of it looks pretty cool for doing the Monte Carlo optimizations.. I’ve been having trouble get good results in live markets even after getting good back & forward tests
Hi guys, I'm coding a range breakout strategy, and as the title says, I'm having difficulty with the that particular problem
void Partialclosing(){ double ask = SymbolInfoDouble ( _Symbol , SYMBOL_ASK ); double bid = SymbolInfoDouble ( _Symbol , SYMBOL_BID ); ask = NormalizeDouble (ask, _Digits ); bid = NormalizeDouble (bid, _Digits ); for ( int i = PositionsTotal ()- 1 ; i >= 0 ; i--){ ulong posticket =
Hello, Summary: I have an EA that loads several indicators as resources, and I've been using this EA since last year. My EA has been working correctly in the Strategy Tester until a recent MT5 release (I don't remember exactly which one), when I began receiving resource loading errors in iCustom. I
Hi, I'm facing a strange issue here. I have an Expert Advisor, "Main EA", which loads a custom indicator , "MW MSSS Rev Hammer.ex5" with iCustom. The whole code is stable for weeks and for weeks I have been doing backtestings without changing the indicator's source file, only the Main EA and even so
Hi, I'm trying to migrate an expert from mql4 to mql5, but I can't get the ticket of the new position that just opened. In mql4, OrderSend() will return the ticket automiticly, but in mql5, trade.mqh m_trade.Buy only return true or false. Please help me about how to get the ticket of position that
  Suggest
Dear MetaTrader Support Team, Iam Maurice Khalil .. highly value the innovation and efficiency that the MetaTrader platform offers to traders and investors around the globe. My extensive use of your platform has allowed me to deeply appreciate its powerful features, including the backtesting tools
hello, I can't access m_close (an array of close prices defined ) in ExpertSignalMACD.mqh that inherits from ExpertSignal.mqh even though CiMACD which is used in the ExpertSignalMACD needs it , because of applied price of MACD indicator . why in used_series of SignalMACD m_close does not initialize
i understand what the usage of ZeroMemory is. but then i see it was included on TradeRequest SL/TP modification . so, is it necessary to use it on pending order modification? because for each request-result action, the previous one will be overwritten right (cmiiw). all variables in my code will
I have been using AI to create custom expert advisor for my needs, I have provided code below for the custom EA that should send alerts to my telegram channel. There is no error in compilation. This ea sends initial message that "Alert system initiated" to my telegram which means that the API and
Hello! trying to make a VWAP indicator that will update the data based on a anchor point that is movable. Like a vertical Line will appear on the chart and from that line towards candle 0, prices are updated and calculated corectly. The problem that I have is with printing that VWAP line on the
Validation when publishing Expert Adviser I received a "Not enough money" error, how can I fix it? No issues were encountered in backtesting or live trading
Good morning, I have an account that I use to backtest strategies. I have a limit regarding the tester: It only tests 10K combination at a time and it doesn't apply the spread I want to use. I would like to change these settings but I don't know how to do it If someone know the way to changes thoses
Hi there, i'm not a coder and new to this, i am now trying to build an EA but keep getting errors in the below code but i have no idea what's wrong. is it a rare problem or anyone knows how to fix it? Appreciated for the help! //+------------------------------------------------------------------+
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
Hello, Sorry for the very noob question but I was trying to code with the wizard a VERY easy strategy => if price opens below and closes above EMA200 then take a Long. I'm able to set up the paramters with the wizard, but the only thing I don't see is where to actually tell the wizard/code that the
Hi, is there a way to copy a pending order? Without having to open a new order and input the details again. I know it doesn't take very long, but if there was a hotkey or etc to do it fast it would save a lot of time when you do 100's of orders a day
Dear traders, Since last week the FTP connection between MT5 and my Edgewonk keeps failing. Although my logins all seem correct, although I don't have an active firewall and/or VPN. Edgewonk helpdesk tells me they don't see/register any login activity from my MT5 server whatsoever. Although I work
I will publish Expert Adviser on the market. During validation, an ‘ordersend error 131’ is returned. There is no problem during live trading or backtesting, but how should I fix this error
Hello, I´m not the best in coding but I have a good base. I tried to code an expert adviser and figured out an issue I can not solve by myself. I tried multiple things and modified for hours but it doesn´t seem to work. Maybe someone has the right hint for me. So I loop throug all the candles on a
Hello I have the following code that calculates the open orders in a given Timeframe, but I don't know how to count also the pending orders. int TradeCount( ENUM_TIMEFRAMES TimeFrame) { int Cnt; ulong Ticket; long EntryType; datetime DT[ 1 ]; Cnt = 0 ; if ( CopyTime (
Morning I'm traying to publish my EA, and after local testing, i don't find any error. But when i update to market, verification process say: test on EURUSD,H1 (netting) 2020.05.05 10:06:00 failed modify #6 sell 0.3 EURUSD sl: 1.09088, tp: 1.08857 -> sl: 1.09075, tp: 1.08857 [Modification failed due
Hello I uses below function for calculate lot size in MQL5 for use simple OrderSend (symbol EURUSD_i and Alpari broker). double dblLotsRisk( double dbStopLoss, double dbRiskRatio ) { double dbLotsMinimum = SymbolInfoDouble ( _Symbol , SYMBOL_VOLUME_MIN ), dbLotsMaximum =