Expert Advisors and Automated Trading - page 330

Here we discuss and share some martingale Mql4 code.
Hello, I have subscripted to a signals service but when the EA copies the signal in my account, it doesn't copy the same volume. For example the EA position is 0,02 but in my MT4 platform the same position is 0,01. The margin in the account is ok. Have you solution please? Thanks in advance Davide
Dear all, So i'm pretty new to MQL5 and are trying to learn the language, What i'm trying to do is that i have pending orders with SL and TP being executed OnInit() What i needed is that if the pending order were closed due to hitting SL, i want to retrieve the price of that particular order. so i...
Hello! Whenever I try to use the strategy tester, the following occurs: 2018.12.01 02:42:30.426    Tester    USDJPY: history check started 2018.12.01 02:42:30.626    Tester    USDJPY: history data begins from 1999.01.04 00:00 2018.12.01 02:42:30.627    Core 2    connecting to 127.0.0.1:3000 2018.12...
I have a need to determine type of a variable which can then be used is a switch statement, and my thoughts are to hash the "typename" string of said var. Do you know a better way? void OnStart(){   int               a; Print(type_id(a));   uint              b; Print(type_id(b));...
It's been more than a month since I've been busting my head with a small EA robot that works with 2-way crunching.  It does scalper in the HFT style. It opens quite a lot of orders and does not go through the stoploss: either take-profit  or through the indicator signal. what I want is to close all...
I have used a number of different trading platforms over the years but have not encountered any as difficult to use as mql5 is there anywhere I can find STEP BY STEP INSTRUCTIONS FOR USING THE PLATFORM? some of us may find videos in which in which rapidly spoken english and even more rapid
Hi guys, I have been trying to success in this bussines for many years and I still cant do it. I am now feeling down and losing hope...but before I quit and asume I wasted so many years of my live I wonder if any of you want to mentor/guide me thanks you very much, wish you all the best A.G.
I set up the program, and I have 12 testers. I was at 0.04, then the next day, went DOWN to 0.02. I need help understanding this, and what else I can do to increase traffic
[Deleted]
Hi,i'm trying to discover out why OnTimer is called once. in my Init Method i have : EventSetTimer(10);OnTimer(); Inside the method OnTimer,i'm printing a number. But this number is printed once  and the OnTimer is not called anymore. Do you have any suggestions ? edit : the method OnTick is called...
Can anyone recommend an EA Robot which trades very frequently at low risk..  I have a few running at the moment but trading is infrequent. Presumably settings can be changed to achieve more frequent trading but is there anything out there which is set up to trade very frequently by default..
  recommend EA  (1)
Hey guys i´m new in this field. Which EA can you recommend?
Hi, I'm actually looking for an expert advisor that could permit me to place limit orders with TP and SL (to hide it from Broker) , free or paying ; With the maximum of feature by the way;  Please link me page of the market if you have one. MT4 EXPERT ADVISOR PLEASE. EDIT WITH POSSIBILITY TO ADD AN...
Recently, I have been testing my new strategy on forex market and I figured, that it would be much more efficient with some automation. As I'm completely inexperienced if it comes to MQL programming, I just wanted to ask you, as an experts, if it's possible to create such EA (I trade on MT5):  The...
Hi guys, why I have different size between MT4 master (sender) and MT4 receiver when I copy signal?  Below the MT4 Master to send the signal Here the MT4 Receiver signal How you can see there are difference in Size position. Why? Below the setup signal Thanks so much,
Hi moderators... I try to signup a signal https://www.mql5.com/en/signals/new?mt=4&l=1400037984&b=ICMarkets-Live14&t=0 and subscribing return a error "s pecified account already being used as a signal " I checked my account and it's all right, I'm not providing any sign, so I should be able to sign
Hello, I'm trying to write a very simple rule into my EA where when Supertrend Indicator turns bearish on H1 Timeframe it closes the opened buy order and when it turns bullish on H1 Timeframe it closes the opened sell order, but for some (probably obvious reasons for you coders) it doesn't work. So...
hello, I'm trying to write an expert that buys at lower band of the Bollinger bands and sell at upper bands and this is my code \ Ask<=(iBands(Symbol(),PERIOD_CURRENT,0,20,2,0,MODE_LOWER,1) Bid>=iBands(Symbol(),PERIOD_CURRENT,0,20,2,0,MODE_UPPER,1) but the EA only opens sell positions and not any...
I would like to understand a bit more on how the "every tick" backtesting model work. Pls correct my understanding if I am wrong.   For example, in a simple moving average cross over system where we generate a buy signal when the fast MA cross above the slow MA, if we backtest the EA in a 4hr time...
Ever wonder why your EA does not sell on market? Only very few comment about it? So, this is the place to share experiences on how you changed your EA to make it useful! Or not... :P
Hello, I'm developing an EA that will make .ex5 available for free. However, a person can download and sell the signal. I would block. It is possible through MQL to block the signal sale.
Hello everyone, I made an EA based on Heiken Ashi, and I need to apply the martingale strategy, I made a class for Martingale and I put the martingale factor as an input for the user, but at the time of backteste the calculation of the martingale is incorrect, example initial lot  of 0.1 and...
  Auto Chart Zoom  (1)
Greetings! Is there a way to make the chart zoom in and out automatically so that all objects on it are visible?
Hi i got an indicator that is based on tick data only. the problem is it uses some big average buffer, so each time i wanna use it i need to wait for the buffer to fill to get the first value (i could not wait, and start displaying curves right away, but the readings would be totally off without the...
  ParameterGetRange()  (13   1 2)
How does one use this function? The below code is not working.   //+------------------------------------------------------------------+ //|                                                         test.mq5 | //|                                                   Copyright 2017 |...
How many individual robots (or instances of the same robot on different currency pairs) is it possible to run simultaneously on an MT4 platform?
Hi, I need an EA program code schema that would pass verification in a place where new robots are added. Please send code EA. Thank You.
Dear ladies and gentlemen, Are there any expert advisors for scalping purposes on a free basis. I figured out that it is hard to find some expert advisors working On a real account. Being attached to a leverage of 30, this might also be a challenge for such a program.Back testing did not bring the...
To get back a stringor a list of strings from a Windows API functions, you pass in apointer to a buffer. I like to use the wide character functions likeGetPrivateProfileSectionNamesW(), seehttps://docs.microsoft.com/en-gb/windows/desktop/api/winbase/nf-winbase-getprivateprofilesectionnamesw.This...
I'm running a very popular signal on an MT4 ECN 1:500 account at Trader's Way with no problems at all. I have three such accounts at Trader's Way and one such account with only 1:200 leverage at FXChoice - I live in the US. :( I have no problems installing, uninstalling and reinstalling the MT4...