Just found a reference to this in MQL doc: "Global variables are available within four weeks since their last call from experts or manual modifying." I take this to mean that, if you create a global variable, whether in code from an EA, or manually, if there are no modications or access to it, the...
I am trying to FTP a txt file to a server. I have the password and User name but when I try running the test I get the FTP: STOR command failed. I have been able to FTP with FileZilla with no problem. Has anyone else had this problem?
I am busy writing my first EA and I have certain conditions that I check for false or true. The results are stored in an array. The array has 5 instances. If only one instance is false it must make the total result also false. To get a true result ALL five instances must be true. I am not familiar
[Deleted]
I have a purchased EA that is working fine.It is fairly advanced and has many inputs.I am trying to test some other settings of the inputs but the Strategy tester doesn't seem to be working properly.I DO have older computers with Windows XP. This is what is happening right now: The Strategy tester...
[Deleted]
Hi All, Can someone please tell me if what I have done in this backtest is possible on a live account. At some points the balance goes negative whilst the equity is well above the initial deposit. I have searched the net to death and cant seem to find an answer, thought you guys could shed some...
Hello I have an EA that performs well in backtest and I am trying to take it to the next level - performing on a demo account. But I am lost as to what is good practice to make it reliable, robust to recover from MT4 crash. E.g. - error handling. Apart from (obviously) logging the error, exactly how...
[Deleted]
Hi All, I'm totally newbie in MT4 compiling, thus i'm seeking for some help. I'm trying to implemente a strategy whose logic is as follows (i've found the following article on a website, it's not my homeworking) ;-): 1. Open a position in any direction you like. Example: Buy 0.1 lots at 1.9830. A...
Hi, I want to run a cicle or something like that, to identify last Buy/Sell closed order by magicnumber, and then if it finds any remaining open Buy/Sell orders from a list of magic numbers, it must close all the Buy or Sell orders depending of the type of last closed. I already tryed the...
Dear All, I need some help on the following issue. I have a custom indicator, which display TREND in separate window. There are 3 color used to display TREND 1: Green => Which is show UP TREND 2: RED => Which is show DOWN TREND 3: Yellow => Which is happen between UP TREND and then DOWN TREND So in...
[Deleted]
Hi every one, Can somebody please post me or show me where I can get the standard daily pivot point indicator. I have not used it before so dont know much about it. Does it come as standard indicator on MT4, if it does can u let me know where it is. Any help would be appreciated. Thanks for your...
Suppose we have some code (functions, classes, etc.) There is a task - to create a call stack . But not just a linear one - as a tree . Where the tree node will be the function entry and the branches will be the calls of the following functions from the current function node. For example, there is
GetLastError() will clear the special variable last_error. And so will hide all possible except expected if (GetLastError() == 4066) for example. I want to use last_error itself, but it's invisible. The _LastError() variable is not zeroed in MT5 GetLastError(). Thank goodness! ResetLastError() was
Hello, I use MetatradeAPI dll, and i bult my program on Windows 7 ultimate... When i execute my program on Windows server 2008 R2, there are errors on dependency for MetatradeApi.Internal.Shared! Why do I have this problem? PS: My program works on Windows 7
[Deleted]
Hi everybody.I have been playing around with EAs for quite a while. Had no great success with ones trading on standard charts. Then friend introduced me to Renko charts. I started to build EAs which were making terrific profits trading on Renko charts but only in the backtest. In live demos they...
I am using the standard ATR function. I notice that the result is rounded to 4 digits after the decimal point. I need however 8 digits after the decimal point. I have tried using NormaLizeDouble but I do not seem to manage to get to 8 digits. Can you help please, Many thanks, Sylvano
Hello I'm new on MQL4 programming langage and i need your help to do backtesting on my new code and give me advise on how to do it better or if the simulation is very relevant of the reality : The parameters i use for my backtest :...
The easiest way for me to explain this is an example. Say I want to display an symbol above a candle where the MACD aligns with the MACD of the 3 higher time periods. I can easily draw arrow indicators using calculations in the default time period of the chart. But I can't see how I get to pos=10,...
[Deleted]
Every time I tried my EA on strategy test .. Error message poped...
Hi - hope there is a simple solution to this query. I am writing an EA and I use a 'low' SMA (simple moving average ) and a 'high' SMA - they could be anything say from 2-10 for the low and 20-100+ for the high. At the moment I have my default values in my EA - say SMA-LO =5 and SMA-HI =25. Is there
[Deleted]
Hi all, I have the following code in start() function of a Script: String Symb=Symbol(); double StopLoss =200; // SL for an opened order double TakeProfit =100; // ТР for an opened order double SL=Bid - StopLoss*Point; // Calculating SL of opened double...
Hello . I wanted to ask the forum if there is an EA that sounds an alarm when it detects that a shorter moving average separates more and more of a longer moving average. For example, suppose a 30-period moving average rises above a moving average of 60 periods, while both moving averages separated
need help in ea b/s order opening .. i was using two indicaotr 1) FISH and 2) CCI and using EA as EA1 need help in condiation condiation as all order open and close as per FISH indicator buy and sell signal ( buy above 0 level and sell below 0 level) but at that time the CCI indicator must have...
Hi Guys, This is my attempt at trying to handle broker requotes . Recently my EA took 2 buy trades almost at the same time. I'm guessing that while the server was thinking about accepting the first request the 2nd loop kicked in and made a 2nd request - result was they both got accepted!! Has
Hi, I have an EA what I want to run on the same pair with different settings. Now it opens only one position even if two other EAs were suppose to open a trade as well. And even worse, if one EA is suppose to close it position, but does not have an open one, it just closes a position from another...
[Deleted]
Hi I was wondering if anyone can tell what options are available for rounding a figure? For example I know the normalizedouble code and thats about it. Thanks Antony
I have been trying to add magic number to an E.A. that opens and closes trades using the parabolic sar. This is the E.A. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------...
Hello to all creative indicator.I have a good contact who gave me the code for the indicator (RMO Rahul Moindar)but I'm not a programmer so if anyone of you could createto use it in the clenched metatrader great. Because this indicator is onlyavailable software "MetaStock" and it is...
[Deleted]
Hi I have an EA that uses iATR it seems that on current bars sometimes the EA seems to just stop reading ATR and the ATR value just freezes. For example see the attached image: Now the ATR indicator shows 0.0019 which is correct, the EA shows 0.0017, when the current bar closes, this value corrects...
[Deleted]
Run 9 terminal.exe's each from different MT4 folder tree. Each Client Terminal has same profile running: 10 charts. 10 charts: each have simple EA counting ticks (via entry to start() count) and on new bar Comment() the concatenated previous bar's count EG, "10, 25,20,30, .." Summary: total 9 MT4s...
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.