Hi, I want to have an array with the historic values of a certain event, let's say the british claimant count. So I find out the respective id of that event, and create the array with the CalendarValueHistoryByEvent function. However it won't give me the most recent events. It only goes up to the
I want to remove date from messages in jorunal if is it possible... OR What I actually want is to separate the date and my Print() function message displayed in the 'Messages' tab in the jorunal... because I want to paste it into excel with just my print() message not with the date in the cell too
Good moring! The first Buy with Lot 250 is closed completely. Then there are two further Buys with Lot sizes 309 and 131 (309+131=440). My Account is non-hedging so buys are added/summed up. The last Buy receives ticket number 9. In the Trade window the open Position shows Lot=440 which is as
i made this ea with free website and i want some change in this i EA is that when condition is meet it will open one trade and another trade open after 60 min and also take multiple trade if the condition meet again either it buy or sell it will take position ***
Hi, As you know the ZIGZAG indicator is used to help identify price trends. Now, How can i access the indicator data for used in EA? I'm sharing the ZIGZAG indicator with you
Hi guys,
I want to debug my EA. But the conditions i am waiting for is not happen lot of time. So i want to launch a back testing and waiting my break point.
When i start the debugger, i have a new graph. How can I start the debugger for an back test?
Thanks a lot.
Dear appreciated coders out there :) , would love your help in creating an EA from this strategy: Buy orders: On the 1H and 30Min and 15Min and 5Min and 1Min Timeframes, these conditions should be met: The 35 Weighted Moving Average is above the 35 Exponential Moving Average and price is above
Hi I have bars M30. I want to draw a rectangle on each minute of this bar. As start I want to draw bid prices using rectangle. My code: MqlRates prices[]; datetime lastTime = 0 ; double lastBid; int toCopy = 3 ; void OnTick () { if ( CopyRates ( Symbol (), Period (), 0 , toCopy, prices) ==
Good day, I was wondering if anyone can help me, I am developing an EA and it's almost done but I am struggling with one thing: I need a working if statment that can check that A) the current local time is not 9AM, or 1PM or 4PM, B) check that there is only one or less active trade on the currency
Good night. I have the following demand , where I need help. I have several boolean variables, which I would like to summarize to an int variable in an easier way than the example below, after all there are dozens of variables. For example: input int varSingle = 0 ; //optimizable parameter bool
I have my EA working. Let assume it has 2 parameters, both 1..3 => 9 combinations. I would like to backtest all combinations and see which one gives the best result. How to do this? Where should I start - maybe run somehow single pass and store results? I have a developer experience and I can use
Hi, In MT5 I need to get solution where is possible in textbox entered specifc price and then recognize what is this price buy stop/buy limit, etc... Now I need to select type manually but this takes a lot of time. Thanks
How do I get a Order Close time in mql5? Also, why is it so complicated
Hi all, can someone give me zone recovery ea for MT5 with TP in currency
[Deleted]
Is there any way to check if a symbol is opened in a chart for MT5
For a CustomSymbol, I was able to get the rates updated for the charts. But the Market Watch still shows them as blanks. What is missing? I tried CustomSymbolSetDouble for symbol,SYMBOL_BID and SYMBOL_ASK and also tried CustomTicksReplace but made no difference. What am I missing
why test become slow more and more,after test more then on month! what is then most probable
Hi, I work on Python using the MT5 library. I have found how to put a buy/sell limit/stop order but I don't find how to close it when it is placed but not already executed? How can I remove the placed order please? # OPEN THE ORDER request = { "action" : mt5. TRADE_ACTION_PENDING , "symbol"
So i kinda need EA that can reverse position but from another account... so let's take an example: Account A: Buy 0.01 Account B (which the EA is attached to): Sell 0.01 So when account A open position the EA will open the reverse of the account A position
Hi, there! :) I've generated a code with a programme but when I backtest the strategy, it calculates a fixed amount of lots. Instead, I'd like to backtest the strategy with a fixed amount of dollars. Would it be possible? I've tried this to get the lots automatically, but doesn't work: "fixed amount
Anyone using a robot that does automatic trading and really making real money? How long? how profitable? Thank you
hey, is there any script for closing half and Stop loss to Break Even point? im a scalper and that scripts will be life saver
Is there any code in MQL5 to set global non-trading, even during strategy backtesting. Including passive transactions such as triggering take profit, stop loss and pending orders
Hello, I can open and close all of different trades using python and MetaTrader5 library easily. Although, I can easily open a position on XAUUSD manually on MetaTrader 5 and also I added XAUUSD inside of Market Watch, I cannot open any position on XAUUSD via python. It returns " Unsupported
I've experimented a strange behaviour on VPS side upon EAs migration. Actually I don't know whether it is an issue or the normality. In few words, I've an EA which create many files if and only if they do not exist and it works fine locally, i.e. if I start it twice, the first time the files are
How to turn off EA without closing chart? Someone tell me please
Hi, I am looking at the properties and I can't see how much of the money is allocated to a bot. This is very easy to see normally on other platform, but for the life of me I can't see how much a given bot is allowed to use of the balance at any give time. Where is that information?! Many thanks
i had some check and i knew there is code allow to loop thru all open order and select the type of order to close , delete however this is time confusing (i.e around 6 txn will took about 3 second) where its not feasible for me i had see some example where people is closing the deal (i.e 15 deals)
I added the macd indicator to my robot. If the difference between the signal line and the man line in the macd indicator is 0.005, I added a position closing condition. no eror. but the function I want is not working. Can you show me where is the error? Robot codes are attached. <ex5 file deleted>
Hello everybody .. Please can somebody clarify the activity of variables (other than local variables) after Oninit function happens, such after modifying input parameters. Is there a way to keep the values stored in "standard" variables even after Oninit is called. Thanks for your help

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.