I have an EA developed in mql5 that operates in multicurrency. I would like to be able to program a different Comment() on the screen for each pair. I am not able to see the solution. Does anyone know how to do it? Many thanks in advance, Juan
Hi all, I grabbed an EA off market place which seems good a placing orders but I think could be improved with judicious use of a trailing stop. I know I can only add one EA per chart - so is it possible to: * Add EA1 to one chart - this paces the orders along with a fixed Stop Loss. * Add EA 2 to
where can i get the file OrderManagement.mqh ? when i run my code it says that the file is missing
(3)
help please
Is there an EA out there that lets you scale out by triggering an automatic partial close off your position at a particular price level? The closest I know of is Smart Trader Tools Mini Terminal but you have to manually execute the close. Cheers
hi i try to write a mql code to write macd of symbol for three timeframes in excel with filewrite command. but macd numbers in result excel file is only one-column and all macd data stored in rows. [ size of cells are 1000 x 1 for three time frames] but i want to stored each time frame in a column
Hi everyone, I need your help. I have tried my best to fix the code, but this error still keeps on occur. How to fix this? I have tried all the method mentioned below, but it seems still did not work. Volume limit reached problem when publishing the EA - Easy Trading Strategy - Expert Advisors and
[Deleted]
This code works by executing buy or sell orders after a predetermined series of candlesticks..the problem i have with it is if you input it should sell after a 11111...it will also sell after 111111 and then do so after 11111111 and do so after 11111111 and so on..id like it to do the 11111 and then
Hello. I have developed an EA. I send the important part of the code: OnTimer () { string url = "https://api.telegram.org/bot" + InpBotToken + "/getUpdates" ; int code = WebRequest ( "GET" , url, NULL , 900 , data, result, result_headers); if (code == 200 ) string message_text =
Hi, I need to set a pending order that calculate the entry and place itself exactly at 9am every day (Mon to Friday) I've set the following code, but seems that it is not opening anything. I have to backtest it so I'm not sure if I'm using the "system time" or the "backtesting time", not sure how to
I'm developing trading program in MT5, when I tested the strategy, whatever strategy I developed, it always execute an other order after taking profit or stop loss. Anyone know why and how to stop it, thanks very much for your help
Hi all! I need your help. I need load data from csv to EA MT5. This is signal for EA decide BUY/SELL. This is sample csv data: time trade_Symbol trade_Type rule_Choose kTP kSL ATR 1/4/2023 0:25 EURUSD Sell ASK25 < ASK02 2 1.5 0.000299294 Please help, or give more sugessttion. Thank you so much
I still have 4 activations left for the EAs I bought 4 weeks ago but the author got banned and his EA's are removed. According to the rules, even if the EA's are removed from the market for rent or sale, the purchased EA's are still in the account of the buyer and can still be activated until the
how to 'track' error CHistoryPositionInfo::HistoryPositionCheck > Error: the selected position is still open. Just don't know how to figure out where this is occurring and how to fix the problem. Should I be 'closing' something, somewhere Any pointers appreciated
int num_cycles = 4 ; int index_cycles = 0 ; double close_price = 0.0 ; // these are just some simple calculations to make it clear double sl_price = 0.0 ; // that after fulfilling the condition for expert removal double tp_price = 0.0 ; // the
I created an obfuscator for MQL (encryption of source code) for my own purposes and would like to know, if there is any kind of a general/common interest. The obfuscator works so far without problems, but surely has some restrictions which would become visible with other code than mine. I could
hello can someone assist me in telling me how to do a running(cummulative) sum that refreshes after a certain time period ,,,, for example a daily running sum or monthly running sum
Hello, I want to ask the experienced traders and MT5 users, about how accurate is the strategy tester based on real ticks in MT5 in comparance with live trading? Best Regards, Dmitry
long positionType( string symbol = _Symbol ); Error: '_Symbol' - constant expected. Can someone explain why I can't assigning it as a default value
Hello, I had a theory on a winning strategy so I went ahead and created an EA to implement it. This is my first time doing backtesting or using the Strategy Tester. Was hoping to get some feedback if these numbers are considered good and what could use improvement to be viable. Here is the
It means i have a ea and in that EA Trailing stop is mandatory for profitability but my brokers Spread are not allowing the trail to workout! I want to add Live Spread into Trailing stop how can i do that
in this simple snippet I get the following compilation error: 'ticket' - undeclared identifier An idea how to resolve? Improperly formatted code removed by moderator
Hi, I'm currently learning about class for the first time. I have 2 strategy that using the same include variable file, one for long position and the other for short position. In variable file, some of the variable contains trade direction such as SymbolsLong and SymbolsShort and it is used only for
Hi I want to use an EA on several charts (1 is master mode for writing to the file, others are slave mode for reading from the file) int OnInit () { if (InpMaster) Handle = FileOpen (InpFileName + ".csv" , FILE_WRITE | FILE_SHARE_READ | FILE_CSV | FILE_COMMON , "," ); else Handle =
Hello, I am curious about the limit for requests to the latest info available on an economic event. When I went to the mql5 website and tried to scrape the data, my ip got banned shortly after and therefor made me concerned if the same thing could happen if i was to write an EA with a loop, and
Hi, MqlTradeRequest request; MqlTradeResult result; ZeroMemory (request); ZeroMemory (result); request.action = TRADE_ACTION_DEAL ; request.type = ORDER_TYPE_BUY ; request.symbol = _Symbol ; request.volume = NormalizeDouble (buy_volume, _Digits ); double price = SymbolInfoDouble (
Is this Correct Trailing Start & Step Source code ? #include <Trade/Trade.mqh> CTrade trade; void Trail(){ int PT = PositionsTotal (); for ( int i=PT; i>= 0 ; i--){ ulong tick = PositionGetTicket (i); if ( PositionSelectByTicket (tick)){ if (
Hello! I am wondering where I can get information about how the computational process during the strategy optimization works in Metatrader 5. How can I get the best computational results during that process. There is any limit of memory RAM per Core that Metatrader 5 has during the Strategy
Hi everyone, just started working with MQL5 Python integration and found a question that I just can't get right import MetaTrader5 as mt5 time_now = datetime.now(pytz.timezone( "UTC" )) today_start = time_now.replace(hour= 0 , minute= 0 , second= 0 , microsecond= 0 ) print(f "START TIME -

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.