Download MetaTrader 5

MQL4 and MetaTrader 4 - page 488

To post a new topic, please log in or register
  Concentrated (87   1 2 3 4 5 ... 8 9)
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...
Please, who can tell me how i can convert a custom indicator into an expert advisor ?
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...
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...
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
forexparvenu
  error 130.... please help (12   1 2)
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...
Hi, I'm pretty advanced by now using EA, and I'm automating my trading through them, I'm working with 3 different brokers all through MT4 (Alpari, Forex.com, ActivTrades) and out of 3 months of trading, this has happened once on each one. I request to open an order, and receive the ticket I...
Hi! I want to write a function that will allow me to enter at least 3 dates with times as external variables, so that during those times (or for example for two hours after those times) my expert advisor would not make any trades.Can you please point me to the right material where I can learn how to...
I have an EA which opens 2 orders of differing lot size. Occasionally, 1 lot will not open, or I will close one lot manually, etc. I'd like to be able to display the open order status on the chart, rather than searching through the terminal to find the pair, etc - can this be done automatically?
Everyone, I have developed a relatively simple EA, and wanted to test it by using Strategy Tester in order to find the best setup (S/L,T/P). I recognized that the numbers in the report after several runs are different. So I decided to run the EA on Strategy tester 3 times in a row, without changing...
I have written an EA that has to scan multiple currencies and give an alert when certain conditions are true for a particular currency pair. Can I test this EA in the Strategy Tester and receive Alerts when a condition is met in a particular currency?
I wanted to test signal for a broker but it doesn't work because symbols are suffixed with m by broker so expert cannot recognize. Is it possible to change ?
It took me months to getting started I have given up multiple times this is why : there are tons of very good but lengthly articles as well as samples codes without explanation so when a beginner who tries to understand and not just copy and paste - often it doesn't work - you have to extract the...
When running logic every tick - only looking at open trades and staying away from history trades - the backtesting suffers and takes longer. If you move that logic to a DLL (probably c# or freepascal or c++ sample in mt4passing either each tick or an array[] - something efficient ) - well ............