Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1021

To post a new topic, please log in or register
Hi everyone. I know there are some of you that need help creating your trading idea into an EA or indicator. I will be offering my services for a promotional rate of just $25 for your EA! Just e-mail me at eacoder@hotmail.com with your 1) entry rules, 2) exit rules, and any other information you'd...
Hi All, Anyone can provide the example code for : 1) calculate the total Profit as Points Not currency? Thanks in advance:)
Hi Guys, I am appreciate if anyone can give me a hand. I have an indicator here and I would like on the screen to diskplay the (price/ $) of the tip of the (light blue line/middle line), I am trying to build an EA eventually, but due to I have zero knowledge, may need some hand from time to time....
I finally get a EA, it perform brilliantly but I found the history data for m1 is very limited (begin at April,2009) and very poor (quality:25%). I tried to download history data from TOOLS->HISTORY CENTER. then I tested form JAN,2007 -JUN.2009,the result is terrible. but I found a strange situation...
Hi, I would really appreciate some help as I am completely new to mql. I programmed a basic strategy, but I need to include a time based exit (eg: Close order if time from entry exceeds or equals to 2 days). Like an inactivity stop in a way. I spent ages trying to figure out the time thing but no...
I noticed that comments are not included when saving a Backtesting report in html file. I always record indicator values in trade comments to help me analyze trades, and I want to export backtesting reports in Excel but I need the comments included. Is there a way to include this feature in future...
Hi everyone, I have to send information (a string of text, or at least some doubles) between two separate instances of MetaTrader4, each one holding one of my accounts. I saw here on the forum some topics about PostMessageA to send mt4 internal messages, but this is not what I need because there is...
Could anyone help to modify this EA to add one more function to sound alert trader when the first loss target reached, but not close all the open trade. and trader can set second loss target to close all open trade. Thank in advance
Hi, I don´t find mql code for drawing tlb charts in the price window (no as indicator). My idea / inspiration is this picture: http://www.topgunsoftware.com/3pointbreakchart.html Thank you very much for links to this code!
I was wondering if this can be made. for a trailing stop EA. What I want this EA to do is for example I have a open order and I set my trailing stop at 20 here is the interesting part. Lets say the order hit’s the trailing stop above 20 and the starts heading the opposite direction, I want the EA to...
Hello, in my EA I open an Order sucessfully with OpenOrder(...); If I call OrdersTotal() immediately after the OpenOrder(), I get a 1 returned which is correct. But as soon as I get to the beginning of "start()" by the next tick, OrdersTotal() returns a 0. I don't know why. Any clue? Thanks a lot!...
Hey Guys, Wondering if someone can help me on this: In my code i try to generagte a random number and store it as a variable like this: rannum=MathRand(); Print ("A: ", rannum); <I then have lots of other code > Later on i try to print that exact same number in another print statement... Print ("B:...
Hey guys, I'm looking for people to help me develop widgets for my website. If anyone is willing to help, please email me at jeffrey.lever at gmail.com My website is www.ForexBallot.com, and it is meant to guage investor sentiments about how currency pairs will move in the market over specific time...
double sMACDi = GlobalVariableGet(sMA); if (sMACDi == 1) //If Signal Line Crosses MACD Line, Buy { Opn_B=true; Cls_S=true; } if (sMACDi == -1) //If Signal Line Exits MACD Line, Sell...
hi how i can determine one bar(candle) in what day of week open or close ? Please Help Me
Hi there, I am new here and I have come across a problem I can't seem to solve in my script. I am trying to open and close a file and add information to it. Now the documentation of this procedure seems fairly simple but it just won't work. filehandle=FileOpen(filename...
hi, please i need someone to tell me how to write the word "or" in mq4 language. for example, i know that "&&" represents "and", but i don't know what represents the word "or". so that i can write,if (ema1>ema2 or macd1>0) so that the ea will take action if anyone of the 2 conditions is met. any...
hello, i know there are several program that save file, e.g. .csv .txt .prn. can anyone kindly create a .mq4 program that change year format, for example, year 2009 to 1999? year is only thing i concern. i want date and time not changed at all. THANK YOU.
I have developed a custom dll on my home PC (Win Xp Pro). The EA with the importeddll runs perfectly. When I try to run it on my server (Win Server 2003), it gives error 126. The settingsin the platforms are identical, I assume there is something different, somethingmay be missing in OS environment...
This is an Idea that can hardly be original, however long and committed searches and web discussions have turned up to/with naught. The assistance of the community or individual programmers is being sought there either to share or develop this utility. It’s value is immediately clear, however I...
I ve got a problem with the graphic Objects, The error Code is" Object name passed to ObjectSet function cannot be an unitiasized or empty string". What does it mean ? Thank you sill3000
  Good idea (6)
(GBPUSD,EURUSD). This expert is realy the best. try it and see the difference This expert don't use any indicator. for more information contact us :gaklb@yahoo.com Params.: Lots=0.1 -->bigprofit=25 Lots=0.2 -->bigprofit=50 ..... Lots=0.5 -->bigprofit=125 The price:Your profit for one month with...
Good day, I'm trying to convert the Alligator Indicator to an EA or at least remove the indicator specific properties. The reason I am doing this is because I need the data that the alligator calculates, but I want to display it using objects to get around the limit of 8 buffers. So far, I have it...
hi! my little script should write the macd indicator and the candles's values. for gbp/usd i can write onto a file 50023 minutes, but eur/usd not. after 2418 minutes the macd + signal are 0. after 29214 minutes all values are 0. my script is  int start() { static int flag; int handle;...
hi guys, i ran an ea and i get this error...the problem is that is has no defined error code, any ideas what could be wrong??? thanx
Hi all, this is my first post, so if I say something stupid, please let me know. I am trying to count the number of UP arrows that is on a certain chart. The only thing that I can find to count arrows, counts all arrows(up and down), but I just want to count only the Up arrows. I am certain that...
i need help to add deviation from 0,25, 0,5, 0,75 and 1.0 line into this indicators, so it will show 4 deviation lines, thank you
I have programmed a pair of nested loops to run through some pairs and some time periods. When I print out the results of loops, I see the pairs and periods are displayed correctly, but when I use 'close' data from the loops, I get invalid data. It seems to repeat the close info from the first pair...
I am looking an EA which should work according according to Fibonacci rule. I explain it as below. say price is moving up and stop at a certain level X and then starts moving down. the EA should execute a pendinding order of buy stop at level X, now the price is moving down. When the price start...
Hello All, Is it possible to get "Print" to print trailing zeros, for example if value = 1.4 print 1.4000 Thank you for yr help