MQL4 and MetaTrader 4 - page 1324

  Max SlipPage  (3)
In MQL4: How can I set the Maximun slippage in order to avoind this message of MT4 (and the order is not generated)? " requote xxx / xxx for open [buy/sell] [lot] [currencypair] at xxxxx sl. xxxx tp. xxxxx" I have tried with 3 and then 5 but sometimes I still get the message and the order is not
[Deleted]
Hi, I'm slowly learning about coding MQL4, and while I'm getting to grips with modifying existing code I am still quite a bit off the mark on writing my own indicators from scratch. To help learn, I'm trying to write a custom indicator ("Balanced") which draws a line using data from 2 other custom...
I am learning this new launguage while trying to do some liitle things. Following is the sample code in the Start function to define a user function. I have 2 problems here. 1. The way I defined the function and/or called the does not look right. Hence I am getting lot of compilation errors. 2. In...
[Deleted]
Hi I recently installed FX Multi-Meter 111 on my meta trader and have all these very large fonts showing over everything. I am on interbank running Vista and meta trader 4 Is there a fix for this problem?? I am relatively new to this and any help would be appreciated Thanks in advance ron W.
int counted_bars=IndicatorCounted(); if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; double arrayOne[limit]; I need to create an array of dynamic size above, but it doesn't work in this code. What is the correct way of coding it? Thanks.
I am running my TrendWhipsaw EA on two computers for two cross pairs, EURUSD and AUDUSD. I normally stop the EAs once the profit hit my target profit of 100 pips each a day. Regularly, once or twice in a week the profit never comes but the loss just getting bigger so I have to run till getting out
Hi, I am using Windows 7 and recently installed Meta Trader. Every time I open Meta Trader I am receiving '1607182': connect failed [Invalid account] message. So i cant log in using my account details. Is it because of Windows 7?
[Deleted]
I just saw the following occur in some [double related] code I'm writing. EDIT: Removed since it contained incorrect info This is real bad. That means, the only way I can do the above comparison safely is EDIT: Removed since it contained incorrect info And if I wanted to compare for equality (for
  "meters" ...  (69   1 2 3 4 5 6 7)
Not a new idea, but since we do not have something like these ... And I was wondering is it complicated to make one ____________________________ In this thread indicators that can be called "meters" will be posted. The "meters" in this case refers to a certain way of presenting data. More or less it
[Deleted]
I’ve lived through several recessions and one thing I have learned is that the economic structure of our society is about supply and demand. Look at your own life, your daily activities and consider how the theory of supply and demand affects you. Take milk for instance . If your local grocery...
New article Practical Application Of Databases For Markets Analysis is published: Working with data has become the main task for modern software - both for standalone and network applications. To solve this problem a specialized software were created. These are Database Management Systems (DBMS),...
[Deleted]
Is there an easy way to get the current value of an indicator in a chart sub window? Seems like it should be so easy... WindowGetValue(winId); If I can not get a value from a window, how do I figure out what indicator is running in a chart sub window so that I can call iCustom? Thanks! Matt
[Deleted]
I am stuck and not sure what I am doing wrong. My EA is reporting a OrderModify error 1 on almost every tick. I am trying to get the EA to modify an order when the "entry" variable changes from the OrderOpenPrice(), which was originally opened using "entry". In the past to check values I have...
Does anyone know why there is an one year gap in the GBPJPY data when the data is downloaded from Metaquotes server? You can see this for yourself in Tools -> History Center - > Group 11 (GBPJPY) -> click on 1 hour (H1) and look for March 2004 to December 2004. They are not there. Winsor
Why does MetaTrader repeat the start function for every second? It does that to my code: //+------------------------------------------------------------------+ //| alanFirst.mq4 | //| Copyright © 2010, MetaQuotes Software Corp....
[Deleted]
In MQL4 Documentation is this code snippet to illustrate the use of Symbol()... int total=OrdersTotal(); for(int pos=0;pos<total;pos++) { // check selection result because the order may be closed or deleted at this time! if(OrderSelect(pos, SELECT_BY_POS)==false) continue;...
[Deleted]
How do you convert a source code into an executable file (.mql4) using Meta Editor
[Deleted]
How can I check to see what has happened with my last order, whether it has hit the TP or the SL or whether it's been closed and I need to know if it's still open as well
From www.molanis.com. Check our video tutorial https://www.youtube.com/watch?v=BTqqbwBhrjg
Hello all, I tested my simple EA on MT4 startegy tester. I noticed that my EA is too good to be true so I decided to look at details and here what I found: My EA tested on H4 period wth EVERY TICK (best) option. 1. EA sent SELL STOP order at 1.6116 on 2010.01.04 00:00 am with SL 1.6196 and TP 1.6035...
Hi there. This is a EA that I'm working on. It's in the "play with" stage now and I though I would make it open for everybody to play with. How this works. Al the changes takes place here: // PLACE ORDER if (OrdersTotal() < 1) { //if (m1==1&&m5==0&&m15==1&&m30==1&&h1==1&&h4==1) if...
If so, has anyone manage to make a call / read to them. It's to populate all symbols available from a given broker... TIA
[Deleted]
hi to all, what i want to do is, a custım indicator that has two color .one variable is ima(...)-ima(..).this is macd u know.The second variable is imaonArray of macd.if macd is above the imaonarray line color becomes green.İf below maCD LİNE İS RED.tHİS İS AN EASY TASK BUT i think i miss something...
New article Migrating from MQL4 to MQL5 is published at mql5.com: This article is a quick guide to MQL4 language functions, it will help you to migrate your programs from MQL4 to MQL5. For each MQL4 function (except trading functions) the description and MQL5 implementation are presented, it allows...
  Profitable Platform crashing  (18   1 2)
We have 4 live accounts with a broker who will not be named for legal reasons (a major one). Of the 4 accounts, they are trading the same EA but one is more aggressive. The aggressive one is up about 5% (was I should say). The others are flat, as they have just started last few days. The profitable
[Deleted]
Hi all, I ran into a problem that the optimization does not take into consideration of all possible scenario. I found out because I have a particular set of input values that give pretty good result. But when I ran the optimizations, I couldn't find that particular set of input. In journal, I found...
  What happened to Doe last night?  (170   1 2 3 4 5 ... 16 17)
I don't actually follow him, but I saw him on the news today: Snob link is right here . Here's another picture - from MT4
  MT5 tester available!!!!  (95   1 2 3 4 5 ... 9 10)
HOORAY! --- The weekend is gone ;)
Hi fellow Brothers, Recently, i've design an indicator for support / resistance line using zigzag methods. Now, i want to add some features as possible target line for GBPUSD range within support/resistance line as per below picture. attached is my code. hope anyone can help me on this. #property...
[Deleted]
I am trying to run a script that will collect data in an array and then analyze it in excel. The problem is I don't know how to get it to excel. I have tried both http://www.fx1.net/excellink.php and http://fxdialogue.com/ and neither of them work for this solution. My arrays are 100,000 by 20...