MQL4 and MetaTrader 4 - page 1087

[Deleted]
  Account History  (2)
Is there a way to remove or hide cancelled pending orders from the 'Account History' tab?
I am saving my quotes in an csv-file. Does anybody knows a way of checking the completeness of the data automatically? The qoutes are saved like this: 2011.09.29 17:57 5646 5651 5646 5648 I think I can do this with reading and controlling the file with an ea or with an script?? Does anybody knows
[Deleted]
Please help me !!! How to codes a "Expert Advisor" to draw a box with bars ? Begin 00:00 Monday End 23:00 Friday Box will shift x bars to begin box include y bar to end Please help me, soon! Thanks alot.
[Deleted]
Hi, I'm triyng to write my first EA and I've already got the first part of it (entry points). Unfortunately it gives me various Zero Divide errors in Journal.. :( I'm around this error for days and getting crazy!!! :( Can someone please take a look?...
[Deleted]
Hi, I'm wondering if it possible to create an EA which disable's all EA's on a MT4 client? E.g. When the account reaches a 30% DD in the last 24 hours, the EA will switch off the Expert Advisors function of the MT4 client. I looked at a few EA's like the Swissarmy, MPTM etc. All have a global SL...
[Deleted]
Ran into a problem with an array. datetime arrobjt[2]={ObjectGet(id,OBJPROP_TIME2),ObjectGet(id,OBJPROP_TIME2),ObjectGet(id,,OBJPROP_TIME3)}; Thought this would work but I keep getting a variable expected "OBJPROP_TIME1" is it possible to use a function in this situation? Am I missing something.....
[Deleted]
Hello, I'm currently developing a DLL expert advisor. I have come across weird issues in MQL4 code, which I hope you'll help me fix. Firstly, ArrayCopyRates does not seem to work as expected. When I copy the bars to a two-dimensional array, I receive it in a reverse order in my DLL. The nearest...
[Deleted]
if I want to get the AccountProfit() high point and store in an double profit;, how can I do it ? thanks extern double a=0; double pf=AccountProfit(); if(a==0)a=pf; else if(a>pf)a=pf;
  Sendmail  (2)
My sendmail isn't working anymore. Worked fine up until a few weeks ago. was set to smtp.mail.yahoo.com.br:25 tried gmail, gmx & hotmail to no avail. Does anyone have sendmail working at a FREE email account? If so, what email site please... Thanks, Doug -
Hello...if anyone can help me pls...I want to add an alert sound to an indicator and I don`t know how...I tried a lot but I think I miss something :(...I want when a pattern it`s found to give me an alert sound...anyone who can help me please, I appreciate...THANKS IN ADVANCE...I have attached it...
Hi I found this script on this website somewhere a while ago and decided to give it a try now. The problem is it overwrites older data once it gets to a 101 lines. I dont know how to code in MQL but looking at the code I see length = 100 and the for loop will only iterate that many times since i =
I have this indi that counts the number of bars since the last new high/low of a moving maximum/minimum of the close price: it could be used as input for a window function (that dynamically adjusts the look-back period of other indicators); Take a look at it: it is based on the #HH_LL indicator:...
  MA of the MACD Signal  (13   1 2)
I need in my EA an Moving average of the Signal line of the MACD. Can I use IMAOnArray ?. Please giv me advice, thanks Dropje
Dear Friends, I have been searching for a mq4 file, which will draw the difference between +DI and -DI as an oscillator and put a its moving average on the same graphic, namely DIOSC indicator. Is there anyone who has this file ? Thank you in advance, Trappist
-
I need some body can help me to revise my EA, I need to add some code to sent email from my EA about all position New and liQUID. thanks
Here is my self-destructing EA. The idea is that when it is finished doing its job, it removes itself from the chart. And it does do this very nicely and in not too many lines of code. // Using any sort of PostMessage is a HACK and not recommended, but for otherwise unsupported functionality it can
Where can I find a dll to mt4 work with a client dde ??? someone can help me ?
[Deleted]
Hi all, i need some help with the strategy tester functionality. I'm making an EA (thanks to the mql4 community!) and i'm testing it with the strategy tester in visual mode, everything goes fine until the EA enter in a cycle like a while or for(;;). The strategy tester suddenly stops For example:...
Working through the Book. About halfway through, the sign usage of >, <, <=, >= seems to reverse. I wasn't sure so I double checked with the downloadable code, there appear to be nearly five different instances of sign reversal. Has anyone addressed this issue
Please anyone explain me with an examble about the function Account profit() . Thank you!
Hi all, could you please help me to make an Ea with this strategy: Open Position on 15M Candle. If Close[0]>Open[0] then open buy position whit 3% risk. If Close[0]<Open[0] then open Sell position whit 3% risk and Close the last Buy position. and Vice versa... We take 15 Pip as S.L. for avoiding...
Hi, is there any possibility that in the timeline the time of a vertical line isn't shown: ObjectCreate("test",OBJ_VLINE,0,Time[i],0);ObjectSet (name,OBJPROP_COLOR,Gray);   Because I have programmed that every 4 hours in my M15 Chart is a v-Line shown and I want to let the timeline as it is...
I recently added to comments about people not being able to create demo accounts (after January 1st I think). The problem appears several fold Demo accounts are created using (Alpari UK) current build - 409 (Oct 2011) [BUILD #s maybe different with other brokers] Demo accounts are NOT, NOT created...
Hello, how can I set an Text Label in front of an Indicator Buffer. I only know how I can make a fixed position in pixels but I want to fit it on the value of my indicator buffer. ObjectCreate("Kgu_Label",OBJ_LABEL,windowIndex,0,0); ObjectSetText("Kgu_Label","Kgu",12,"Tahoma",Lime); How can I...
New article Universal Regression Model for Market Price Prediction is published at mql5.com: The market price is formed out of a stable balance between demand and supply which, in turn, depend on a variety of economic, political and psychological factors. Differences in nature as well as causes of...
[Deleted]
Hi guys, I'm writing an EA that looks for a Stochastic cross as 1st trigger, then looks for a gap between a 10 and 30 EMA as a 2nd trigger. I have this code working ok. finally it qualifies the Schaff indicator and this is where I'm having a few issues. Note: this is for a long trade only The buy
[Deleted]
Hello, how can I go, as a sample in a 1 minute chart back to the 18 december 2010 at 3:25 p.m. without scrolling? Is there a possibility to determine an exact time and go directly to this point. This would help me a lot and save a lot of scrolling time thanks in advance wunderblume
I ran an Optimization a couple of days ago, it had 385 runs, when it had finished I ran the best result on visual mode to see what the trades looked like. The end result was very much different to that given in the Optimization . . so I ran the single run again but this time with Visual mode...
Hi, I would like to get the last trades profit and loss that my expert had, how can I do that? Thanks.
Hi all, I am having trouble with my EA closing single trade positions. If I have more than 1 trade open the EA works just fine and closes trades when a close signal is generated. However, if there is only 1 trade open, the EA does not close the trade no matter how many times the close signal is...