Hello, I'm using some shortcut keys to perform some actions via keyboard.. the problem that when I configure a hotkey that MT5 also uses.. it works but also activates the function of MT5, for example the "SPACE" that activates a search box at the bottom of the chart.. my question is, how to "undo"
Hi, how would you approach the problem of displaying multiple equity curves from the optimisation results? Thanks
Hi there, I've followed these instructions on importing data: https://www.backtestmarket.com/en/blog/post/how-to-load-data-in-mt5. The MT5 user guide also has instructions on importing data but both resources related to 1M bars. I'm interested in daily bars for coffee for 10 years which I can get
i have a strategy that can switch between using market orders and stop orders/ pending order . When i switch to pending orders and try to optimize. The optimizer starts with an arbitrary balance max and never changes until all steps are completed any assistance will be highly appreciated. Can share
Hey guys, why doesnt this Print out the Symbols of open positions please? void print_symbols() { for ( int i= PositionsTotal ()- 1 ; i>= 0 ; i--) { string symbol = PositionGetString ( POSITION_SYMBOL ); Print (symbol); } }
I need to code 1 EA, copy one of my existing EAs working on VPS Copy order according to capital ratio <...>
Hi, how can I load optimization results programmatically into the tester for further testing of those results only for a different date period? Thanks
Hi, How do I receive an email notification when an expert advisor I have having unloads itself from the chart? Thanks, Zijian
Hello, I was wondering if there is a way to "play" with mt5 operating(buy/sell) on past days (historical data), being able to speed up/forwarding the time. Thanks in advance
I want to make a function that can automatically sort according to the high, low, open, and close values in the mqlrates structure, but when calling the function, I find that the member variable name cannot be directly used as a function parameter. void getdata::Get_struct_sort(Type_Name
This indicator has no buffers and I'm not really sure how to extract the data i need (the pivots). If anyone can point me in the right direction it would be greatly appreciated. edit:I'm modifying the code to add a buffer, seems like the logical way to proceed
Hi There,is there a Website/ or anything else which offers for free full and correct data for ***?( Expert Advisor testing )i think i did not need to mention why. Warm Regards C.B
I am able to get the profit of the first buy trade but when I open another buy it does not sum it. How can I calculate the profit for all open buy orders? Thanks in advance. if ( PositionSelect ( _Symbol )== true ) { double Profit_Sum= 0 ; for ( int i= PositionsTotal ()- 1 ; i>= 0
Goodnight, I'm creating a bot and I need to extract some information for analysis, so I'm trying to create a txt, or csv, or even bin file, whatever I can make it work to receive this information; everything seems to work fine, as stated in the documentation, however the generated file has
I'm trying to get open price from ticket number and I'm using CTrade library to open position. I can open the position with no problem, but I think I cannot select the openned position by the ticket I have. I have tried OrderSelect() function, but it return false with error code 4754 which mean...
Are commisions and slippages included in EA automatically? Thanks
Hello everyone, I want to backtest my code with the strategy tester but i want an external input that say sometimes it's "&&" sometimes it's "||", is it possible ? Example : External_Input_1 between 1 and 10 (in the strategy tester) External_Input_2 between 1 and 10 (in the strategy tester)
Hello, I would like to write a piece of code that allows me to open a position (buy or sell) at a certain time (for instance 11:58:45) every day. I would like to let it open the trade on it owns, for a DCA stratagy (buy at 11:58:45 every ady). DO you guys have a code already doing that ? I can't
Good Afternoon, I'm currently working on my first EA and working with pre existing code. Here is the question, is there a simple relatively clean way to have the EA check open orders, and ensure that if it would not open another order on the same currency? The only way I can think of would be lots
I've been trying to code my EA to trade multiple symbols and multiple timeframes and have reached a point where i do not know how to proceed, it complies just fine but i know it's not how it should be done, should i use 3d arrays ? and how so ? How do i get the ChartOpen() to distinguish which
Part 1: According to the documentation, TimeCurrent() “returns the last known server time” and is not dependent on your computer's clock while TimeTradeServer() “returns the calculated current time of the trade server” and is dependent on your computer's clock. Can somebody explain in detail what
Hello all, I am new to EA progamming. I need help with finding the previous low under the current price value like in the pictured represented by ( x ) do any of you know how to do this, thank you very much
Hi all My EA will not open sell stop orders & opens too many orders instead of 1. If you know the problem please help. #property copyright "Copyright 2022, MetaQuotes Ltd." #property link "https://www.mql5.com" #property version "1.00" #property strict #include <Trade\Trade.mqh> #include
//+------------------------------------------------------------------+ //| Script program start function | //+------------------------------------------------------------------+ void OnStart () { TestFunction(testClassInstance1); }
Hello all. Please can anyone help me. i am creating EA based on Ichimoku. when Ichimoku give buy signal than open 3 buy orders on same candle with 3 different SL TP.. and close buy orders on opposite signal. thanks in advance
Hi everyone, I am currently just getting interested in EAs Is there an EA available in the market already, as follows: Opens a trade at a specified entry point, SL and TP, which the user sets manually The EA then automatically reenters the exact same trade if the SL is hit, for a certain period of
Hi I am trying to get a true/false result through a method(), if price have tagged a certain Pivot Level. I have tried to code it as below, however getting error " not all control paths return a value". It seems "return(vLow < Pivots[k].S3_0618 && vClose > Pivots[k].S3_0618)" does not returns a
I'm new to mql5 and trying to access some information of a MA, i need this information to build an EA but i don't know how to do this. What i want exactly is to get the price of any point MA is currently pointing to, i need to place a buy or sell when a bar closes below MA. Look at the image below
Hello everybody. I have a question. I have an EA and the EA has attached to 20 charts(for example). I want to use external file(includes values of variables) copied in COMMON folder that the EA check it every 5 minute(for example and this is possible by timer functions), and change values of
Hello guys, I'm looking for a programmer, who can integrate the binomo platform into any programming language and create an expert advisor , to trade cfd binomo... ***
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.