MQL4 and MetaTrader 4 - page 1470

Question 1 : Howto initialise for example an external variables #property show_inputs extern string start_date="2009.01.20"; extern string finish_date="2009.01.27"; How change those dates automaticaly to start_ date = todays date and finish_date to start_date + 1 day. Trieed todo it in the...
I had a BUY on AUD/USD with lot size 0.01, the minimum. I was earning swaps on this order. The order close without my knowledge. My expert advisors was on monitoring mode ONLY and not in automatic trade mode. I was trading manually because of all the new rules being added by NFA. Anyhow, the BUY...
I've got two copies of MetaTrader, one on build 220 and one on build 223. If I create an EA using build 220, the .ex4 file works fine on build 220 of MT4 but causes build 223 to crash. And, similarly, if I create an EA using build 223, then the .ex4 file works fine on build 223 but crashes build 220...
hi please help me please explain about iStochastic() function . may introduce any perfect reference (web site, ... )that explain iStochastic() function ? Thanks
Hi, Can anyone put me onto an indicator that will place lines on the chart to show the high and low of a range between certain times. Hope someone can help. Regards, KeithN.
Hi. I found trouble to install the last MetaTrader4 build 224, ON the previous build 220. If i choose the folder where to install the new (224) build, "overwriting" the past (220) the setup just install, but when i launch the program i get a crash like the one i've pasted below. I remember that i've...
Hi I have been trying to use a combination of indicators to eventually make an EA but I would like to see if I can just get an alert and a arror when there is a divergence of two indicators. Two indicators= Relative Strength Index Closing Period of 4 diverges with On Balance Volume Close on...
[Deleted]
Hi I understand that maximum allowed dimensions are 4 inmulti-dimensional array. But, what is the maximum number of elements allowed in each dimensionof multi-dimensional array? Thanks
hello to everyone giuseppe I just registered on this forum.  I would like someone to help me solve my problem  I would say to my EA to close the position at the opening of the next bar only if the position is in profit. I do not know how to do  can someone help me?
I have read articles regarding a null bar and also seen metion of a zero bar, what are they? Are they one in the same, do they arise from using historical data in an indicator into an EA? There is no mention of it in the documentation and seems to pass as common knowledge, any help would be
  % Wins  (4)
Is there a way to find your percent wins in an optimization runs? ---Tom
[Deleted]
Please I have this program that runs and draws the 3 lines well. But the other program below does not draw the 2 lines. The idea was to use the array as a variable inside start function. I have placed also as a static array and the same, does not draw the line. The idea is to use arrays declared...
[Deleted]
My trades comments are quite often completed by the server with "Started/gap", "Closed/gap", "tp/gap" etc annotations It means that the orders are not realized according to the initial specifications of zero slippage tolerence that I always apply to my ordersend() functions. In practice its a pip or...
Hello I am wondering if it is possible to preform logic tests on currency pairs other than the one shown in the chart? For instance if you had an EA running on the EUR/USD, could you check if the EURGBP was above the 20MA, or possibly a custom indicator. I have seen the MarketInfo()  command, but I...
[Deleted]
New User - Chart times top as of 9/08/09 Thanks in advance
[Deleted]
Hello, I have been trying to program my own EA. Since I have been programming only for a month or so, I cant figure out, what Im doing wrong. Its a very simple EA, which should detect a candlestick pattern "hammer" and put a pending order with 1 day expiration. It already works as an indicator and...
[Deleted]
  Nuisance Alerts  (2)
I get an alert everytime the price changes even one pip. How can I silence this? This is my first time in the forum and I may have missed something.Thanks. vk747
[Deleted]
Just curious if there are any plans for MQ4 to support classes/struct/OOP?
Recently made my computer much safer to reject viruses and trojans --->I made limited account and add that special account special restriction policy rules: To only run executable in ONLY one directory(It's directory where I have all priveleges). In that directory I have MT4 installed for doing...
[Deleted]
Hi I intend to develop on EA for multiple pairs and attach toone pair. I can refer the candles that native pair. Is there a way that I canrefer to the candles of other pairs than attached pair? Please advise. Thanks
[Deleted]
ciao guys first at all thanks in advance for help. i am trying to prepare my personal EA but i have a doubt : with command ordertotal() it's possible to specify the number of pending orders but ..... total orders.... . In this way if I use my EA on some differents cross i cant specify to...
Not being a programmer...i've tried to figure out how to make the EA only do one trade per signal....but not having any progress. I want it to close a trade by either SL, TP, or TS. Then wait for the reverse signal. But it would close the trade and put the same side trade in if the singal was still...
hi please help me how i can specify current timeframe with any method (function, .... ) that i active my EA ? same as Symbol() function that specify current Symbol that active my EA. thanks
Hello Im trying to use the 'Slope Direction Line' indicator in an EA and Im not sure how to tell when the color of the line has changed. Im using the following code to access the indicator -  double SDL=iCustom(Symbol(),0,"Slope Direction Line",80,3,0); but im not sure of the logic required to...
[Deleted]
Hi Guys, I have this code that gives a signal the first time a bar crosses a 20 period MA, unfortunately it does it before it crosses, ie, gives a sell signal the bar before it closes below the MA, which is obviously a bar too early. Does anyone know how to fix this problem, the code is attached.
[Deleted]
The English notated version of tradingexpert-1.mq4 does not compile - is this an expert waste of time or what? https://book.mql4.com/samples/expert
[Deleted]
We need good EA or someone who can make this us. We hawe managed accounts, where we use Ea´s Send details me. We can pay good price or good % profits. pnylander@hotmail.com
[Deleted]
I have an EA I had designed by someone awhile ago who I can no longer get ahold of for some reason. Anyways, I need someone to add a few small features to it. Easy 4 and 5 digit broker support. (automatic would be nice but having the user change a setting is acceptable)Mini and micro account support...
[Deleted]
I noticed that the the history database has 1 minute data from 1999 for pairs such as aud/usd, eur/usd etc. When I look at the timeframes such as 15 minutes the data starts from somewhere in 1999. But for 5 minute it starts somewhere in 2005 and for 1 minute from somwehere in 2008. The metatrader...
I have written many MQL4 EAs & Indicators for myself and for my clients. I ama professional EA/indicator coder. If you would like quality written code for your trading system, send me an e-mail:eacoder@hotmail.com
This website uses cookies. Learn more about our Cookies Policy.