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...
Hello friends, This question is both for MQL5/4. I want to open a position based on recent positions data(All data including Open/Close Price, Open/Close Time, Profit<Swap+ Commission+ gross profit>, Slippage, Lot Size) while the positions would have dynamic sl/tps. The simple solution is to open
Hi, A quick question about how to converts pips to dollar in account currency. pips to dollars = Target Point * Point () * (tick value / tick size) * lots does calculation above is correct
Hello, I can't seem to get it right, I have an EA that put two pending orders per day (and reset everyday) on different levels (a buy and a sell). When one of those two is opened, I would like that the remaining one update is take profit to double the initial one (this is in case first trade goes to
In the contract specification of MT5, is it normal for the Tick Value constantly change? Every time I check the tick value in the contract specification (e.g for AUDCHF) it will be different every 5 minutes or so. Why does this happen and what are the consequences of it
Can MT5 export optimization results as .csv or .txt? Thanks
Hi all, I'm trying to test an expert containing this custom indicator int DMI_handle; double DMI_spread[]; ArraySetAsSeries (DMI_spread, true ); DMI_handle = iCustom ( _Symbol , _Period , "\\Indicators\\Examples\\DMI_spread.ex5" , 13 ) ; CopyBuffer (DMI_handle, 0 , 0 , 10 ,DMI_spread);
Greetings, I'm studying MQL4 and MQL5 for a few years now (I'm not a professional programmer, I'm self educated), but I find hard to understand topics still. Recently, I wanted to store chart object data from a sqlite database to a multi-dimensional array in a project, to minimize disk I/O. As far
Hi all, I am trying to test an EA where it starts each week and see the different results I get. Here is the code (removed all code not related to that matter), it works fine for the first 54 passes and stopped on 1 January 2023. Any idea why? I set the input NumberWeekTest in the Fast genetic from
Hi, I think it would be quite interesting to see the outcome of Martingale- or Grid-EAs which were optimized by Atrificial Intellingence and or neural networks . As for Martingale- or Grid-EAsthe the crash risk is very high - I would like to know what the AI or an NN would tell us. Does anybody know
Hi, I have added 3 handle EMA in my EA. When I'm backtesting this EA, the Strategy Tester it's plotting on the graph (as you can see in the image attached): 1. 3 x EMA red lines. Why ? I haven't coded to plot those 3 EMA. 2. Bollinger Bands lines. Why ? I didn't created a handle for Bollinger Bands
int Ticket_ProfitPoint( ulong ticket) { if (!PositionInfo.SelectByTicket(ticket)) return ( 0 ); double profit = PositionInfo.Profit(); double volume = PositionInfo.Volume(); double tickvalue = SymbolInfoDouble (PositionInfo. Symbol (), SYMBOL_TRADE_TICK_VALUE ); return (( int )(profit
Hello I want use ECN mode for trading I programming a robot for auto trader If in strategy tester I use every tick , my profit will be 12$ But if I use every tick based on real ticks , my profit will be -3$ Why?! And which is better and close to real market? Thank you
Hello , please help me solve this issue with mt5 tester and EA . I wanted to test RecursiveMA indicator , so I created EA to implement one specific method of backtesting for indicators , but there are some issues with pulled indicator values , they are different from what indicator is showing and
hello, What I want to code is as follow: 1> calculate RSI on (14 period close) 2> calculate EMA 9 on (RSI value) i have try so many times but unable to solve. *** But it shows an error that is "Invalid Array Access ". here is my code: double vwap, ema, ema_1, wma, rsi, rsi_1; double rsi_array[]
hi, my experience level is: ive made a few simple ea...for loops/if else/positiongetinteger/trade.mqh. things like that ive been able to open a buy position and a sell position at the same time on the same currency pair. what im having difficulty with is analyzing both positions at the same time. i
//+------------------------------------------------------------------+ //| Comprar na Resistência / Vender na Suporte.mq5 | //| | //| | //+------------------------------------------------------------------+
Good evening forum, Below, I have the start of my code for a London Breakout EA which triggers at 8am (London Start). It calculates the dailyResistance and dailySupport from the Asian Session from 12am - 8am. What I would like to do is draw a rectangle on my chart for this area (12am-8am, High-Low)
I'm working on a script and it uses a form of martingale based on how many positions are open. The only problem is the code isn't working correctly. I've double checked it a million times but it just doesn't work correctly. Basically I'm trying to check if its buy or sell then count up each buy and
I wanted to evolve one of my indicators into an EA just to see if it would be possible. My indicator makes one bool variable turn true when a certain condition is met in OnCalculate, and makes another bool variable turn true with another condition is met. I wanted to use these boolean values for
Hey This is my MQL5 code which I have this strange error when using WindowHandle #include <WinUser32.mqh> #import "wininet.dll" #import "user32.dll" int GetAncestor( int , int ); int GetLastActivePopup( int ); int GetDlgItem( int , int ); int GetParent( int hWnd); #import #include <WinUser32.mqh>
Ideal Hardware for Optimization? => New Mini-PC's vs Older Used Xeon Servers (also AMD vs Intel)
(1)
Hello I was wondering what the best hardware setup was for optimization using a core-farm? The options would be buying a series of new mini-pcs... 8-cores each with 32-64gb RAM each...about 3ghz new-generation processors. Getting 2-4 of them... Or buying a couple 5-10 year old used rack servers or
I have created a trading robot but when I backtest it, it run well but without placing trades. On the journal report I see the message that says that cloud servers switched off and sometime the report shows that the maximum spread is exceeded, sometimes it says the volume is exceeded. I don't know
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.