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 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...
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)

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.