Hi all, is there anybody out there who uses the standard libraries for MT5? I mean especially the financial libraries, libraries such as CExpert and so on. How reliable is this stuff, because the control classes are everything else than reliable and don´t work proper since they´ve been released....
My code is the following ... and I'm getting an error saying that "array out of range in '1.mq5' (23,13)" , when use it. How can I correct this error? Thanks a lot. #21/06/2020 2300 //+------------------------------------------------------------------+ //|
Hi! when evaluating the performance of my EA that's running on demo, i'm having trouble finding out which timeframe a pair was traded. I changed the TF a few weeks ago & unfortunately, didn't take a note of the exact day, as i thought (newbie...) it would be visible within /logs, MQL5/Logs or the
This trade was to help me in scalping. but it isn't closing trades. Objective was to find alternative for sl or tp at a level closer than stop levels of a pair. please help. Tried closing them by removing any condition for closing trades but it still didn't work. These set of statements to close
I have this input bool a= true ; input bool b= false ; If(a && b) #define result > else if (a) #define result < else if (b) #define result = else #define result != then I want to use result like this Print ( 5 result 3 ) Is it possible
Hi, I need a <Deleted> EA robot which can trade at pivot points support and resistance levels
Hello, When I make a get_position I have the list of my positions opened, and I have a colum with the "type". Type 0 is a Buy position and Type 1 is a sell position. positions=mt5.positions_get(symbol= "GOLDmicro" ) if positions==None: print( "Aucune position sur GOLD, code d'erreur={}"
Hi everyone, I'm trying to detect an order opened by my EA and closed manually. I tried with magic number but, unfortunately, get only 0 for manually closed orders. Anyone know how to reliable detect an order opened by an EA and closed manually ? Thank you
Hi I’m new to this platform and trading. So bear the newish question. I noticed in MT5 the MACD signal line is based on SMA. How do I go about calculating the MACD Signal line value based on EMA. I just am after the current value. I’ve read other posts about this but I am still confused. Some people
I am writing some files for state persistence, but this is not needed when back testing. What code or environment variable (or similar) can we use in the EA, so it knows when it's being executed by a backtest
Why as I getting this error? Is it because: #property indicator_buffers 6 #property indicator_plots 2 But I have: #property indicator_type1 DRAW_COLOR_CANDLES and #property indicator_color1 clrRed , clrGreen So I am using: Plot 1 4 buffers for the candles 1 buffer for the colour index Plot 2 1
I am trying to have a candle plot along with a line chart. The properties I have set us is: #property indicator_chart_window #property indicator_buffers 6 #property indicator_plots 2 #property indicator_label1 "candle" #property indicator_type1 DRAW_COLOR_CANDLES #property indicator_style1
Hello there, I did a very simple expert based on my personal trading strategy . Basically, I wait the indicators confluence and open a position following the trend, as you can see below. There are four EMA (8,20,50 and 200), Vwap, ADX(14), RSI(14) and Volumes. When all of them shows me what market
Hi all, I'm writing a CSV filewrite feature in my EA to basically track my equity curve as well as other data. This code works but everything is printed in one cell, rather than a different column for each parameter - any ideas? if (new_bar( PERIOD_M5 )) { string csv_name = "Infinity
Hellow, I hope somebody can help me :) I am storing a counter value in a variable. Each tick the value gets checked. For each time the value of the variable changes I want to perform a function. For example : variable = 0 variable changes to 1 > call to perform the function (one time) variable
In my EA I need to know how much money will I spend if I buy 1lot of current symbol. -- Pawel
Hello, I'm having issue with my time filter izit doesn't take trade on all instances evene if my setup show up within the specified time range on strategy tester while testing but if I increase the time session it might now pick up the trade
Hey all, I have written the following code to check if there is an open order with a matching symbol and magic number within my multi-symbol EA, but it does not prevent multiple orders from opening. The OpenTradeOrderTicket is a global array that is meant to store a 1 or 0 depending on whether there
Hi guys! I have developed an EA, with HFT strategy type, and the signals are working well, tested in scripts and single run, but when I am trying to do optimization, the results are coming as 0 trades in forex symbols and index symbols are working well . Does anyone have any idea? PS: I'm
hellow, Probably this is a newbie question but here we go. I regardless the discussion whether this is a good idea or not, what I want to do is the following as below : Instead of a stoploss, once my long or short order is triggered I want to set a sellstop (in case the long order is triggered) or a
Hello, I would like to understand how the TP works... If I open a request to open a trade like this: request = { "action" : mt5. TRADE_ACTION_DEAL , "symbol" : "GOLDmicro" , "volume" : 0.1 , "type" : mt5. ORDER_TYPE_BUY , "price" : mt5.symbol_info_tick(
Hello everyone, I want to link a trial account to my trial account on the MT5 platform, but I am not getting any response from the platform. It does not give an error, but it does not connect. My English is not good. I couldn't search the forum. I am sad. please someone help
I am trying to backtest an expert advisor and limit the number of pending orders to 1. However, when I place an order using the CTrade class, OrdersTotal() is still returning 0. I found this forum post but to no avail. Here's the function I'm running and the output: void Buy() { double sl = iOpen
Let's say I have 50$ to spend on single position. It is 1/100 of my account - this is my strategy (EA). How can I calculate size of position in lots based on FIAT? I'd like to use the same EA for different markets - I don't want to hardcode position size
When tested to be traded why? Compiled Many times Changed the location return Comment out traded method Delete .mq5 file The result does not change //+------------------------------------------------------------------+ //| FXModel_exp.mq5 | //|
I'm having trouble getting subplots to appear for expert advisors. I only have this problem while testing on live data - when backtesting on historical data everything works fine. Is there a setting that disables subplots from showing? I am a relatively new user, so maybe I'm missing something here
Hi friends, what's the proper way to have a persistent SQL connection during Optimizer passes? I tried opening, writing to and closing the database after each pass using MQL5 native commands but it didn't work. It did work when using the EA normally. Thank you for your comments
I declare arrays open,high, low and close and use copyopen to copyclose to get details of previous candles. I dont declare ontick() but use OnTimer() with a timer value same as timeframe of chart. this helps me get these details of any number of previous candles. Now suppose i am working in 15m with
Hi, I'd like to know if there's any service that can connect to Telegram/Discord APIs to read signals in channels? And then forward those signals to the broker/exchange/MT4/MT5 API to open trades? If not, does anyone here knows how to code that and will be willing to work on it? I'm looking for a
Hi, I ask the more experienced a doubt since I have not been involved in MQL4 programming for long. Up to now I have used Alpari data at 90% for backtests, but seeing that everyone recommends doing them at 99% (Since I understood, the difference is considerable) I tried to download the data from the

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.