MQL4 and MetaTrader 4 - page 1242

I want to read the crosshair position from the graph. Is there such function exist ?Maybe it has a distinct (special) name that can be read with 'ObjectGet()' ?! James
[Deleted]
I have an indicator which usually works well. When i run an EA and loaded my indicator to the chart in the meantime,but the indicator did not work. Is there any advice? data mismatch ?
[Deleted]
Hi, I have the following code below - it seems to work fine running live (don't worry, it's a non-profitable strategy) where the stop loss and profit targets are hit, but when I run it in Tester, it does not trigger then and instead just closes the position(s) on the very last data set. Do I need...
[Deleted]
Hello Folks, Just one fast question - I couldn't find the answer here. I wonder if it's too stupid... If I write an EA and want to use it on different currencies at the same time in the same terminal - Do I have to pay attention to something specific or does this always work without complications?...
[Deleted]
  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.
[Deleted]
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...
[Deleted]
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?
[Deleted]
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
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 in separate window depending on MAs cross!! Foe examole if i will use 18 and 9 MAs if 9 cross over 18 it gives me Blue bars at the histogram and if 9 down it gives me Red taking in cosediration that all bars 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
[Deleted]
//+------------------------------------------------------------------+//|                                          ZIG ZAG NON REPAINT.mq4 |//+------------------------------------------------------------------+#property copyright "Copyright©2010"#property link      ""#property...
[Deleted]
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
[Deleted]
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...
[Deleted]
  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
[Deleted]
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,...
[Deleted]
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...
[Deleted]
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...
כמו שציינתי, אני לא מצליח להוריד אקספרטים למטא טריידר, כי הווינדוס לא מצליח לקרוא אותם ולכן אינו מוריד אותם למטא. עזרה בבבבבבבבבקשה
  ObjectProp_Angle  (2)
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!!
[Deleted]
  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...