i Created An expect that Finds Newly Created Objects on a custom Indicator And Reports that a new object has being created on Chart Code: //+------------------------------------------------------------------+ //| Object expert advisor.mq5 | //|
Is it possible to place a order that will not be visible in the order book? Or this kind of order must be a market order? Thanks for any comment
Hello, i used to use CTrade class on Buy,Sell functions without any problems now i need to use BuyLimit,BuyLimit ,in the first of used i face error expedition time, I tried to fill the two inputs for the expiration code and I faced another error "CTrade::OrderTypeCheck: Invalid order type"
Hi,
I'd like to run Metatrader 5 in the cloud and am investigating operating systems to use:
I'm looking for something that is fast.
Things I've looked at
My laptop: i7, 16Gb RAM
Runs lots of windows concurrently with an EA on each quite happily.Amazon AWS free tier: Windows Server...
Hi All, Sorry for another pipe vs. http dll question, but I don't think it's been asked before whether you can use pipes in Strat Tester on remote agents in your own network farm. I've been trying to run an EA that communicates through a named pipe (using the stdLib CFilePipe), and it all works in
I have this piece of code in a library and it works fine, I reported it in a script and "maxRiskInPrice" turns out to be 0. "Account balance" is approximately € 9500. void calculateLots(){ int stopLossInPoints = 15 ; int riskPercentage = 5 ; double pipValue = SymbolInfoDouble ( Symbol ()
someone help, to calculate the amount of money on certain stoploss or take profit(position size calculator)
(19 1 2)
anybody who knows the mechanism or the maths involved in the background that help the MT5 platform be able to indentify the amount that is going to be lost on a certain stoploss the other way to define this is how to know the amount of money that is going to be lost on a certain stoploss Let me be
Hi A simple question - can you close an open trade when using the Strategy Tester within MetaTrader 5? See the code below - when this runs it fails to close out the open position. No error is given. I have included the results from the Journal below as well so you can follow the path it takes via
Hi Guys, I have been learning MQL5 for about 30 days. I have been trying to write an EA as a learning process. I have been facing this problem , My trade always sends a requote. I dont really know how to solve this problem. Please help me. Screenshot and codes Sell codes are shown below : double
Hello, Fareed Alston here, I need to code an existing EA to close at certain of the day, on days of the month that end with a specific number (e.g. close days ending in 5; 05th, 15th, 25th) and open after time has passed (1 hour) or open days of the month that end with a specific number (e.g. open
I can't find anything on the internet about how to use those to run a command when a trade gets closed. When a trade gets closed OnTrade() should find the last closed trade. I also don't understand how i could do that from the documentation of OnTrade() and OnTradeTransaction() . Any hints to
My MT5 EA is creating a file that will be read by an external system, and then that system creates a response file that my EA reads. This process happens once per M1 bar and takes about 1-2 seconds, so when running live, timewise there is plenty of margin. The problem occurs when running a backtest
Hi, I am looking for a simple EA that: based on MACD only lets BUY or SELL orders ( of another account/signal ... mirrored ) through! The standard MACD parameters should be adjustable. Hoping somebody already programmed this! thanx
I have 2 different EA's on different charts for the same symbol. Each chart shows the trade history and trade levels of both EA's on both charts. Is it possible for each chart to show only the trade history and trade levels for the trades that occurred on each chart
Dear I have problem to backtest EA with some broker It give me error message like below - 2022.01.23 22:03:50.459 Core 1 2021.03.22 00:00:00 CTrade::OrderSend: market buy 0.04 position #1048 EURUSD [market closed] and backtest going too slow and it give me lot of message - Is this possible any MQL
Hello, I have a function which I use often in my code. I would like to know if there is a better/more efficient way of doing this. Any suggestions are welcomed. //+------------------------------------------------------------------+ //| NormalizePrice()
Hi! I need to get the low and the high of the candle where a script is released. I remember there is a function but i don't remember the name. thanks
Hi everyone, I have an EA which uses a daily timeframe for trading but also uses a weekly timeframe as a filter. When testing the EA I noticed that BarsCalculated returns -1 (No data). After playing around for a bit I created the following code to test this out further. The behaviour is different
Hello, I find an Error during backtesting as shown in this pic While: void ModifyBuy ( string Symboll , double StopLoss, double TakeProfit ) { for ( int posIndex= PositionsTotal ()- 1 ; posIndex>= 0 ; posIndex-- )
Hi, I was running a script on MT5 using the python library. Everything was running ok until the mt5.copy_rates_from_pos method suddenly stopped working. It returns an empty list. Other methods like history_deals_get...etc are working just fine. I have tried the following: Disabling Antivirus
I need help I want to know if it's possible to start 2 EA on two account on the same laptop. And how we can do it
Hi, i want to add RSI to my EA, with different Rsi levels than default. I'm adding RSI with this code: bool CSampleExpert::InitIndicators( void ) { if (m_handle_rsi== INVALID_HANDLE ) if ((m_handle_rsi= iRSI ( NULL , 0 , 14 , PRICE_OPEN ))== INVALID_HANDLE ) { printf (
https://github.com/CaneRandagio1983/adx-ea as in object, when I test "only" this ea, the strategy tester stops shortly after the start, without errors. executes the moneyManagement.setLotsByStopLossAndRiskPercentage () function, called by the buy () function and then stops could you help me
It's not the first time it happens. Wrong price is used instead of the right one, resulting in an enormous loss in the backtest I don't think my code is wrong, because error comes and goes. BTW it's an OPEN PRICE backtest I restart MT5 and error is gone
Hello everyone, How can I limit my BuyStops placing every single tick till the order is filled? I have a code where I have a Buy Stop placed at the high[1], and every time there is a tick I get placed another BuyStop at the same high[1]... I just want it placed once. Thanks in advance
Dear Form Member i would like to write Counting Last highest and lowest candlestick please advise code with thank
As the title. I'm using a EA that opens and closes trades At first i thought it was a weird coincidence. However, if i leave the settings and the VPS it will open the odd trade here and there. If i go in to MT5 and sync the settings with the MQL5 VPS it seems to wake it up and make more frequent
Let EA run simultaneously on multiple (3) accounts without it beeing removed when switching accounts
(1)
Hi, I have a little problem. I have a RDP VPS and installed there MetraTrader5 and logged into 3 different accounts from the same broker. Now I want to run my EA on all these 3 accounts simultaneously. I already activated automated trading in MT5 and unchecked the two "disable automated trading when
When this expert advisor was back-tested using tick-story dukascopy tick data with 100% tick modeling quality the profits were significantly higher compared to the mql5 data with 100% tick modeling quality. My confusion is which back-test is accurate. back-test Method: Every tick based on real ticks
Hello there, there's a function in MQL5 that can accept struct parameters, it's DatabaseReadBind bool DatabaseReadBind ( int request , // the handle of a request created in DatabasePrepare void& struct_object // the reference to the structure for reading the record );
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.