I want to check when I put/pull out a derived CObject from a derived Clist that it is of the correct type: I thought templating somehow but I can't find a reference to it? #include <Arrays\List.mqh> //+------------------------------------------------------------------+ //| List of trendElements
Is there a thread on here where there has been a consensus or votes on the most successful EA for MT4?
Hi everyone! I'm trying to retrieve the lasts 100 rows/registers of the Trades & Sales without sucess (like the attached image), someone could help me and tell whats i'm doing wrong or how to do it right? Actually my code is like that: MqlTick tick_array[];CopyTicks(Symbol(),tick_array...
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
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
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...
[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?
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
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)...
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...
Hello good day, i am trying draw line in the windows chart with the class CCanvas, want connect two points for one line, how follow: CCanvas miLineaUp; atrhighVal[2]=maVal[2]+atrVal[2]*2.5; // EMA(21) + ATR(14)*2.5 atrhighVal[1]=maVal[1]+atrVal[1]*2.5; // EMA(21) + ATR(14)*2.5...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.