MQL4 and MetaTrader 4 - page 885

To post a new topic, please log in or register
Is it possible to run 2 or more sessions of MT4 (with different EA's) on the same account at the same time?
  Overload (1)
I did a script that has a loop while(true) Sleep(10) ; Is it possible that it overloads e.g. MT4 cache or so that adversely affects the program. If so, is there a solution? Thanks.
Hello, I`m working on my first EA and I have got several Problem solved but this one still appears. What I`m trying is to show the iMA() as a comment programmed in a for loop in the start() function of the EA. Well it appears on the corner but once in a while the value drops to zero. When I do it...
Hello Below is the coding I am writing which give the correct result, but if I change timeframe or symbol, the indicator disappears. The only way I can get it back is if I recompile the code. #property copyright "Brian307"#property link      "B121ANS@Hotmail.com"#include <WinUser32...
How can change a trade that is gong on with the opposite one e.g. BUY with SELL(if BUY is in loss and vice-versa...). How can we make EA detect the direction of the graph?
Pls. help me. I'm beginner. [code] int start() { OrderSelect(Symbol(),OP_BUY,0.05,Ask,0,Ask-150*Point,Ask+15*Point,NULL,0,0,NULL); } [/code] I want to use the price which the select function buy for the next order. How can I do that?
I'd like to learn MQL4 in order to program automated trading systems. However, I like to read manuals and tutorials on paper, and I prefer to print a pdf file. However, I have not been able to find such pdf file, but only chm and html code. Where can I find such documentation? I program VBA, python....
On the website of the Automated Trading Championship 2010, we've published a new article "The 6th Week of the Championship: A Sudden Rush to the Top". The Championship is in its middle now, while the leader is the same - bobsley. However the distance between him and the second place is the minimal...
Hi All I am using the following piece of code to read data from a text file sample data : 1.2345,1.4321,1.6545 1.7654,1.4432.1.6535 1.6556,1.5642,1.3645 The problem I have is that the code will not read any thing after the point so all it is returning is 1 for every piece of data. Does anyone know...
Hello any body here knows how to make an indicator shows the direction of the market inseparate window depending on MAs cross!! Foe examole if i will use 18 and 9 MAs if 9 cross over 18 it gives me Blue barsat the histogram and if 9 down it gives me Red taking in cosediration that allbars of...
I have an indicator which will alert when two moving averages cross. It plays an alert sound and sends an email. The indicator works very well, with just one exception; once the alert has been triggered, it keeps repeating the same alert over and over again. For example, if I use it on a 15 minute...
//+------------------------------------------------------------------+//|                                          ZIG ZAG NON REPAINT.mq4 |//+------------------------------------------------------------------+#property copyright "Copyright©2010"#property link      ""#property...
for example, I set OBJ_TRENDBYANGLE on position time[10], how can I get the OBJ_TRENDBYANGLE's value from the position time[0]?
Hi there, would you help me to fix this EA, is a simple EA in which you enter 2 prices, into a uptrend waiting for the bounce, the first is the level touch and the second one above the confirmation level necessary to open an order, but unfortunatelly doesn't open any order ?? Thank you in advance...
So I'm trying to write this as an indicator first. I want to be able to use the current daily Moving Average as a trade signal but it doesn't seem to be giving me the correct results. Any ideas on what I need to change to get this to work? Thanks....
Is there any possibility of MetaTrader4 Mobile being offered on another OS besides Windows anytime soon? Will it work with the new Windows 7 OS for phones? Thank you.
  iCustom help (6)
Hi all, I need help to call indicator ST(attached) with function iCustom, the idea is using this indicator in an expert advisor. I see the syntax is the following: Function iCustom() double iCustom(string symbol, int timeframe, string name, ..., int mode, int shift) but I have problems to fill it...
  EA coding (1)
Please, if anyone can make an EA based on this indicator. It is a very good one. E-mail me at ivn56stn@yahoo.com
Hi, I have an existing indicator where I added a new bool extern variable. For some reason when I change it when the indicator is running, the code still thinks it is the default value of when it was declared. There is nothing in my code that changes the variable state. I am only reading it. Also,...
Hello world, I'm hoping someone can guide me to the right direction. I'm looking for an stochastic indicator where in the same chart I can view different stoch timeframes. For example, I'm in a M5 chart but my stoch indicator can show me the stoch for the H1, M15, etc. Below is a mock up of...
hi i want to use this code to protect my indicator Protection by TimeAnother way to protect an Expert Advisor is to limit its work by time. You can let it work only until a certain date on any account or server. When demo period expires, the Expert Advisor will no longer work and user will have to...
כמו שציינתי, אני לא מצליח להוריד אקספרטים למטא טריידר, כי הווינדוס לא מצליח לקרוא אותם ולכן אינו מוריד אותם למטא. עזרה בבבבבבבבבקשה
double ang = ObjectGet("HighLine",OBJPROP_ANGLE);   Print(ang); Hi All, I've drawn a line on a chart called "Highline" - does anybody know the point of the OBJPROP_ANGLE used in the context above? it does not return the line angle! thanks
I've got a mt4 install I use only for backtesting. Since brokers only provide a few months of M1 data I prefer to use exclusively the data from MetaQuotes, what you get from the "download" button in the history center. The problem is keeping this data updated. It will only update to the most...
Hello! I'm looking for a standard set of functions to open/close orders, error management, money management, trailing stops, etc... does it exists? It will save my code writing time. Thanks in advance!!
  Triad System (6)
Did you one of you bought Triad System? If you bought it, how was your experience?
Hi Guys, I would very much appreciate it if someone would tell me if this is possible: I have an indicator which prints arrows on the chart (for manual trade only) - I would like to replace the arrows with a vertical line and a horizontal line at the Bar Close level - which would extend to the next...
Hello I'm new to MT and also for programming. I opened a demo account and wanted to play around a bit with the expert advisors. The only thing i wanted is to display is the actual bar's close price. For this i used: Alert(“Close: “,Close[0]); But it gives me 1.1234 instead of 1.12345. If i put...
dear traders, Instead of placing a typical order at a price level, i would like to use lines as order instructions, for example, if i have a down trend parallel price channel, using the lines that i used for drawing out the down trend, when the price touches resistance/support, i...
The number of years of trading is moot at this stage. I am a Trader. I have a great algorithm, but know little to nothing about MQL4. The system is based on the very building blocks of life itself DNA Im trying to save it as a template so that it could be viewed and analyzed. Any help is greatly...