Hello, Sorry there are a million topics on this already but I've read through heaps of them and can't get it to work. I directly copied the example from the documentation, but changed from a bin to a csv. //--- parameters for data reading string InpFileName= "hi.csv" ; // file name string
hello, i want a service for IQoption copy trade system for business purpose. if you have previous experience then reply me with your budget. thank you
[Deleted]
Is it because I'm on Demo not Real mode that I can't get real volumes and that Times and Sales feature is unavailable ? It's the only explanation I could think about, but if so, why some symbols in some brokers in Demo mode provide depth of market or is it just emulated ? Thanks
Hello friends I use a trading EA And the problem I have is that When I stop the robot and remove it from the chart The EA continues to trade again. Does anyone know how to stop and reboot it
[Deleted]
When I open an order and print the order filling mode I get 2 wich means ORDER_FILLING_RETURN while the description of the symbol I opened the order on says only FOK mode is allowed, any explanations please. Thanks
Hi all, I am new to MQL5 but I aim to create my own trading system. This is also my first language similar to C and I was hoping you could help. When running the strategy tester, I have used the following code to load in any historical pricing data that I do not currently have - i.e 2013 in this
Add macd indicator to EA.I want to add an extra feature to my robot. I want to buy if MACD gives a buy signal and sell if it gives a sell signal
double MA[]; // array for the indicator iMA int MA_handle; // handle of the indicator iMA //+------------------------------------------------------------------+ //| Expert initialization function |
I am writing an EA that places limit orders with expiration. Expiration is set to the datetime corresponding to a given number of bars after the current bar. I can get datetime from a past bar index using datetime CiTime::GetData(int index). However, I do not know how to get datetime from the index
Hi there, I just want to know if that possible to make an EA but only for closing our open trade when certain parameters have met! for example: I Manually open 3 trades at buy EURUSD .. whenever Completed bar close below EMA 12 LOW all those 3 buy open trades that we opened Manually will be closed...
Hello everyone, in my EA, at times when the ASK line is too far from the BID, the value received in the onTick event with " SymbolInfoDouble(_Symbol,SYMBOL_ASK) " does not match the value of the line in the graph, and it is not possible to do the necessary calculations correctly, because this
Hi Coders, I am new to coding ( only 4 months of experience) I have read the Expert Advisor Programming for MetaTrader 5 by Andrew Young But I still do not understand how code the Hull Moving Average Crossover to do the following : When the fast hull moving average crosses above the slow hull moving
[Deleted]
Dear Members I am facing an issue with Trailing Stop Loss and Closing Positions. Does having multiple Magic No in same EA can affect this ? The problem is strange, Trailing SL and Close methods works for some time and at others it does not. Any clue will be highly appreciated and hoping this is not
Hi all I would like to count pending orders properly by opening one pending order at a time. Unfortunately it opens many orders. I know I'm doing something wrong but I can not figure out what's wrong. Please help if you know whats the problem. Thank You. #property strict #include <Trade\Trade.mqh>
I want to know if you face the same problem. I mean when I changed parameter in EA (forex robot) , I sometimes face the problem that the parameter change is not applied. I don't know why. Have you had a same issues before? To fix the problem I think I can close all chart and attach EA again with a
I have been working on a simple EA, until I ran into some funny result. I cannot explain it, then I realize that by commenting/uncommenting a single print line will dramatically change your result. Definitely an alarming behavior. If anyone has any insight regarding this behavior, please share. I
Hello, I hope your making money and had an interesting day. I would like to know a bit about how to invalid volume error, during one of my ea back-tests around 2016 the bot stopped trading caused by an invalid volume error. I am new to meta trader five and this is one of the first successful EA's I
Hi everyone My EA has been coded by my developer but is entering candles on the end instead of the opening within 0.2 of a pip, can anyone tell me what could be done to fix EA to place trade faster on candle opening as enters trades 3 pips away and similar issues with exits when on 1 trade the EA
Hi, I am trying to place a buy stop and sell stop 1 pip above and below close price of the previous candle but keep getting invalid price error. I will appreciate insight on where I am going wrong. Below is what I have: //Import Trade Library #include<Trade\Trade.mqh> //Create an instance for Ctrade
Hi, people! In the middle of yesterday, my strategy backtester suddenly started to behave wierdly. Now, no matter the EA or setup I'm using, my trades are being closed as soon as they are opened, without hitting either SL or TP. Does anyone know why this is happening
Hi there community, I wrote recently a NFP filter. The backtests say that it is more profitable scalping during NFP (?) but the signal performance was horrible in fact after the last release. I'm thinking that these MT5 backtests are quite imprecise cause NFP gives certainly a kind of market
I can't read programming language at all, but I'm trying to create my own EA using generator in MQL5. It goes smoothly until I realized that this EA can't open multiple order. I'm using hedging technique, which is need open buy and sell at some point. Really appreciate if you can help me.. anyway
How do I get the close price after calling PositionClose? trade.PositionClose(ticket); Print ( "Close position @" , ???); Thank you
I was wondering if anyone would be kind enough to help with my lot size calculations. I have all the code working fine when the base currency is the same as the account currency. 1 I'm really struggling to understand what to do when the base currency isn't the same. I have looked in mql and general
Hi, Just a quick question about Service . Is a infinite loop , as shown below, safe to use in a MetaTrader 5 Services ? Or is there a better way? Because Services do not accept any events and therefore I can't use EventSetTimer() . Thanks :) #property service void DoSomething() { Print (
I have been trading now for over 10 years and my biggest failure is the psychology. I started to learn to code about 3 years ago and I am still no expert with loads still to learn! In the time that I have been learning I have programmed hundreds of EA's some of which work for a period of time then
The Alligator’s Jaw, the “Blue” line, is a 13-period Smoothed Moving Average, moved into the future by 8 bars what does it mean by ` moved into the future by 8 bars '? I did not find a corresponding concept in MA definition
Hi all, I am having an issue with an EA that I am using and was wondering if anyone could help me please? I am currently using Promax Gold EA V4.11, I do not have the source code for this EA. The EA opens a trade (Buy/Sell), and then averages down at a preset distance in points if price moves in the
I am testing Stochastic crosses and I have noticed that sometimes it fails when the cross occurs exactly when a new candle opens. This happens very often and I think too much precision is lost. Is this normal or is it a bug in my code? Is there any way that this does not happen? Here is my code, and

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.