Expert Advisors and Automated Trading - page 65

To post a new topic, please log in or register
What code could be used to place multiples values in one external parameter?   This is what I know for a single value: external bool Timeframe = true; or false; But how to put several values in one tab. Thanks in advance.  I will appreciate any help.
Hello, I have a code for Risk per Trade in MQL5, and it works perfect for FX only. My broker also have CFD of stocks, futures and cryptos. But this code only work well with FX, in other cases the risk is much higher that what I say on the Risk variable. I want to use the same code for any...
  EA Coding (9)
It's probably staring me in the face but could someone point me to a resource where I can learn to create an EA myself? Thanks in advance.....
Hello Mql4, Need an simple  Ordermodify Code. Problem: I must Change the TakeProfit, because the negative Orderswap "EATS" my TakeProfit. Can you help? THX Balduin
When we view the Current Positions of the Signals, all "Pending Orders" are listed in the mql5.com/ Signals "Positions" Table. However those "Pending Orders" are not visible in the subscriber account in MetaTrader 4 or 5 Terminal. Queries: 1) Any solutions to view them 2) Any scripts which can help...
Hello friends,  I succeeded in building my expert advisor and its working but i have a challenge in the sell direction, i need a code to stop it from reentering an order when the buy side is in profit with a trailing stop. Both buy and sell enters order the same time with a stop loss level activated...
  Strategy Tester End Date (11   1 2)
There's any way (workarounds and crazy ideas are wellcome) to get the strategy tester end date in the optimization start method (OnInitStart)?
[Deleted]
Hi, I know this has been covered a trillion times everywhere but I am stuck on setting a stoploss: My code: Print("Setting stop loss: " + Stopper); if (OrderSymbol() == Symbol() && (OrderMagicNumber() == MagicNumber||OrderMagicNumber()==0) && Stopper !=...
I'm new to MetaTrader and the community and was wondering if I spend money to purchase an EA, do I get access to the code base? I know that there are various parameters that can be set for different scenarios, but I'm talking about the core code base. Basically, I want to know if I can take(by...
how can i optimize my bollingerbend ea for instance and keep it one indicator. for examaple if i use input bb open trade and bb close trade i get 2 diffrent bands after optimize. one is optimized to open and the other is optimize for closing trades.   but i would like to keep it as one bb with the...
Is it possible to write an EA for back testing which trades a basket of 14 pairs? 
  OnTick Handle (1)
Hello Every one i want to know more about  text  Below. How often does the Ontick() handle? Is it possible every 10 or more ticks, once  Ontick() Handles?
Hi, Can anyone give me more information on the Testerstop() function? It does what is says in the documentation and allows successful optimisation results through. However when I use it during optimisation, it slows down or never stops optimising and printing "genetic pass...tested with error...
Hi Everyone, I'm facing a stranger issue when I try create an iCustom indicator. When I instance iCustom without parameters like: indicator = iCustom(_Symbol, _Period, "IndicadoresSid/ChannelSid"); It's work perfectly, but when I add any parameter I get this erros:  2019.03.06 14:14:59.500 2016.01...
My EA has two prices stored in two double variables. I want to plot those two prices as horizontal lines and then plot a histogram in between them. I can only plot a histogram between two buffers in an indicator.  The values exist only inside the EA. How can I get the values from me EA into the...
Hi, I want to made an EA based on 4TF Heiken Ashi indicator. When the first green arrow appear, BUY direction start and when the first red arrow appear, SELL direction start. Really appreciate someone show me how to code this, thanks.
Maybe Someone can help me I have a problem with compiling and the error message is that "member function not defined"... Thanks for helping me here my Code: class CPeriodCalculator  {private:   double high[];   double low[];   double open[];   double close[];public...
What is the expert advisor on clickbank? Is that good EAs?
Hi everyone, I have a technical question regarding the signals on automatic trading, i have subscribed to a signal and paid 40$ 5 days ago, i want to know if is possible to change the signal to another paid one of the same user without repay again the signal. The user has 2 signals and i want to...
Hello, I subscribe to a signal and sometimes when the trade hit TP in my account and in the signal provider's account it is still opened, it will be copied again into my account. Made profit so far with this behavior but it is not as I would expect the copy process?! Thanks for information regarding...
Dear educated friends... I am new to EAs. One EA I got from a friend and I am running well in TIKKMILL broker MT4 platform which is installed on my laptop (Windows 10) But same EA with same settings, I attached to FBS broker, MT4 platform and It does not open orders. In the EXPERTS tab n MT4,...
hello,  I have used Cloud Network many times in the past to backtest my EAs but since some days ago I am facing a trouble with it. It is supposed I am using more than 5000 agents, butthe optimization process is even slower than using only my local agents. It istaking hours to process a few steps. is...
Having become quite frustrated with MT5 builds 2006 and 2007, I decided to create a reproducible case using MQL example code (Moving Averages EA) for illustrating the problems with the optimiser and test run environment. I welcome others to reproduce these tests and establish any patterns that can...
Does the tool re invest earned money? For example: I test an EA with an initial investment of $5000, in a month it makes $1000. In the next month it will trade with $6000 right? If not, how do I configure the EA to do re invest?
Hi all, I'm looking for a good technique which can extract the daily returns of a trade history on the backtester of an EA. Would anyone be able to direct me to the best way to do this? Cheers and thank you for looking at this thread!
  Which are most suitable functions to use for detect a breakout ? 
Dear sirs,   please look following and if can advice me :   I shall want to stop and enable trade from code:   extern bool trademode=true;   if(trademode)    // option to enable trading through if statement { OrderSend... }              // option to stop trading which shall be ?  if(!IsStopped)...
Hello, I have a VPS and many EAs active on the latter. 30$ available on my mql5 account and I would like to know if it is possible to see if the VPS server is on autorenew mode ? Thanks in advance. Stefano.
Hi there! Trying to optmize some parameters here. After some time, the optimization seems to stop even the agents are ready and a lot of work to be done yet. I tried to disable the agents, enable them again. Nothing. Someone has any idea about this behavior and how to resume the optmization? Thank...
Hi,  i've implmented a library "xx" with the following content: #property library#property copyright "Copyright 2013, Mario Semper"#property link      "http://www.mql5.com"#property version   "1.00"int getInt(void) export {   return 11;} now, i would like to use this library in a EA: #import "xx...