OK, so I have made myself an EA and am very proud of it. So proud that I'm thinking to sell it to others. But I want it to be used only by the customers, not to be shared online or re-sold for less. Therefore it has to be sold as ex5/ex5 (ie encrypted) and it must contain an input field where the
Let's say that I open a position which is cleanly dividable by 10, with a hedging account. Is it possible to place orders that sit on the trade server ready to be executed, in such a way, that there are 10 de-facto (or actual) take-profits at 10 different price targets, each being 1/10 of the
Hello, This is for MQL5. I've made an EA and everything is working but my Position Modify, its all the right values but it simply doesn't go through. void CheckTradeAndMoveBreakEven() { bool selected= PositionSelect ( _Symbol ); if (selected) // if the position is selected
I need this script Trading Hour Enable Time Filter: if true enables the time filter Trading Start Hour: operating start Hour Trading Start Minute: operating start minutes Trading Stop Hours: operating end Hour Trading Stop Minute: operating end minutes Close Out of hours: close all orders at the
Hello! I have an issue with an EA. I have a function that modifies the current open position stops and I realized that m_symbol.Ask() and m_symbol.Bid() are not the real Ask and Bid prices. In order to debug it, I have this code to print the values: Print("M symbol ask1 ======================= "
Hey i'm new here.. can you please help me to count the no. of positions do i have open, and in which how many there are buy positions and sell , i need mql5 code. like.. totol open positions = 5 buy = 3 sell = 2 thank you
In the following MQL5 OnTradeTransaction() function allows me to retrieve 'deal' data and output it to a CSV file one deal at a time. (My EA simply works on the basis of opening market orders - no pending orders) This is outputting the data fine. void OnTradeTransaction ( const MqlTradeTransaction
Hello everyone - The function below has been designed to get ENTRY & EXIT deals and their associated position IDS. This is working fine. - I have checked that the arrays are getting populated correctly and they build upon every iteration of their 'for' loops. PROBLEM: The issue is happening because
Hi team. I need an MQ4 programmer to help me out with this. I am trying to write a good trailing stop expert with some specific features. 1. A starting stop for when the Expert is started. 2. A trailing stop, adjustable from 5 pips upwards 3. A take profit function 4. Profit trailing. If true it...
Good day Is there a way to identify if a symbol is related to a particular market session? In other words I want my EA to only trade EURUSD during the NY or Europe sessions. The only thing I could think of was to manually program a static array that relates all symbol pairs to their related sessions
Hello. If I rent VPS from metatrader terminal..can I run 2 metatraders on the same VPS which I rent from there? I am running an EA on a metatrader 1 and I want to copy the trades to metatrader 2.. S o if I rent VPS from here can I run 2 metatraders on that VPS? Thank you
I tried to change the Fibonacci display color but it only changes the color of the diagonal line across the levels as in the image below. How can I change the level colors? Please see my relevant code below: //+------------------------------------------------------------------+//| Create Fibonacci
Hello Please can you tell me what the error messages mean and what going on with my EA, also how do I resolve the problem. Thank you for your help. Andrew
Hi, I want to have a Custom moving average with a specific color, following this post https://www.mql5.com/en/code/19864 I have done the following: #include <Trade/Trade.mqh> CTrade trade; int handle_iMA_First; int OnInit () { handle_iMA_First= iCustom ( _Symbol , PERIOD_CURRENT , "Custom Moving
I bought many experts on the MT5 market who gave good results in testers but put in VPS on a demo and real account they gave completely different results but, not only, by testing a month in real life and at the end of the month by repeating the test over the same period the results are always
Is there a way to stop the EA if the equity reaches a ceratin level? Is there a built-in function for this or this function must be in the EA settings
Is artificial intelligence better or trading robot
hi everyone, hope you're well 🙂 I am testing the functions of the CSymbolInfo class , I notice that the Bank() function does not show me anything, do you know why string bank = m_symbol.Bank(); Print ( "Bank : " , bank); I can display other values such as the minimum stop loss and the swap, but
hi I have a normalized value MqlTick tick; SymbolInfoTick ( _Symbol ,tick); //--- double Highest = iHighest ( Symbol (),my_timeframe, MODE_REAL_VOLUME ,shift, 1 ); double Lowest = iLowest ( Symbol (),my_timeframe, MODE_REAL_VOLUME ,shift, 1 ); double Normalizado = ((tick.last - Lowest)*
Hi everyone I am seeking help on something I do not understand (code at the end of page). When I using this code with the parameters I filled in, and I fill in the desired time for trade 1, it works totally fine. But whenever I change the parameters, sometimes it works and sometimes it does not seem
I successfully used the code below to get the last n values of MACD and Signal lines : CopyBuffer (handleMACD, 0 , n , inputBufferNumber, bufferMACD); CopyBuffer (handleMACD, 1 , n , inputBufferNumber, bufferSignal); However, I also need the Histogram line. How can I get the the last n values of the
Hello, I'm blocking on a code. I wish the ea keeps in memory the last highest balance, here is my code but it does not work, can you help me? double highestbalance() { double highestbalance1=1000; if ( AccountBalance() > (highestbalance1 )) highestbalance1 =...
hi! I've never used this before, I whant to know the ohlc from the first 7.5 minutes for a 15 min candle sticks. Is this possible? how can I approach this
Hi, Could anyone tell me, is there a way to automatically stop the EA if the equity is less than a predetermined value. Is there a bulit-in function in MT5
Hi I'm still a beginner, and I'm just getting to grips with MQL5's native functions, for example, when I need to call native functions like iMA, should I call the Buffer from the OnCalculate() function? And sorry if my question is silly, that's okay it's a question. If you have any links to good or
how come a line of my backtest has a profit x and a dd y....and when i run the single test the profit and dd is way different from the backtest line result?
(25 1 2 3)
how come a line of my backtest has a profit x and a dd y....and when i run the single test the profit and dd is way different from the backtest line result
Hi everyone, how are you? I'm still a beginner and I realize that the time rendered by the TimeCurrent function is 3 hours longer than GMT? MqlDateTime timeCurrent; TimeToStruct ( TimeCurrent (), timeCurrent); Print (" TimeCurrent Hour = ", timeCurrent.hour); Or am I missing something
// Input parameters input int myParameter1 = 5 ; // an integer input parameter with default value 5 input double myParameter2 = 1.5 ; // a double input parameter with default value 1.5 input string myParameter3 = "hello" ; // a string input parameter with default value "hello" // Global variables
Morning! Can someone tell me how MT5 calculates the symbol point value using the SYMBOL_POINT enum. For example the result of the following: // GET POINT VALUE OF CURRENT SYMBOL double symbolPointVal = SymbolInfoDouble (CurrentSymbol, SYMBOL_POINT ); What is the calculation that it is doing to get
please check my code below MqlTradeCheckResult m_check_result; MqlTradeRequest request; request.price = 132.628 ; if (! OrderCheck (request,m_check_result)){ return false } return OrderSend (request, result); OrderCheck is failing and returning false because the price value is wrong. The

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.