Expert Advisors and Automated Trading - page 71

To post a new topic, please log in or register
Hi All ! I want to know the effect of uninitialization on a running EA , like changing the time frame of the chart from M30 to H4 , is it the same as Removing the EA from the chart then reloading it again on the chart ? Thanks for your precious Help :)
Hi, I'm runnng this code to increase the lotsize in steps:    double lotsize = 0.01;   double lotstep = 0.01;   for(int i=0; i<10; i++)      {      lotsize += lotstep;      Print("i: ", i, ", lotsize: ", lotsize);           } What I get is this result: 2018.01.12 17:15:58.644 test decimal case...
I have had a few problems working out how to use tick store.   Ignoring this issue for now, I decided to download data and create a set of 1 minute, 5 minute etc up to 1 hour files and then import them directly into MetaTrader. When I ran the strategy simulator, I got a nice long green bar and 0...
Hello, I have been searching for edges (intra day trading strategies) in the market and studying the chart day to day. I also programmed a few strategies, but I have not back test yet. The strategies I build usually seek 1 trade per day if setup signal is true. My plan is to define an in sample...
To get all deals from an order we can go though the whole History selecting the ones that has an DEAL_ORDER equals to our order ID. Any more efficient way to do that? We have a HistorySelectByPosition, but I miss a HistorySelectByOrder or something like that.
  Copy array (1)
I want copy close arrays. ========================================== {Mq4:} double ls[256]; ArrayCopy(ls, Close, 1, 1, 256) How copy close arrays in mq5? ========================================== Thanks.
Hello,   I'm lookingfor a mql4 programmer to build an Expert Advisor from several indicators and tradingrules.   I can payfor this job.   Are youinterested ? Regards,
Hi, I am stuck with an error Retcode 10014 that happened once and i can't replicate again. That error appeared on closing an order.  Error Message :  I understand that the problem is on volume but if the system manage to open such as that  order with this volume why cannot close it with the same...
Hi, I want to use quotes from two brokers on the same excel sheet by using DDE but it doesn't work, it's just showing the same quote, how can you solve this? Best regards
Hi, I am new to Metatrader 5. I noticed tool bars are missing in Visual Strategy tester which means I cannot draw the trendlines, Fibs etc. Do I need to do anything for this functionality to work or is this not available in MT5? This works in MT4. 
  EA EXPIRED (4)
Hi everybody i have download one EA in somewhere, for me is good because i follow his work and sometimes i close or i move TP in manual  ..problem is this : at the end of the 2017 EA is expired there is someone that can do reverse engineering and cut off or move foward the date of expiring ?? I have...
Hello! Thank you for having a look at this thread! I'm looking to use multiple EAs on the same symbol and the same timeframe but each EA has its own magic number. Could someone give me a short algorithm which will close an open position which was open by a EA which has its own unique magic number?...
I have managed to read this thread: https://www.mql5.com/en/forum/138912 and not know how slippage for the OrderSend() function is defined in index points since it's about currency pairs in there. For example: with my broker I am able to trade 2 symbols for the german DAX index (or Ger30, if you...
Hi there MetaTrader developers, I really understand how difficult would be porting the whole MT terminal into a Linux-compatible design. However, on the other hand, I think that it is long past the time of a Linux MetaTester agent. So, can you please consider a Linux version for MetaTester? Thanks,...
  PositionType() (10)
Hi, I'm very new to mql5, so I apologize for struggling on this simple topic already. I found an EA that is supposed to open a buy-order when: int signal = 0 &&  PositionType() != POSITION_TYPE_BUY or a sell order for: int signal = 1 &&  PositionType() != POSITION_TYPE_SELL For some reason the...
Hi All ! Please how to use spaces in inputs / extern , like this window in this Picture . Thanks for the help.
Hi.. I am engaged with developing EA. I need to get the coordinates of the cursor to be able to combine the mouse position with key pressing to offer some menu to users in working with this EA. I need to do it without clicking the mouse. As after clicking the mouse I can get the X and Y coordinates...
Hello,  I have a few questions as I do have trading manually experience but need to trade with EA automated due to working full time now. I have programming experience in NinjaTrader programming, but NT does not support cryptocurrency data feed market and I would like to trade this market now, and I...
  Time frames (4)
Please can someone give advice on the following - When using EA's does the automation work on whichever time frame you have open at the time or are they pre-programmed to a fixed specific one? Thanks, Jannie
Hello! Thank you for taking your time took look at this thread. I'm having an issue with the CTrade class SetExpertMagicNumber function. If I write something like trade.SetExpertMagicNumber(12345), how would I be able to print that result out so I'm sure that trades made with that particular EA have...
I have a side machine with 8 cpu cores that I use to run strategy tester agents. It has metatrader5 on windows server 2012 with nothing else running.I've set up 8 agents with the strategy tester manager.When I run the first couple optimization tests everything goes well, cpu maxes at 100%.But then...
Hi, I've tried a lot of code variations, but no matter what i shows me some random values. Can anyone explain how to get these values? #property copyright "Copyright 2018, MetaQuotes Software Corp."#property link      "https://www.mql5.com"#property version   "1.00"#property strictint...
Hello, i still have problems to get HistorySelect properly. Basically, HistorySelect does not return orders latest place. They can be seen in the history tab but are not reflected through History order list. Find attached a simple EA proving this. Simply open a position with BUY or SELL...
  FREE EA: The Forbidden Fruit EA (67   1 2 3 4 5 6 7)
The Forbidden Fruit EA This EA is very profitable when the market is ranging. It can achieve more than 95% to 100% win rate (long & short). This is a semi automatic EA. The user must manually enter in two prices inside a range (highest price range, lowest price range) for EA to trade. I just...
Hello. Can somebody can recommended good EA which make between 5-10% a month. I don't want any seller advertising on this topic I would like real users using EA least 6 months with good results.  Thank you for any help. 
Could anyone make a very simple EA with a button? With this EA I'll press buttons the whole day to see if I'm good at it. EA should have: - If I press the sell button, then EA should open sell 1 lot + at the same time buy 0.9 lot, 10tp/sl - add same button, but for buy - add sell button with tp/sl...
hey does anybody know the best way to avoid synchronization issues when following a signal? Things seem to be going fine, and then periodically there will be an error which will cause either a partial or total close of an open trade. I have the same broker and leverage as the signal provider. Thanks
hi In mql4 for counting seconds from the start of the minutes we have Seconds() What is the equivalent of this function in mql5? In other words, how can I have in a mql5 seconds in a minute
  Selling EA (2)
Hi, Just one question: If I gave a programmer to develop an EA, can I sell it on the market? Thank you!
Hello I am using MT5 for optimizing my own Expert Advisors. After you get the optimization's result, there may be several parameter sets that match your choosing criteria to select some of them for backtesting check up. I export the optimization report to Excel in order to filter those that are...