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
in this case I try to delete objects that have the same name as the position or order comment. it works only for orders while for positions I don't understand how to do it. void OnTradeTransaction ( const MqlTradeTransaction &trans, const MqlTradeRequest &request
Hi all! We run one EA on MT4 for two brokers Exness and LiteForex, same leverage, only maximum 1 order opening in the time When trading, the history are same again for two brokers. And we sure about of the maximal deposit load for two accounts are always less than 10%. On live signal on MQL5 we see
I've looked through the market and cannot find one. I'll give an example of what I would like it to do: Price is currently at 150. I want to enter a buy position, on the following condition: Price goes below 100, this is then the trigger to turn the bot on. A buy stop order is then placed at 110
Hi, I don't know what's wrong, I'm traying to modify an open order when there is only one order opened, but keep getting this error. What can I modify to make it work? this is the code newTPb= level4bbb; newSLb= level3bbb; total; // number of open positions //--- iterate over
How can I extract the name of the symbols whose chart is on the open on the screen
Hi. All
I spent nearly 8 hours to find out how to change spread during backtesting and optimization.
I googled everywhere even thinking of using paid software on the net. Please don't do that.
MT4 has a built in feature so you can change spread during backtesting or optimization.
Just sharing...
Dear team can help me ? i use this in my bot to close particial when come same price, but how i close the sum all tickets i think is better when 50 dollar is come, close all tickets and iniciate a new cycle example ticket swap price magic number 1 -10 40 0001 2 +20 -30 0009 3 0 40 1212 close all
Hello, Here is what I have done so far: #include <Trade/Trade.mqh> CTrade trade; int maHandle; int OnInit () { maHandle= iMA ( _Symbol , PERIOD_CURRENT , 21, 0, MODE_SMMA, PRICE_CLOSE ); int subwindow=( int ) ChartGetInteger ( 0 , CHART_WINDOWS_TOTAL ); ChartIndicatorAdd ( 0
Hi . My strategy work with H4 time frame , but my broker(Alpari) Time zone has different with my test broker (FXCOM), You might say why I don't register in FXCM. because it can't It does not support my country. I searched many brokers, but all the ones that accept my country all has same time zone
Terms and Conditions: You describe (you provide) the idea. I place an open MQL5 code in this branch. I place this code in a CodeBase. I specify the author of the idea and the author of a MQL5 code in a code. The coding services are provided "as is" and you use them at your own risk. List of ideas
Hello everyone. Am new to MQL5, please can someone show me some mql5 code that can do the following: pick the first candle of the day, check if it's bullish or bearish. Let's call it candle A, If candle A is bullish then check the previous two candles to it if they are both bearish. If yes, then
I can successfully place order and retrieve the ticket id by result.order, but when i try to close the order always get invalid request 10013. Tried to close the order 2 ways. With the below function CloseTradeOrder AND using CTrade.OrderDelete( result.order ). Here goes my code: void
Looking for a script like below example (done for indicators) to remove and EA from the chart: Scripts: SD Delete Indicators - Indices - Articles, Library comments - MQL5 programming forum I tried following but ExpertRemove() does not work on a script. ExpertRemove - Common Functions - MQL5
Hi Friends, Im trying to upload a Trade Manager ( Utility ) and I get the following error message - What can be the issue ? Its a Utility and not an EA . test on EURUSD,H1 (netting) there are no trading operations test on XAUUSD,D1 (netting) tester takes too long time strategy tester report not
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.