Expert Advisors and Automated Trading - page 155

To post a new topic, please log in or register
[Deleted]
Hi, I have an Expert Advisor someone wrote for me a while back and one of the rules was to close all trades at weekends, start again at the open as forex gaps can be brutal. I want to remove this from the code but the person who did it originally is not about and I know nothing about code. I...
Hi, I've translated a Linear Regression Class from this site: http://david.swaim.com/cpp/linreg.htm written in C++. However, I'm getting some warnings when I compile my code and I don't know why or how to get rid of them. Can someone help please? Here's my translated code...
i am using an EA from point zero. the ea requires dll to be enabled but vps at mql5 doesn't allow. so what to do?
Hi, There's a way to identify if the OnTester call is for a regular or a forward test? It's called twice per test when the forward test is used, one of each time period. I just would like to identify which one it is. Thank you in advice.
Ok i have made this expert to get some numbers for another expert my make. I can't figure out why array maximum works fine but array minimum does not . they look the same to me ? Can someone tell me what wrong here thank you.
  Parabolic SAR (3)
Hello, Sorry if this is very basic but I am trying to get a very basic Parabolic SAR EA. Is there one already created? Thanks
I have an .ex4 EA, which seems to be extremely good a loosing consistently. So, keeping the source code exactly the same so it opens positions when it see fit, but with the opposite of what the EA wants. I appreciate that this is a strange request, however, if anyone has any simple ideas I would...
Dear Coders I know that there is already ZigZag custom Indicator in both. However I am looking for a ZigZag Function which does the same job as ZigZag Custom Indicator. For eample, I need something like this. //This should work on MQL5 language. Code must be self sufficient without any...
Hi, I do have problems with the strategy tester and would like to know if the iOpen() and iClose() functions do work with it regulary. Unfortunataly the markets are closed at the weekend, otherwise i would have tested it live.    The EA hasn´t worked, so a wrote the function into a...
Hi everybody. I am starting to develop EA on MetaTrader 5 and I am having some problems to test it with bovespa. I took the example in https://www.mql5.com/en/articles/100 to understand the sintax and develop my algorithm on it because a lot of treatments are already implemented in this...
DEAR ALL IM a newbie and an agent from Dallas (Pepperstones) has put me in touch..looking for someone to discuss a simple trading strategy involving a 21 day EMA and candles that move so many sigma(standard deviations up or down) away from a 16 candle average...am I making any sense? Trades will be...
I am interested in automating the new Strategy Tester for MT5. Why? Rather than manually running the Strategy Tester against my EA's with different input parameters, capturing the output reports and comparing them... I hope to do so programmatically. An MQL5 script would be perfect. Is this...
Hi there, I'm a programmer but new to MQL5. I've created an indicator that uses %R to determine buy or sell based on over-bought or over-sold stock. When I drag the indicator onto the chart I get DOWN_ARROW and UP_ARROW indicators fine. I wrote an EA to automate opening and closing positions based...
Hello As I haven't worked with creating clickable objects on a chart yet. Can someone give me a code that - Creates a button that closes all active trades once clicked - Creates an text box that takes number input and a submit button that reads the number into the EA. It will help me get a...
  Please help: Spread (17   1 2)
Hello, I downloaded and imported the 1-minute data from FXDD and use it for my backtests. I realized that no matter what I define for "spread" on the strategy tester, results are the same. So I wonder whether all backtest results will be flawed and why exactly (fixed spread from the data?), so...
I went into this problem recently. I use Trade.PositionClose from the library to close a position. Looking at its code, it uses TRADE_ACTION_CLOSE_BY, which means it is closing by opening a trade in the opposite direction. Problem is that on a pair, trade is disabled. Info says that this symbol is...
Hello, how many trades per week is not considered "Too frequent"? Does this impact on the rank of the signals? Is there a way to know what is the position in the rank for a signal provider? Thank you
Good day! It is possible that there is a similar topic but couldn't find it in a hurry. So my quiestion: at "trading signals", if the comment column shows "cancelled", does that affect the overall performance of the given signal? For example, if someone cancels his or her trade with -100 dollar...
Howdy Traders, Ideally I would like to have the following workflow 1. Edit EA in MetaEditor 2. Compile 3. Run in Strategy Tester 4. Stop test if I see something I need to change 5. Edit EA in MetaEditor 6. Compile 7. Run Strategty Tester again   However what I have found is that...
Dear all, These lines below shows you an issue I am experiencing I started my EA just a bit before 11 pm GMT on a sunday. There was a signal (according to my EA) but the EA did not take any trade until the midnight. Now, I am not so familiar with the TimeDayOfweek function but apparently it codes...
  Order History (11   1 2)
Hello, i try to get out the pips of the closed trades, i had the idea, to count the difference between order openprice and orderclose preise void OnTick()  {   double Profit_Buy; double Profit_Sell; double Profit;// retrieving info from trade history...
The new version of our product shows as being available on clients market terminal, buy when selecting 'update' nothing happens (except for the same sound as when terminal signal is lost) and error code in journal is : error 403. Can anyone assist please?
hi, Feeling lazy on Monday morning, hence the question. I have a real account which i'm using with an EA (lets call it EA1) and is on an MQL VPS. What i wanted to know was that if it is possible to add the same account with a different EA on a different MQL VPS ? Thanks in advance
Hey guys, I'm considering on adding the custom time zone app with FXCM - see link here: https://www.fxcmapps.com/apps/custom-time-zones/   This should make the time of each candlesticks reflect your actual time zone. Would this have an affect on my EA?  Say for example, if I wanted my EA to trade...
Hi All, I have been testing an Expert Advisor in EURUSD with "Real Tick Mode" since January 2012 to December 2015. If my understanding is correct, the first time I do my backtesting, history real tick data are downloaded from server. Then they are stored in local file system. I think this is...
Hi, Someone gave me this indicator which is very useful for me... but it's tiring to keep on browsing each chart to see the indicator... i hope someone here could help to create an alert for this indicator.. appreciate it so much.....
hi guys  i have problem whit strategy tester. i wrote a script as  follow. when i run the strategy tester, in every tick, a new indicator well add to the chart.  whats the problem? thanks void OnTick()   { int r=0; double rr[]={0,0,0};  r=iCustom(NULL,tp[i],"jjrsx",8...
Hi I'm using this for a demo account and I have a problem. It doesn't sell on time and losses profits. https://www.mql5.com/en/code/15248 this the link. What can i do to improve the EA?
Hi to all in my EA slippage and spread filter doesn't work on real account . please guide me Code lines related to slippage extern int Slippage_pip=100; //int Slippage_pip; double dig; datetime time_start; int curr_band=0; datetime Prevtime; double PrevSellPrice, PrevBuyPrice; datetime...
Hi This is my first post! I am currently following a Signal from an author on MQL5, the Signal suggests that I have $ 300 in my account as capital. I am wanting to trade 10 times that value(ie put $ 3 000 in my account), the problem is that when the signal enters a trade it enters the...