Expert Advisors and Automated Trading - page 74

Are there any tips what should be considered as a best result of strategy tester optimization's results? Should I use best result from complex optimization or higher profit result? or maybe its better to use a variant with lower DD? Who has experience in automated trading optimization
I have created a bot and its perfectly working on the tester but cant place trades in real time what might be the problem please help
I am having an issue trying to count closed trades , i just can seem to get it done . int ClosedOdersCount = 0 ; datetime TimeNow = TimeCurrent (); datetime TimeBefore = TimeCurrent () - 860000 ; long OrderType ; HistorySelect (TimeBefore,TimeNow); if ( HistoryOrdersTotal () > 0 ){ for (
I use 31 Pairs and 15 Timeframes on my expert advisor . How can i see them on Strategy Tester Report? // Symbols are in a class string symbolss[]= { "AUDCAD", "AUDCHF", "AUDJPY", "AUDNZD", "AUDUSD", "CADCHF", "CADJPY", "CHFJPY", "EURAUD", "EURCAD", "EURCHF", "EURGBP", "EURJPY", "EURNZD", "EURSGD"
if (position == "sell limit" && type == "(open now) OPEN" ) // OPEN SELL LIMIT Position ********************************************** { // Perform action for Sell Limit Open // Place the order here // Prepare
I am sharing this code with you in hope that you can help me to add the features for it to close all open trades x minutes before the news. Its MT5 If you can advice me on a feature to backtest news it would be a plus. Code Input: input string snev = "------------ News Event Filter -----------" ;
Hello, I've seen it's possible to have the profit/loss in the Strategy Tester , but how can this be done? I believe it may be making losses on the trades it is opening due to closing too quickly. Thank you for any help. All the best, little.trader
Hi I've just started learning to code EA and try and get my head around MT5, ticks, points etc, so I apologise in advance if I have done something very daft or missed something obvious! So I've been following a tutorial online that gradually developed a more complex EA. It seemed to make sense and
Is it possible to split a market order before it is sent to the server or are market orders immediately sent preventing any modification before being sent to the server? For example, if a market order for 5 lots has been placed, I'd like it split into 10 market orders of 0.5 lots each instead and
Hi everyone, I have been testing an EA using 1) Open Prices 2) 1 min OHLC 3) Real Ticks There is similarity between Open Prices and 1 min OHLC however there is a large difference when using real ticks. Well it's about 0.75% which I guess isn't too bad. It's just more than I was expecting. See the
I am getting the following error when I try and call CheckTrailingStopLong inside of TrailingMA and I cannot seem to figure out what the issue is. I feel like I am missing something basic. Error: 'CheckTrailingStopLong' - no one of the overloads can be applied to the function call Pertinent Code
hi guys, in this last few days, (i'm not quite sure when the exact date is), after updating mt5 i stuck with this "critical runtime error 565 in Oninit function" during optimization. the problem is just pop up suddenly out of nowhere, on the EA project i am currently working, and it doesn't shown
  unsigned right shift  (13   1 2)
Hi , in javascript theres >>> and its called an "unsigned right shift" https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Unsigned_right_shift Is >> the equivalent in mql5 ? Thanks
Hi everyone, The include of the file Trade.mqh doesn't seem to be working for me (see picture include)... I still get the error 'OrderModify' - undeclared identifier I've tried all there is in the picture joined (solutions)
This happens: when I have this: if (array_st[ 0 ]<rates[ 0 ].open && array_st[ 1 ]<rates[ 1 ].open && array_rsi[ 0 ]<= 1 ) //&& IsNewOrderAllowed()==true) { valueB=array_atr[ 0 ]; Print ( "Open Order Buy" ); Alert ( "Buying" ); Orden= "Buy" ; sl2=
Hi all I am trying to draw a square from time1,price1 to time2,price2 across all open charts. I expected this to work but it only draws it on the first chart . long chartID=0; if(drawFVG) while(chartID >= 0) { RectangleCreate(chartID,"FVG"+par_temp,0,time1,price1,time2,price2);
Hi, I have managed to load the custom indicator and it partly plots on the graph when using the strategy tester. However the actual curve line does not seem to plot for some reason. Below is the code: //+------------------------------------------------------------------+ //|
Hi, I am relatively new to MT5 and having my first attempt to write an experimental EA after reading the tutorials and examples here. I am trying to initialize multiple instance of a customed indicator with different trend period using iCustom(), and trying to process the indicator value using
i want to stop expert advisor to trade after fixed profit target over account initial balance. i built EA for my prop firm account. this is the code i entered after my startegy . when i started backtesting , the EA still continues to trade. double floatingprofits ; input int startbalance = 50000 ;
Hi, I downloaded EURUSD M1 historical data and imported it on a custom Symbol. When I try to test an EA on it, I get several 10044 errors opening positions.  2018.11.07 19:02:51.499 2017.08.01 15:40:00   failed market buy 0.01 EURUSDh tp: 1.18944 [Only position closing is allowed] 2018.11.07 19:02...
I have found the help system absolutely useless and I am hoping someone can direct me to where/who can address the following issues. I have two demo accounts and I am attempting to start a bot in each one. I have VPS service in each account as well. Here are my actions and the subsequent error
Hi there, I have an EA someone made for me and whenever i try optimise the time just keeps going up and up? Example, it will start at 2 hours then go up to 10 hours and keeps going up. Why is this? Thanks
After I increase my position, I want to close all positions when the first order stops losing. How to obtain a stop loss signal
Hi, I am trying to modify this custom indicator to provide an additional result in the index buffer (trend direction). I have modified the code and the print function produces the correct value, however I cannot retrieve it from my EA. Here is the code - #property indicator_chart_window #property
Hello, I have a source code for an indicator, and I want to use it as an Expert advisor, but the problem i have that OnCalculate doesn't called automatically . int OnCalculate ( const int rates_total, const int prev_calculated, const int begin, const
Hi, I have two EAs, and when traying to going both, they don't give the same results (added) ... and don't know why. Example, they are both profitable since 2020 till today, and when added, they are not profitable
Hello Everyone, I am newbie to MT5 back testing software. I am testing a strategy with deposit $2500 and leverage 1:50 with 5 Lots each trade According to screen shot 5 lots require me to have $1090 margin, so $1410 remaining as a loss cushion Question: 1. Does the $2500 deposit entered in the
hi, I have no freelance works done yet, just started in freelance, and no one gives me job (0 of arround 20 or 30 jobs), they say that they are not going to give a work to some one without experience. If everyone thinks the same, I will never get a job. What can I do
please check the attached screenshots . There is a discrepancy between data showing in the backtest section and graph section
Hello, would any of you know in MQL5 how to open the configuration window of an expert advisor if a certain condition is met? For example, if the number of trades is greater than 5, open the EA's configuration window