Expert Advisors and Automated Trading - page 53

Hi all, I am trying to partially close my position once a certain risk reward is reached. Both proportion of the position to be close, and the risk reward needed to be reached are inputs. I am struggling regarding the volume, as I want the partial cloture to happen only once, so when the volume of
Hi all, I am trying to test an EA on different timeframes and so I defined timeframe as an input. The code is working fine when tested on a single timeframe. To have the timeframe changed, I simply added the following 2 lines of code. The first one is in the global scope and second one is in the
Hello, Just to clarify, I monitor my VPS EAs via the platforms on my Desktop. When I am required to have a Windows Update sometimes the Platform is updated also, which is not new to anybody. On my Desktop and when I have a Platform Update there are changes within my EA which tells me via the
Hi! I'm operating an strategy that opens BUY-LIMIT or BUY- STOP orders . Due to my EA limits, I need to get the information about when these orders are effected and I tried the following code: if ( HistoryDealSelect (trans.deal)) { deal_ticket =
Hi, I started trying to make EAs for the first time just by going through MQL5 articles like this one: https://www.mql5.com/en/articles/367 This talked about making a signal script (.mqh) for the EA wizard. They inherit the CExpertSignal baseclass and then override the LongCondition and
Hi all, is there the possiblity to distinguish the buy arrow color that opens a new position (or pending order) from the the buy arrow color that closes as sell position? Thank you
I tested my EA at a friends pc and the global variables show up fine. But at my PC it only returns 0. same ea. same set. same time. Also they shop up at my pc in demo or real mode. they only dont show up in strategy tester mode anyone has an idea?
Hello, Please who can help with BOOM and CRASH expert advisor or where to get it? Regards
Hi all, in an expert I modified an input variable as follow (from false to true) Then I compiled the expert as usual. When I lauch the strategy tester in the journal tab I still see the variable as false. Where could be my mistake? Thank you
Hello, For some time now, I've been using an EA with a trusted broker, and it's been working without any issues. Recently, I opened an account with a new broker, and today the EA was running on both accounts. On the previous broker's account, it opened a position, but on the new broker's account, an
My old EA is being executed even when the autotrader button is in "OFF" mode. This is a problem because I dont want to execute trades during certain times of the day and I am using also using a new EA. Therefore, the old EA is no longer needed. Is there any way I can delete any history of the old EA
hi can any one help me i don't what can i do to fix this i already test the expert
What's wrong with this: string LogPrint= StringConcatenate("Start Equity is ",DoubleToString(StartEquity,0),", Account Equity is ", DoubleToString(AccountEquity(),0)),". Re-starting"); Why do I get these 2 error messages? "'Start Equity is ' - variable expected HMDemo.mq5 122 49" and "
Hello beloved community, I have a simple question, at least I guess, it could be simple. I just created a panel to enter entry prices, TPs and SLs. Now I am wondering, if I have the possibility to simply activate the next edit field when having entered a value into any field. Example: I´ll enter the
Hello, That is my first topic on this forum. I need a solution to my problem. I am using python to place order on a list of mt5 accounts. But on some account I have the error 10016 that mean Invalid stops. What i don't understant is that the same order run without problem on others accounts. I
  Automating EA Optimization  (13   1 2)
Can someone please help me understand how to Automatically optimize my EA to a selected chart using a Python Script and the MT5 module for Python. Everything I've learned so far either 1) Simply didn't work, 2) Didn't make use of the MT5 Python module 3) Required me to learn C++ and build a DLL but
datetime timeLastTickProcessed = D'1971.01.01 00:00' ; int OnInit () { return ( INIT_SUCCEEDED ); } void OnTick () { if (isProcessThisIteration()){ int x1 = 0 ; int y1 = 0 ; int x2 = 0 ; int y2 = 0 ; datetime time1 = iTime ( _Symbol , PERIOD_H1 , 1 ); datetime time2 = iTime (
So there is an Expert(ID 891243 & 545671) that keeps opening trades on XAUUSD which I don't even use myself, the chart isn't opened. I opened the chart to see if there is any EA linked to it that is having a free will, but there is none.. I opened the Expert List and closed the only one that I am
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
Hi there Does anyone know to use either MT4 or MT5 to advise a signal when: The close of the moving average is above its previous close to generate a BUY signal (or to stay long if a Buy signal has already been given). The close of the moving average is below its previous close to generate a SELL
Hi, I'm new as a programmer and I'm creating a tool that helps me in my hedging operations, I want to make sure that if, for example, I open a eurusd position with an equivalent value of 100 dollars and then I open a position on gbpusd, I want has the same 100 dollar value of eurusd which formula
I created a robot, I'm testing it through the "Strategy Tester", it works as it should work, it works for a plus, and when testing on a demo account it works for a minus, please help. Thanks
hello every one. I wanna to write an expert adviser which can set a buy limit automatically under a special condition. the idea is very simple and easy as below: in every time, consider the last candle[1] and one candle before it[2]. if [1] is bullish and [2] is bearish, set a buy limit on the open
Hi guys, I'm just wondering if there is a function to get the position opening time here in MQL5? I've read the various trade functions and the data structures but can't seem to locate this function. I'm intending to close a position based on a fixed time after being opened if the takeprofit and...
Still learning about MT5 EAs and backtesting them. If I have an EA coded to enter and exit positions based on (as an example) moving average (MA) crossovers and these MA crossovers occur within the the same candle (after candle open and before that same candle closes): 1. When live trading this type
Does anyone know if it's possible to hire a developer to take an EA that I already have and add features to it? Or will they have to start from scratch
Hello community, [PLEASE SEE ATTACHED EQUITY CURVE] I've searched this forum to work out if I should be focused on backtesting a large sample size of trades, or a smaller sample size backtested over a longer timeframe. It's a case of ' large sample size ' vs ' smaller sample size tested over long
Hello, We understand that curve fitting is clearly an issue. But might it be harder to curve fit a strategy that trades on the 1-5 minute timeframe over say 10 years if it's trading 1000s of times. Isn't curve fitting more likely on the higher timeframes with fewer sample sizes
Hi, I'am new to using bots and tried backtesting a number of free the ones. These include dark venus and zigzag. But at some point, all of them fail and I lose everything!!! I've changed a number of different parameters from what I've watched on youtube! What am I doing wrong
When we view the Current Positions of the Signals, all "Pending Orders" are listed in the mql5.com/ Signals "Positions" Table. However those "Pending Orders" are not visible in the subscriber account in MetaTrader 4 or 5 Terminal. Queries: 1) Any solutions to view them 2) Any scripts which can help...