Expert Advisors and Automated Trading - page 87

I am new to coding and expert advisors. I was following along with a YouTube video just to learn, this EA is supposed to open a position every time there is an SMA cross for a quick scalp. I noticed many times there are many times the SMAs cross but no position is opened. Any ideas why
My EA did not properly implement the sell limit condition that I was requesting. At "// Check the conditions for a sell signa"l and "// Check the conditions for a sell signal" seem to be logically correct. Can you check and point out errors for me? Thank you ! input double RiskUSD = 10.0 ; // USD
Hello everyone, how can we get a calculation of the number of candles formed from the date 2009 to 2021, for example, on the minute frame? i want to gets (open ,high ,low ,close) prices form 9/10/2009 to 9/10/2022 for example can any one help me please
1 full hour of reading threads and posts to no avail. All input is appreciated. Q...How do I add up all Deposits into account via code
Hi Guys Is there a notable distinction between connecting to a live account and a demo account while strategy test my EA's on MT5? The history quality of both are the same 98%. Still, I see quite a difference in results when I'm connected to a Live or Demo account strategy test my EAs. Can anyone
If a system is robust, wouldn't it have similar Recovery Ratios between the "In Sample" and "Out of Sample" data
  Historical data  (2)
Hello, when downloading bar data for 1 minute of an asset and also the tick data for the same asset an unexplainable happens. Lets say close price at 12:00:00 is 100. Tick data shows that at 11:59:59 bid and ask were 101 and 102, and at 12:00:01 they were for example 102 and 103(these are all
any assistance please... my code has undeclared identifier errors for functions OrderSend() and iStochastic(). im still getting undeclared identifier errors for parameters of both function even after including the trade.mqh library
Hello! I wrote a function to return the takeprofit in price using the expected profit. The function worked well for symbols like EURUSD but failed in AUDJPY ( JPY pairs ) and Cryptocurrency. I believe this is because of the discrepancies in their _Digit values but even after accounting for it, I
Hello there! I'm working on an Expert advisor. I want it to close all positions when there is a 2 pips retracement. I utilize Ctrade Standard library to open and close positions. Yes, I'm aware of the SetAsyncMode() method, but it doesn't solve the issue. I tried orderSendAsync(), it still doesn't
void OnStart () { //--- } //+------------------------------------------------------------------+ void RiskPercentageByAccountBalance(); { double accBalance = ACCOUNT_BALANCE (); Alert ( "Your Account Balance is: $" + string ( ACCOUNT_BALANCE )); Alert ( "Max Risk is: $" + string ( 0.01 *
Can anyone tell me why it print array out of range (number71,55)?Thx a lot(Want to calculate the average high minus low f or 20 days, the custom indicator in iCustom is the code itself) #property indicator_chart_window #property indicator_buffers 4 #property indicator_plots 4 double DayHigh[];
Hi guys I know that I can do a backtesting for my EA with all the pairs in market watch at the same time in MT5. but can I set different setting for each currency pairs? For example I want to test for Gold, EURUSD, GBPUSD and USDJPY and my EA have 5 options in its setting , I want to disable option1
Hello everyone. I encountered the error "Experts initializing of ????(ETHUSD,M15) failed with code 32767 (incorrect parameters)" when running mql5. The program code that seems to have caused the error is "double min_volume=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_MIN);" and it occurred with the
I was working on a backtesting expert and I notice that the ticks jumps to the next minute before finishing the minute. I did a simple code to export to file the OnTick() and saved the price and the current time as show in the left image. The right image show the symbol MT5 tick information which
Hello, I am currently using this method to get an order ticket when the order is placed successfully. Is this method the best practice? Is there any other more effective and secure way? Thank you in advance. if (trade.PositionOpen( _Symbol , orderType, lot, NULL , NULL , NULL , cmt)) { ulong
Sir, I am using Multi-Symbol... It has one found "Failed Modify this Stoploss ( Invalid Stop )" but It has working to m odified this Stoploss is too many times . Please see this attached photo.. //Input input group "Trailing Start & Step, Stop :- " input bool TrailingStart_Step_Stop = true ; input
Hi, is this well defined? if now, how should I write it down? I ended up with the variables inside the OnInit(), but: Is Symbol() the string of the symbol where the EA is in? string str1,str2,str3,str4; str1= "...XXX.../MQL5/Files/archivo_" ; str2= Symbol () str3= "_python.txt" ;
Hi to all! Try to post data to the web and get error: Access violation at 0x00007FFE071D1F34 read to 0x00007FFE00000000 in 'wininet.dll' crash --> 00007FFE071D1F34 4C3929 cmp [rcx], r13 00007FFE071D1F37 0F85C7020000 jnz dword 0x7ffe071d2204 00007FFE071D1F3D 488B0DAC353D00 mov rcx
As I see(please correct me if I am wrong), when a back test starts speed is very high and passing time and increasing positions/orders and all operations which may continuously are recoding on arrays and ... speed reduces dramatically! Is it a good idea to give access to user to limit statistics and
Hello, is it possible to hide the EA name on the chart? Changing the Foreground Colour to NONE is not a proper solution, because the time and price scale will get invisible too. Best Regards
Hello, I have been backtesting MT5 for 3 years. from 2020-01-01 to the present day. however, on December 29, 2023, the quality of the data dropped. from 99% to 67%. In several brokers. I've tried pepperstone, ic market, FTMO, etc... all of them with low quality on 01-01-2020. Quality will be good
Hi Community, I am a student learning computer science and wanna start a side project. May I gather some idea from the community that you think this tool will help you during your backtest. Thanks
Hi, Keep getting this error ',' - open parenthesis expected on the below code: double stopLoss = NormalizeDouble(currentPrice - tradingSpaceMax * Point, _Digits); Can someone assist
Hello friends, Somewhat new to MT5 (and this forum!) and so far so good. My trading involves primarily placing pending orders : Buy Stop (Long) and Sell Stop (Short) orders, often with a Trailing Stop Loss, and I'm using a continuously running VPS session. For some reason when I place a trailing SL
Hi Everyone, quick question, is it possible to permanently change the settings of visualize section. When i backtest my EA and the visualize section appears, there is always a grid and candlesticks are always in the form of a bar chart. Is there anyway to permanently change this to the settings i
Just wondering if anyone has come across any alternatives to the genetic algorithm for backtesting that they would be willing to share
I'm talking about memory reserved using the third parameter of the ArrayResize function. Is there a way to find out how much memory is reserved for an array
Hello,I have expert advisor works with many symbols simultaneously,The EA doesnt support multiple symbol testing, I've tested all symbols separetly,is there a way or a sofware to combine multiple MT5 strategy tester results into one
I need to know the end time of each trading session to close position. I've imported historical data into MT5, and in reality, the end time of each session is not fixed. For example some sessions end at 20:00, while others end at 21:00. Is there a way in MQL5 to determine the current session's end