Expert Advisors and Automated Trading - page 165

How can I obtain the equity in a variable of 0 hours in central Europe and update it daily
Hi dear friends and admins, One of my expert advisor is running only between 09.30-18.10 hours. I want to find, in 1 minute chart, highest and lowest candle close between that hours, anyone can help me? Here is some code: #include <Trade\PositionInfo.mqh> ... input int robotCalismaSaati = 09 ;
How do i Stop ea while using vps
Hi there? Please how should I fix these 2 errors? I have removed some '{' and '}' as I struggled with the code and they seem not to have much effect on code compilation. The errors are: Line 90:'{' -Unbalanced parentheses Line 265:';'-Unexpected end of program I shall kindly
Hello, I'd like to know, when I make a complete optimisation backtest of my EA, if it is possible to ignore useless tests in order to save time. For example, if my code is the following: [code] if(use_rsi) { actualRSI = iRSI(Symbol(),rsi_timeframe,rsi_period,rsi_applied_price,rsi_shift);
Hi Does anyone have a breakout EA that can do the following: - Trade only at x bar after breakout. (x being 5 min time frame). Example; I look at the 08:00 bar, if the 08:05 bar closes above/below the 08:00´s high/low then it will trade in that direction - Specific SL and TP that
Based on the pairs the smallest difference of two values may result in 0. 00001, 0.0001 or 0.001 and so on. For example, for GBPUSD with values 1.23434 and 1.23433, the difference is 0.00001 and for GBPJPY with values 164.712 and 164.711 the difference is 0.001. I have been manually doing the
hi can any one help . i do a back test... and after it has finished and given me the result .it the crashes and says not responding when i run the chosen backtest ... i have to alt/ctrl/delete and close mt5 i have deleted mt5 and re loaded it about ten times and it still the same..... the system is
Hi all, For traders who created expert advisors with very successful backtest results, how are your EAs doing in live trading and how long have you used them? Please share your experiences
Include\Expert\Trailing\TrailingMA.mqh bool CTrailingMA::CheckTrailingStopLong(CPositionInfo *position, double &sl, double &tp) { ... double new_sl= NormalizeDouble (m_MA.Main( 1 ),m_symbol. Digits ()); ... } bool CTrailingMA::CheckTrailingStopShort(CPositionInfo *position, double &sl
Hi, I am struggling with one loop. I hope you can help me. The EA has a defined market entry. Once the market entry occurred, I want to have predefined #of Limit Orders cascading based on multiples defined. // Initialisation ulong LimitOrders(int type) { static double NextPrice; static
Hi Everyone, ive been running a few different optimisations, and have noticed no matter what settings or pairs i am on, im getting capped at 10497 every time, has anyone had this before and anyone know how it can be resolved
[Deleted]
How can I check a symbol if it is in t rading Session ? SymbolInfoSessionTrade should generally do the job, however, as I remember, some days before big holiday, trading session end earlier then usual days, so SymbolInfoSessionTrade is not suitable. I tried to use Trade Mode, but it alway show Full
Hi, How to call a php file which is hosted in my server? How to pass post variables from mql5 ea to php
Hi, Guys! I have the following error: 1. order_send(): by WINZ22 0.1 lots at 109430.0 with deviation=200 points 2. order_send failed, retcode=10014 can anybody help me? Thanks
Good afternoon, I would like to know the information if I have unclosed orders on Friday, can I turn off the computer and reopen on Monday without losing the orders that are still open. Thanks
Can some one assist me? i have any EA that follows the market direction using an Indicator to open trades. my problem is the EA only opens trades when the market is reversing. what code can i use for the EA to open the trades at the start of the trend in the indicator or at the next candle of the
Hello Everyone, Is it possible to simulate a change of balance during a backtest ? Typically added money or withdraw money from Balance during the backtest. Thank you in advance, Regards
This piece of code is giving Array out of range error only when backtesting. When EA is running. No errors whatsoever! CopyRates (symbol, PERIOD_D1 , 0 , 30 , mrate); for ( int i = 0 ; i < 30 ; i++){ ArrayCount = VolumeArray.Size(); if (( int )mrate[i].close % 10 != 0 )
Hello, I'm currently running an EA with my funded account, but my funding company said I need to limit my trades to 50 per day. If I run an EA on a different computer that doesn't allow trading after 50 trades per day, would it void out the other EA's function until the following day? Thanks
Hi I'm trying out some simple strategies however I'm struggeling to understand how to produce calculations to use in trade conditions. Anyway if you're able answer this that should be resolved: I'm trying to get this simple calculation/indicator into a strategy where I can use it to create a
Hey guys, I am considering starting a Local Network Farm in my workplace after work hours, to take advantage of the computing power while its not in use. My question is- Does the strategy tester know how to start using a Local Network Agent that became available after the optimization started? In
Hi, I whant to abort the backtest on a certain condition. E.g. when reached an amount of tests. Has anybody an idea how to realize in MQL5?  Thx and regards, Tom
I am try to restart an optimization process after I updated the code. Every time I want to run the optimization process from the beginning, the optimizer remembers what iteration it was up to in the previous run, and starts from there again. I don't want this behavior, and I can't see how to disable...
The following are my two questions. I haven't found good answers in the historical records. Does anyone know? 1.How can the EA get a information when sever is disconnected.I found that the server of the broker was disconnected sometimes, and it will reconnect in a few seconds. This situation can
Hi. I'm new here and i have a problem with taking data from new bar function. if (newBar== true ){ datetime startTime = CreateDateTime( 14 , 0 ); datetime endTime = CreateDateTime( 23 , 0 ); } ( Comment ( "Current: " , TimeCurrent (), "\nStart: " ,startTime, "\nEnd: "
Hi everyone, So I notice something that happens but not on every backtest/optimisation run. Here is an exemple done with AUDCHF tick and M1 data from TickDataSuite Dukascopy. When launching a test I will get this in the journal tab And at the end this My question more precisely is, Why does MT5
[Deleted]
I do understand error 4756 means invalid stops, the buystop code is below. It works on testing and all symbols except gold. What might be the issue. //+--------------------------------------------------------------------+ void BUYSTOP( double entry, string symbol, int Magic, string EA_Comment) {
Hello everyone, I have written an EA. The speed of EA in the backtest is good at first, but after a while, the speed decreases drastically. How should I solve this problem? Thank you for your guidance
  update EA  (8)
I can not download the new update for my EA