Expert Advisors and Automated Trading - page 125

Hello, I am currently creating an indicator that shows the high and low of the previous bar for an user inputted time frame. It is currently working in some scenarios, however when the input timeframe or chart timeframe is changed it can start to output incorrect lines or sometimes not even output
my computer cpu 12900k ,128gb memory, 16TB harddisk, and i backtest 5 years every tick base on real tick with 1 currency pair , it still said not enough memory to generating , even the ram only use 50% , anyone can teach me how to do? thank you for answer, i love you all
Dear all, I got interested in trading several months back, did some reading on it and realized that algorithmic trading is the way for me to go since I have a full time job and am reasonably skilled in computer programming. I picked MT5 since it is close to C++, a language I am familiar with
Hi everyone, I hope you're well, I'm still a beginner, would you have any links or tutorials to find out if it's possible to modify the drawings that are automatically generated in the inputs and outputs?, For example, modify the arrows with other drawings if it's an input or output, or execute on
Hi As per my previous post on 'Invalid Stops' I'm in the process of learning how to code EAs. I do have some transferable skills as I used to code in Borland C back in 1990, so some aspects of this process are familiar, but coding for this environment is obvioulsy very new and I hit problems with
In the following snippet, I'm trying to print the details of closed positions. However, when I tested this snippet by placing an order and close it manually on MT5, this OnTradeTransaction function not get triggered. Is anything wrong in this code
Hello everyone, I need help with adding a trailing stop to my EA. I'm looking for assistance in identifying the problem and fixing my code👇🏼. Your support would be greatly appreciated. Thank you! double trailing_distance = 50.0 ; // Trailing stop distance in pointsif(PositionSelect(_Symbol) ==
request.action= TRADE_ACTION_DEAL ; request.symbol= _Symbol ; request.volume=volume; request.tp=price- 1 ; request.sl=price+ 1 ; request.price=price;
Hello all. I have a set of txt files my EA reads to get external data, but it does not work when debugging with historical data on MT5 version 5.00, build 2980. It works when debugging in real time instead. I have been trying to include the tester_file , I am using the FILE_COMMON flag on my
I have tried to understand how iCustom works, but I guess I'm just not getting it. I'm trying to build a simple Stochastic RSI EA. I have tried using both of these indicators: Free download of the 'Stochastic RSI' indicator by 'GODZILLA' for MetaTrader 5 in the MQL5 Code Base, 2011.11.25 Free
  Optimizer issue  (2)
I optimized my expert 3 months ago Now i have to optimize my exoert again in same conditions(same inputs with same steps and ...) but now it need much more time for optimizing in compared to last time Anybody know whats happining? Thank you all
  I will write you an advisor for free  (134   1 2 3 4 5 ... 13 14)
Looking for a partner trader to create a free joint robot
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
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
  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