Bid ERROR .... When I try to run my EA, the tester shows the "trade panel" and the actual Bid price, in real market...not the bid correspondihg to the EA time...it happpen with the Bid value when I try to use it in the EA.Is it ppossible to disable the panel?...How can I get the Bid value?....can...
Some peoples say"there's nothing like trend,its all noise". After reading this article:https://www.mql5.com/en/articles/1530,,once again i can assume that the market is random. BTW,i've already developed a 100% mechanical renko strategy & did a moderate forward test: #No.of trades=400...
I've imported external data into several markets such as EURGBP, XAGUSD, EuroStoxx50 and so on.The backtest at some point without any error-message it just finishes. Does anyone know this problem and knows how deal with it?
Hi, the basic question is how long does an indicator live with all its arrays and buffers and is it updated by each tick when called only once? My objective: I want to get a long-term average and want to 'offer' this value other EA by using GlobalVariables. The normal call of this indicator is only...
Hi - Looking for some good tactics to preventing whipsaw. 1.) Are there any good methods to employ to lengthen the period for an indicator based on average range, etc.? 2.) Should an indicator lengthen the period based on a profitable trade already in progress? 3.) Are there common indicators in...
[Deleted]
Rgd: How do I do a code to ensure my position is at least 30 pips gap bool validGap; validGap = false; I want to write a code to run to check if Symbol() got open position, it will check all the current running position of Symbol() then check if there are at least 30 pips away from ALL the position
This is a new Ea using zerolag macd, oma rsi qqe, and an indicator I'm calling directional normalized juice(just normalized deviation in histo form like the old juice indicator) before adding juice was calling it ZLMACDQQE but since adding juice its now Concentrated. As ZLMACDQQE the Ea did so so...
[Deleted]
Please, who can tell me how i can convert a custom indicator into an expert advisor ?
Made a model of the state space and by not making a prediction one step ahead. Laying out the chart. The black one is eurusd and the red one is the one step forward forecast. You can see from the chart that there is a one-step forecast. It was obtained on the previous 48 bars H1. The previous
Good day. The code that i have posted below returns 4109 error and i dont know where to look for the error and it is my first time writing a code for pending orders and how do i delete a certain pending order given that every news times a certain symbol will have a pending trade (BUYSTOP and...
Can anyone tell me if it's possible to run through my trade history, using MQL, to find out if a specific trade was stopped out? I have a few techniques to close trades, but I would like to know if there is a variable that stores whether the reason it closed was because of the SL. Thanks Johnny
An EA (or all EAs) that worked yesterday (and all the other days) suddenly stops after a minut while I'm doing backtesting. It doesn't matter if I choose another method (tick/opening) , the chart still freezes and I get NO ERROR MESSAGE! Then after a minute the whole program (Metatrader) freezes, so...
I have been using mt4 platform for over 5 years now and I am very happy with what I can do. This message is especially to thank Metaquotes to make the greatest improvement that they have made to mt4 in last 5 years and that is to allow users to specify spread to be used in backtesting. I wish only...
Dears friends, i have checked the following EA both on demo and live. In demo it works fine. But in live account it opens over 30 pending orders at one go at the same price and time and they all get executed when the price is reached. i have tried every possible settings from the input parameters....
Font size of MT4 was changed to very small after LiveUpdate to new version. Even some indicators are unreadable now. How can I change the font to the normal size? I use Windows XP. I didn't change my DPI setting and all other programs look and work fine.
Hello, I program EA based on daily high-low. Program enters with the help of indicator induced through iCustom. I have a problem that I'm open position immediately on the first candle. I want it opened on another candle from the new daily high-low. I attach files. Thank you for any help or advice....
hi all, if there any someone who can give me code for EA autotrade for any indicator?? for example if i have nice indicator i mean custom indicator that will give signal, can EA do autotrade like sell or buy??? example if my indicator say buy this 1.000 then automatically EA will set profit and stop...
[Deleted]
I dont trust the new brokers easily and this time I around I have come across this "xCFD" with low spreads. Well, I dont really believe the claims of zero commissions, free iPads and Macs. I mean how do they money? I am fairly experience with forex but still it's hard to resist the freebies.
New article How Reliable is Night Trading? has been published: The article covers the peculiarities of night flat trading on cross currency pairs. It explains where you can expect profits and why great losses are not unlikely. The article also features an example of the Expert Advisor developed for...
[Deleted]
Hi, I have two problems with Buy-Stop and Sell-Stop Orders 1.If my aktuell price (Ask for Buy-Stop and Bid for Sell-Stop) is too near on my pending price (0.00002) I alwas get the order-send error 130. I have already read this side: https://book.mql4.com/appendix/limits My code for sending the...
General Exponential Moving Avg (EMA) has three Inputs 1. RPeriod 2. MA_Mode 3. Offset I would like to make "offset" that continuous change & autocalculate the value and reset its position. Offset = Verticle Price Difference between 2 price X 4
[Deleted]
backtesting occur error 130 what's wrong with my code ?
Whenever I run a tester to test my EA (or in optimization), the tester will close all trades at the end of the period chosen (stop-out). Is there any possibility to make it such that: the period tested remains the same (from date x to date y) but, should there be open trades, the tester should, in...
Hi All, So that I can review my trades, I would like to take a screenshot of MULTIPLE timeframes for a given Symbol. I want to do this via MQL code, so the process is all automated.. Taking a single screenshot is easy, coded that and it is all working fine. However, all attempts at doing screenshots...
My martingale system doesn't work correctly.Please i need help to make it work.I won't try to explain it since it's too complicated and my eyes hurt when looking at so much variables,so i'll copy it all here and if anyone finds any errors in the code please tell me.Thanks much: SETTING VARIABLES:...
Hi everyone My problem is to close a pending order according to another opened order. For example, it is an opened order on GBPUSD and its own SL & TP, beside that there is a pending order wait to be executed by reaching to SL point of opened order. But I want the pending order to be deleted when...
Hi there, could someone please be nice to show how your code would look like, if you each new day want to open a trade end close it again lets say 4 hours later.
Hi, the 'how-to' of file open tells me: ... Handles of files opened in the same module cannot be passed to other modules (libraries) I do not exactly know what and how module is meant. I want to open a file in an include, setTrds.mqh: int iTr[ 10 ][ 50 ] ... #define Se.HDL 41 ... iTr[i][Se.HDL]
hi! i have written a custom indicator which draws some additional curves onto the main chart window. the indicator works well for a while but after some time, for example, if i come back to the chart after a few hours, i find that the indicator lines have become corrupted: they reflect the wrong...
Please speak up )))) Started in the EURUSD discussion thread )))) Anyway, here is the idea. There are OHLC values for each bar. We take and add all numbers that are included in these quotes and obtain some new (integer) dimension of market movement. The code in MQL looks like this: int SUM( double

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.