Expert Advisors and Automated Trading - page 13

Greetings Please assist with my panel I created. When I press the Buy/Sell stop, "Pending stop pips" & "No. of Trades" buttons everything works perfectly but as for my TP & SL they do not show my take profit & stop loss levels at all. Below is my code please assist if you know the problem. #property
good day. I have an indicator set on my Templates so I open another Chart using my EA, and I run long chart_id = ChartOpen (_symbol, _period); if (chart_id == 0 ) return ( ERR_CHART_NOT_FOUND ); ChartSetInteger ( ChartID (), CHART_BRING_TO_TOP , true ); so now my default
Good Day Trust that you are all well. I updated MT5 to the latest version when restarting the Platform I found that most of my trading EA's are no longer on the charts, it is not just 1 EA it EA's from different Vendors. Is there a fix? Thanks Rene
Hi all, I’m running into an issue with my MT5 integration and wanted to see if anyone has dealt with something similar. The Issue in Simple Terms: My trading platform (on an OpenSUSE staging server) is generating signals correctly (e.g., BTC at 69% confidence). The problem is those signals aren’t
Hello guys, I’ve a problem with publishing my EA on the market. Although I’ve read all the related articles and topics on this forum to find a solution for it, but still I’m struggling with validation of my EA. All the obligations of the MQL4 has been included in my EA, but still I receive the error...
Hi I know nothing about MTQ4/5 - so am just beginning ;) I downloaded the following trading EA - fuzzy_logic_for_algotraders.mtq5 (23KB) For whatever reason it includes MT4Orders.mqh and so I downloaded that library and placed it in the 'include' folder I get 11 errors and 3 warnings on compiling
Hello everyone, I have been trying for several hours to reproduce the Sharpe Ratio statistics that appear in the Strategy Tester, but I cannot figure out the formula used by MetaTrader 5 to arrive at the displayed result. To do this, I followed the article ‘ Mathematics in trading: Sharpe and
Hello everyone, I’ve seen Expert Advisors that have managed to run profitably for years. Even a few martingale strategies have kept going much longer than expected. But sooner or later, most seem to blow the account or simply stop performing the way they once did. It makes me wonder what it really
I’m seeing a consistent mismatch between the history available on a live chart and what the Strategy Tester gives me. I only need to show OnInit() to illustrate it. Code used in OnInit : int OnInit () { PrintFormat ( "MQL_TESTER=%d | DATA_PATH=%s" , ( int ) MQLInfoInteger (
Hi All i'm testing a strategy on the minute timeframe. I understand that on the graph, the minute data doesn't go back further than about 3 months, however on the strategy tester graph it shows minute data going back 6 months if i'm testing to 6 months back. I have also found that with some
My mt5 recently updated to version 5 build 5200, now, my EA which was working perfectly yesterday isn't
Hey! I have a problem with backtesting my EA in MT5. Attached below is a chart that appears in the MT5 terminal after backtesting. Here some of the trade history arrows do not appear on candles. Instead they are little or too much offset from the candle. I have seen this happen many times. My
I have an EA that runs on the startegy tester for optimization I have created 5 custom symbols that are 5min timeframe minimum and all are loaded and fine I try to run optimization on all the 5 symbols and diffrent timeframes at same time the issue is some passes fail on the tester while tring this
hi please see attatched what causes this large price drop in an MT5 backtest. Missing data
Hi everyone, After last update, I think ObjectGetString does not work properly. Following code, prints nothing and gives the error 5040: void OnStart () { string name = "lbl_test" ; ObjectCreate ( 0 , name, OBJ_LABEL , 0 , 0 , 0 ); ObjectSetString ( 0 , name, OBJPROP_TEXT , "This is it" );
I want to hide an object on a chart in Mt5 when the scale of this chart changes to 0 or 1 (the scale can change from 0 to 5). unfortunately MQL5 does not have a command like ObjectSetInteger ( 0 , "name" , OBJPROP_TIMEFRAMES , OBJ_PERIOD_H1 | OBJ_PERIOD_D1 ) for chart_scale. I found a way to hide
Well I've just been doing some testing and experienced some very strange behaviour. I was expecting 1 min OHLC and Open Prices to give very similar results as I had created two custom symbols , both with a spread of 1 point. What I got was two curves that diverged from each other (The red line and
I have made a custom indicator written in MQL5 which does the following: 1- Calculate the 9-period hull moving average for the open prices. Name it HMA9open 2- Calculate the 9-period hull moving average for the high prices. Name it HMA9high 3- Calculate the 9-period hull moving
Hi everybody, like always and done without any problems in previous versions of MT5 I want to test my (unmodified) EA by the strategy tester. But since I've installed MT5 build 2926 I cannot open any pending orders. I get the error messages CP 0 16 : 18 : 13.970 Tester DE30,H1
I wrote a script to manipulate a set of matrices and want to check the dimension of the result matrix . I wrote output to a file (csv) and also print it. I can't find neither of them. I use explorer to find the csv file. No joy. Any help is appreciate. File write is line 158 and print is 161
I have a shortcut with these properties: Target: "D:\Metatrader3\MetaQuotes\MetaTrader5\terminal64.exe" /portable Start in: "D:\Metatrader3\MetaQuotes\MetaTrader5" at this location: "D:\Metatrader3\MetaQuotes\MetaTrader5\portable.lnk" When I double-click the shotcut, it opens the terminal and takes
I have 2 classes with the same name but in different namespaces. When one of those classes (in the sub-namespace) inherits from the other (in the parent namespace), I get compiler errors. namespace MainSpace { class CMyClass { public : CMyClass() { } }; namespace SubSpace
Hello community, when i want to backtest in MT5 against BTCUSD, the syn procedure never stops. Have alredy checked out what happens when deleting base folder. No fix. This is what the journal shows: MD 0 01 : 53 : 31.771 Core 08 BTCUSD: history for 2025 year synchronized DS 0
Hello all, Long time lurker, first time poster, as I always find my answer by searching the forum. Not this time though, and I have been scratching my head for a while. After calling ChartSetSymbolPeriod (either to change Symbol or Period), my EA deinitializes (as it should), my chart is updated
Hello, I am building an Expert Advisor and need help with one function. I need a function called DeletePendingOrders that loops through all pending orders and deletes any that match my EA's magic number. Can you please show me the correct code for this function and where to put it in my EA? Here is
Hello, i search any solutions for close one or more order opened manualy with my EA manager following the instruction "CLOSE ALL ORDER WITH COMMENT...". Example: I have a very good and profitable manual strategy with one or more position on markets... In a manual trading is not possible specifi a ID
Hello Developers, While attempting to upload my EA to the Market, I encountered a confusing error. If anyone has experienced this before, I’d really appreciate your insight on what it means and how to resolve it. Any assistance is highly appreciated test on EURUSD,H1 (netting) strategy tester report
I have probably misunderstood the documention for the ArraySort() function in MQL5.  https://www.mql5.com/en/docs/array/arraysort states "Sorts the values in the first dimension of a multidimensional numeric array in the ascending order". When I use this function, my arrays are sorted with Array[0]...
I am a newbie, programming a Chandelier Exit with EMA entry and exit strategy. When I backtest it, it’s only active sell order , but buy order useing the same logic code, so I am confusing why is no any active buy order and also liquidating when the liquidation conditions are not met. Is my program