Good night everyone, how are you? I'm trying to create an EA code that does the following task: When turned on, it sends a random order (buy or sell) to the market, places fixed target and stop. When the target is hit, it opens another order of the same type. If the stop is hit, it opens the same
Hi everyone, I'm developing a multicurrency expert advisor that trades multiple pairs simultaneously, specifying the forex pairs in an input string. I've noticed that changing the order of them sometimes changes the results as well. What can be the reason? The EA opens only at the close of the
I have about 6 extern variables in my EA and I want to back test the MT5 optimizer. I have a Rayzen 9 16 core - 32 thread CPU with 8 extra cores from 2 x intel core i7 computers in my Local Network Agent farm. I select the desired variables and steps in the "inputs" tab. It should perform a lot of
I get this error: failed cancel order #10 sell stop 0.35 XAUUSD at 1310.86 sl: 1313.16 tp: 1308.56 [Invalid stops] I assume it is because the price is too close to the order before the EA sends a request to delete the order. I use this function to delete orders, and I do check for freeze level, but
if (mPosition.Profit() > 0 ) { double ask = NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_ASK ), _Digits ); double bid = NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_BID ), _Digits ); double oldSl =
Hi, I have recently purchased an EA and have been using it for a few weeks. I double check the EA page to check for update and found it is not available anymore. I wonder what do I do if I want to install this EA to other computer please? Can I download it from the market somehow? Or can I copy the
title... for now I've done this: To create a DLL (Dynamic Link Library) from Ta-Lib, you can follow these step-by-step instructions: Download Ta-Lib source code: Visit the official Ta-Lib website ( https://ta-lib.org/ ) and download the source code package suitable for your operating system. Extract
Hi @all. Maybe someone can help me. I've got an indicator, that sends me notifications when to open/ close positions. Is there a possibility to automate these orders out of the notifications
Hello everyone, I am trying to count pending orders placed by an EA. There is a very odd result -134545644 or so. This function runs in OnTick() function. Can someone help to get the correct result? I've included the code below. Thanks! int ordersTotal = OrdersTotal (); // Total
hey guys, i have a simple code that i to want make a bool custom function that looks for 2 simple patterns and if there is a pattern, takes true value (and print hello) and if not False, but when i want to code it with switch cases it gives me error. i only want it to take a number and bring it to
My EA is not triggering trades on live chart, aso not showing any results in testing strategy. Can any one let me know how to fix it
is there a Library or some way to set my RISK % PRE TRADE below 1% such as 0.10% ? Im trying it in Three Neural Networks Thank you
Hi, I have 3 input variables with enum data type and 3 other variables with double data type. enum CLOSE_TRADE_BY { NONE, ATR_STOPLOSS, FIXED_STOPLOSS, //Fixed stoploss ATR_TAKE_PROFIT, FIXED_TAKE_PROFIT //Fixed take profit }; //Variables input CLOSE_TRADE_BY
Could some review my code which I've attached below and let me know why do I occasionally get Error Code 10016 indicating it's an Invalid stops ? For reference here is one of the many log messages I receive in the MetaTrader 5's Journal 2023.06.02 00:23:36.885 Trades '5013799956': failed modify
Hey guys i traded with an EA on my demo account and now that i want to trade with it on a live account i keep getting error number 4756. I left screen shots of what I been seeing can anyone help
Hey, I am quite new to coding in Meta Editor, but I have this code for a MA cross-over strategy, where it should generate orders every time the MA crosses and terminate the orders, when it crosses the opposite way. It does work somtimes, but if I backtest on real data it seems that it is only
Hi, I need to code swing high and lows inside large legs. Say the leg is A to B and i need to get sub high and sub lows (a,b,c etc.) within the leg A-B Thanks ckm
There is a chart event for the click of the central mouse wheel
Hi, i am trying to fix this code buy and sell at same time but getting error '}' - unexpected end of program and '{' - unbalanced parentheses can any one fix and complete the code for me. #include <Trade/Trade.mqh> input int InpMaxTrades = 10 ; // max number of trades input double
Hi all, this is the procedure I'm trying to accomplish : RAW_STRING : is a string from input, this string is converted into a uchar array (considering the \0) , encrypt the uchar array using AES256 method (with a constant and proper-sized key) , represent a Hex array from the encrypted data (saved...
Hi. I need help on my code. Maybe some can help me :) I need next: 1. I need to be able to set the Take Profit value in the settings. 2. When the order is opened, the Take Profit set in the settings is set. 3. If the position has been reversed for 1 minute, close the order. 4. If current candle
How do I get the close price and close time of a trade after it has hit SL/TP? At entry I do something like this to log the open time information myTradingControlPanel.PositionOpen( _Symbol , ORDER_TYPE_SELL ,lot,currentBid,slPrc,tpPrc, "Sell Trade. Magic Number #" + ( string )
Hi, i was wondering if anyone has an expert advisor that meets the following or would be able to write one for me? Buy when macd is x amount above signal line Sell when macd is x amount below signal line T/P S/L Number of lots to buy/sell Only allow to many trades to be open Free margin to always be
Hello there. We're running into an issue trying to print out our list of pending tickets and attached the simple code base as well as a few screen shots of what we're seeing in testing. Issue is the last pending order never gets printed and even if manually adding print statements accessing that
i want move text below low candel? string text= "my text string "; datetime tim= iTime ( _Symbol , PERIOD_CURRENT , 1 ); string Name= string (tim); double price= iLow ( _Symbol , PERIOD_CURRENT , 1 ); ObjectCreate ( 0 ,Name, OBJ_TEXT , 0 ,tim,price);
I want the EA logic to start trading when 2 MA's cross and stop trading when a trade closes in profit or when there is X number of consecutives losses. But its not working that way, its just trading normally. I need some to help me out please
Let's discuss video "i made Chat GPT even better for trading | improving the ai model by OpenAI"
(6)
i made Chat GPT even better for trading | improving the ai model by OpenAI this video is exactly what you are looking for. by the end of the video you will know everything you were looking for! i believe that coding is the great equalizer. no matter someones situation, if they can code, they can
Hello all, Is there a simple way to insert the day of week into the SymbolInfoDouble to check if today is having triple swap? MqlDateTime time; TimeCurrent (time); Print (time.day_of_week); Print ( SymbolInfoDouble ( _Symbol , SYMBOL_SWAP_MONDAY)); Thank you
Dear,
I want to know what is different between Symbol() function and _Symbol variable.
I know both return current symbol name. but which should i use.

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.