Expert Advisors and Automated Trading - page 178

does anyone know what are the steps on coding an EA that can do walk forward testing optimization just like this one I've read article on mql5.com and I found 2 articles but both of them are too complicated for me to understand and the library is expensive but the general idea is pick the starting
hi programmers can anyone hep me out with the mqltraderequest order for opening positions in gold and us30, i am kinda stuck in the implementation since i have only dealt with forex eas. I'd really appreciate the help
Hello! I recently switched to MT5/MQL5 in order to be able to easily test my EA over multiple currency pairs. I have ported my code and everything works great but I am having a really mundane problem now: I just don't seem to be able to actually get the Tester to test over multiple currencies
Is the backtest information correct? I programmed the Expert, and during the back-test, it showed me great results,<Deleted>: The important question: Can the results of the back-test be relied upon, and to what extent they can be consistent with reality? Please help me in this matter. Thanks
Hi, I have 3 windows(1, 5 and 15 minutes charts) opened on a specific pair, I need an EA that can assist me with mirroring line studies. Once I draw a line on any of the three charts, that line should appear on the other 2 charts of the same pair. If there is such an EA, please help me with a link
I have created an EA in MetaEditor 5. After compiling the developed code, the navigator in MetaTrader 5 does not show .exe file of developed EA. How can I fix this problem
What is the most simple method to get the ticket number if I open trade as follow? Thanks. #include <Trade\Trade.mqh> CTrade trade; Ask= NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_ASK ), _Digits ); Bid= NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_BID ), _Digits ); trade.Buy(
I try to use the strategy tester to know if the strategy works or not, but I would like to calculate the stoploss at the close of the candle in which the stoploss was activated and not the stoploss of the operation that was created, does anyone have an idea of how do it ? #include <Trade/Trade.mqh>
plz, who know about - write example of these ... It's my current setting, but it's only for pending orders ... request = { "action" : mt5. TRADE_ACTION_REMOVE , "position" : Order.ticket, # result from mt5.positions_get(group= "*" ), I was
Hi, When performing EA optimisation under MQL5, one of the comparative outputs is "Draw down %". However, when a full report/backtest is run on that single string of inputs, the value that is used in the optimization output is actually the "Equity Drawdown maximal, as a percentage". I do not...
  Halt Trend EA  (4)
Does anyone know of any EAs based on Half Trend indicator? Thanks very much.
I have a problem. I want to put in my EA as Stop the last bottom, or the previous one, or the same for the top. But when I run the EA, it gives the error " array out of range ". what am I doing wrong? double top =0; double bottom=0; double lasttop =0; double lastbotton =0; MqlRates candle[];
Hi, I'm trying to figure out a way to use ENUM_POSITION_TYPE in function argument in such a way that: - if function argument is empty then I count all open positions for the symbol PositionCount(); - if function argument is POSITION_TYPE_BUY then I count only BUY positions for the symbol
Dear all, I hope I'm not asking a repeated question, but I would like the help from my colleagues to clarify a doubt. Is it possible to include an indicator code, in this case ZigZag Indicator, inside an EA code (OnTick)? That is, I don't want call the indicator with the iCustom function, but rather
Hi, it seems i cant get buy or sell positions but when i call CountBuyPositions() it will return all positions and when calling CountSellPositions() it doesn't return anything. this is my code: //+------------------------------------------------------------------+ int CountBuyPositions() { int
[Deleted]
Someone please help.. I am now a little proficient in C++ and would like to know the steps to follow to be able to write an expert advisor in C++ on another IDE other than metaeditor, most preferably codeblocks or vs code, but using metaeditor functions and use it on the metatrader platform. Any
[Deleted]
Hi developers, I have a bit of trouble here. I'm able to make the standard moving average signal execute trades but the harmonic signal only shows the harmonic intergration charts but does not execute in favor of my harmonic indicator. Could I be missing something? int OnInit ( void ) { #include
I want to see my profit and loss from each trade in mql5 like in mql4 after backtesting single. Is it possible? Thanks
I have developed a correlation matrix however I know it can be made more efficient. Some 'cells' do not load, and i would like it to update every tick. What methods could improve the efficiency of it? #include <Math\Stat\Math.mqh> enum correlation_method { Kendall, Pearson, Spearman };
Can someone please help me with the mq5 code to enable the times to be optimized ... needs to be 4 separate lines Start Hour ... HH Start Minute ... MM End Hour ... HH End Minute ... MM Thank You :)
Is there anyway to run metatester simulations with a fixed balance? right now I can only get it to, basically, tell me how much can my account grow with the current strategy, however, I don't know if using a fixed balance every month in the simulation can give me different results as in an specific
Hi all. I'm aware I can query the current account balance of course. I'm aware I can query historical data for bars, deals, and orders (for information at some point in the past). Is there any way to query what the account balance was at some point in the past. eg. if I need to know what the
Hello, There is anyway to check if a symbol is trading in normal or auction mode? I'm having problens with auctions in the middle of the day in the USD/BRL market at BMF&Bovespa (Brazil). When a auction starts the robot send thousands of orders. With the ENUM_SYMBOL_TRADE_MODE there are some...
Hi I am getting compilation error as below: ',' - unexpected token StrategyBase.mqh 51 16 'mSymbol' - some operator expected StrategyBase.mqh 51 9 expression has no effect StrategyBase.mqh 51 2 ',' - unexpected token StrategyBase.mqh 51 23 ',' - unexpected token StrategyBase.mqh 51 33 expression has
I have EA running which works fine most of the time but suddenly once in a while I get error 133 (Trade disabled) for Pending order it places. Once I get this error I am not able to delete or modify this order. But although in my MT$ it still remains Pending order but actual broker server it shows...
Any information about MT5 Auto Trading for Indian Market
Hi, im looking for drag & drop script to work with multiple entry in floating, example; 1 entry in profitable close all other same direction sell/buy entries once reached to targeted price line or targeted profit amount instantly. Targeted price line need to shown on chart. Targeted price OR
I have the following case: I want when a pending limit order is canceled or when it is executed the EA gives me the information of this order. I tried the following, but it didn't work: //+------------------------------------------------------------------+ //|
I want to add the magic number to the manual open position list, but what I wrote doesn't seem to work. See if there is a solution? int total = PositionsTotal (); for ( int i = total - 1 ; i >= 0 ; i--) { if ( PositionGetString ( POSITION_SYMBOL ) == _Symbol && PositionGetInteger (
Hi there, While trying to run a backtest that involves placing a pending sell order on the daily chart I get the strategy tester journal displays the message "failed sell stop.. [Market closed]" as below: The strategy tester settings are as below: The trade sessions times are below, but since the