Expert Advisors and Automated Trading - page 143

To post a new topic, please log in or register
About the optimization option. Example; I run optimizer on  01 january to 01 april (3 month test) I use the best profit parameters of this 3 month test and run it on 01 april to 01 may (1 month test)(the month directly after the 3 month test) On the 1 month test I frequently lose money.   My...
I am new to MQL5 and with little other true programming experience. Before I invest a lot of time, I was hoping that those with understanding and experience of MQL5 could help answer a few questions. Over the years I have used MT4, TradeStation, Strategy Trader and MultiCharts and to my...
Hi everyone. I wonder if there is an option to hide or switch off somehow the indicators which the EA uses, so that they would not show up when you run the backtesting with "Visulization" enabled. My EA uses a lot of indis and I don't want to "see" them while testing my EA, they take a lot of space,...
Hi all,   I hope you can help me answer what i guess is a simple question.   Im looking at getting a EA or other system that can put in additional orders, TP (trailing and normal) and SL - when ever i enter the market.  So i'm not looking for a fully automated EA, but more what you could call a...
Hey! I lookig for a programmer who is could be connect mt4 to any webbrokers with API or any possible ways. PM ME!
- there is a new reserved word "override" - its no more possible to convert a string to boolean  
Hello,   does anyone know how does the experation function fo pending orders Works in MQL5?   i found there is an Void https://www.mql5.com/en/docs/standardlibrary/expertclasses/expertbaseclasses/cexpertsignal/cexpertsignalexpiration    but also you have the constant from the order Send Function...
Hi all, I'm new here, and also I'm a newbie in coding EA with MQL5. In advance I want to thank who wants to help me, even if maybe I'm trying to solve some too simple issue. Basically I'm doing this: I downloaded this indicator (supertrend.mq5 ) and I want to use it in my EA. I put the...
Hi, Im trying to make a simple ea Moving average crossover. It wants to make trades on the backtest but it cant because ive screwed up somewhere here is complete code [MT5] //+------------------------------------------------------------------+ //|                                          Two Moving...
Hi, I need help. Seriously. Please. I'm trying to solve my problem for a couple days, but still can't solve it. I'm trying to open trades with stoploss in direction of trend (based on moving average) on each $1 move. Like : Price is above moving average, BUY on price $5, SL $4. Price goes to $6,...
Is there some method to check if the market is closed or open for trade. Except for getting an return code of 10018 when trying to place an order
I need more tick data for backtesting. Currently only have 31 october 2016 to present on all major currencys.   Can someone supply/direct me to a place to get the whole year of "2016.hcc" tick data for eur/usd, aud/usd, usd/chf etc etc...   Or, how to convert csv tickdata to hcc?   Man MT5 is a...
I have an EA that opens its first position when  an active trend line is crossed. This trend line is removed when the first position is filled so that this active trend line does not interfere with any other orders. Sometimes the platform closes down. This is rare but it happens.  (I don't mean...
Hey, I'm creating an EA and to get it working I need to get the strike value of an option. I'm using the function SymbolInfoDouble ("Option", SYMBOL_OPTION_STRIKE); but its always returning zero...  I found that function here: https://www.mql5...
So I was using this piece of code to calculate the most recent bar.      static datetime BarTime=0;    datetime now_bar=Time[0];    if(BarTime!=now_bar)      {       BarTime=now_bar;      }  I am having trouble converting it to do the same thing on meta trader 5. Im relatively new to coding but...
Hi, I have a trend following EA. It seems to work fine except for one problem. And that is, with given conditions it opens position at the end of the trend as well as it does along the way and gets trapped in a drawdown. I was wondering if there is any way that can prevent it from opening a position...
[Deleted]
when to use ? what to use ? and which to use ??    
Is it possible to make a strategy tester run on TODAY's data? As far as I could see, testing process stops on YESTERDAY's last bar. Please, help.
I wonder if anyone can help me, I'm just starting to learn mql5 and I'm having problems getting any programs to actually run!! I have this code snippet:- // Input variables input double TradeVolume=0.1; input int StopLoss=1000; input int TakeProfit=1000; input int MAPeriod=10;...
[Deleted]
how to solve it ? //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //+ For Position Sell Breakeven Trailing    for (int i = PositionsTotal() - 1; i >= 0; i--)    {    if (ForAllSymbol || PositionGetSymbol(i)...
Dear all, I am writing a trading panel. Pressing a button it creates two CiMA objects. Both indicators are then displayed as red lines. Could somebody give me a hint at where the documentation shows how to change the colors of indicators created this way? Thanks in advance! Thomas 
Hello I would like to change the size of the windows from the program. ! It is not about the subwindows of the indicators ! For example, there four open chart with different symbols (EURUSD, GBPUSD etc.). I would like to control the size and position of the chart-windows within the big MT5 windows.....
Hello, im starting to MQL5 and trying to create a custom indicator but for some reason the debug stopped to print the values:   //+------------------------------------------------------------------+ //|                                                      MIN_MAX.mq5 |...
Hi I think i get type conversion warning because ulong has no negative value possible, but the calculation could finish negative... (For understanding the fSpot is a double with the actual price witch is turned in his one magicnumber by multiplying it with 1000000) ...i know it will not, but how to...
  graphic (1)
The graph scrolls to the starting point as I get rid of this configuration to flow back without continuing to do it again. we can remove for free movement of the graphic? 
Hi. I would like to check my subscribed Signal provider's Balance from EA, and find 'SignalBaseGetDouble' with SIGNAL_BASE_BALANCE. So I tried SignalBaseGetDouble(SIGNAL_BASE_BALANCE), and it returns 0.8 when my signal provider has now $12,600 on MQL5 signal page.  Could somebody tell me what I am...
Hello there , i got a ea where he takes MG on the next candle if the strategy dont work. but now i want the EA to stop after 3 or 4 losses and take loss. But my Ea keep doing the MG on the next candle. Does some one know the code for stopping The ea after 4 x taking a MG ?   thx you very much....
Hi I code a trailingfunktion below one of the last candles. But this code returns the lowest Bid price - fine so far but i need the Ask price.   double   lowest = 0;   int      TrailingCandles = 2; int minIdx;    //-- Tiefpreis aus X(TrainilgCandles) Candels          double low[];...
However the MQL5 Reference  /  Timeseries and Indicators Access / IndicatorCreate states: You can pass no more than 256 parameters Receive a fault message with 65 elements: 2016.12.08 13:52:46.474 Core 1 2010.01.01 00:00:00   E086400203 LokForTreFil_01 (20160201).mqh CForTreFil_01::InitCustomInd...