MQL4 and MetaTrader 4 - page 1516

[Deleted]
I'm trying to adjust my decimal place from 5 spaces to the right to four places to the right. (not including the JOY's) Any idea on how I do this?
I have a small script that I created. When I drag it to a chart, it only sees via SelectOrder() the trades for that specific chart. Is there a way to select all orders regardless of the chart and pair globally? I am just using a for loop to get all orders: for (int i=0; i<=OrdersTotal(); i++){if...
[Deleted]
I need help adjusting this EA. Currently it enters using market order. Would like to adjust buy entry as stop of last (n) bar high and adjust closing order as last (n) bar low after trigger. Also would like to adjust sell entry as stop of last (n) bar low and adjust closing order as last (n) bar...
[Deleted]
I've imported the VKW bands and IBS into my MT and they appear in my EA list, however, when i attempt to drag them into my sheet, they will not attach. Did i miss a step? am i not doing something properly
[Deleted]
  MQL4 Book error  (4)
Hi, The CHM file error, rebuild it please! Thanks!
On the website of the Automated Trading Championship 2008,an article Reporting the Eleventh Week (8-14 December) has been published. The 11th week of the Championship is over. The week brought us a new record: The EA of Participant Liliput reached the Equity value of $180 000. This allowed him to...
Hello. I've written some code using FileOpen(), FileWrite(), FileFlush() and FileClose(). However, they don't seem to be working the way I expect them to. First of all I have an EA I've called TickLogger. It is supposed to log ticks. I've added this code. It is supposed to update two files: a...
[Deleted]
The history centre at metatrader seems to have something wrong with the gbp/usd data as it does not want to download. Could someone provide me with that data file pls. Thanks.
[Deleted]
We can globally enable or disable Expert Advisors by clicking the EA button on the toolbar, but is there a way to do it programmtically? Possibly via a script or even another EA? Another area I'm looking into is the "Allow live trading" checkbox found within Tools->Options. Perhaps there is a way
[Deleted]
good day, peeps. i've just read about mql4. now, i have a question about a code that i got from this site (https://www.mql5.com/en/articles/1481). it's about the martingale system. although i dont intend to use it in live account, i just want to practice with it. here's the code: extern int...
Rule No. 01 : Ranger in green - BUY, red - SELL Rule No. 02 : RangerTrend more than 0 - BUY, less than 0 - SELL Rule No. 03 : Stochastic near 20 cross up - BUY, near 80 cross down - SELL
  Invalid Ticket  (9)
Can someone help me to find out what is wrong? I'm writing an EA to put 2 pending order some pips (a lot more than broker's stoplevel) above and below the opening candle. I'm using the code below to delete theremaining pending order if one of them is triggered. But it doesn't work if thepending...
[Deleted]
I know this is a very basic question.  Somewhere around here I found some code that would simply draw a line on the chart based on a variable.  I thought I saved it to my hard drive, but can't find it now.  The code was for an EA, not an indicator.  Any help?
Hi, The goal of my simple EA is to Print when the Price is very close to the Bollinger Bands. Can someone review if this is correct? My primary doubt is about using Close[0] or Close[1]. How can Close[0] return the closing price of a current bar, when current bar is not yet closed. Thanks, JForex....
  No losing trades  (5)
My EA has no losing trades in 3 months now. For further details and cost please contact me at mt41969@yahoo.co.uk
I was looking for a library that has all matrix funtions, specialy finding the inverse of a matrix
[Deleted]
Over the last couple of days I have set my Meta trader on and just let it do what it does best. I have set up a demo acount and let the EA's do what they do best. I received a $300 profit (in demo) from one and left it going for the rest of the day. After coming back I realized that it was not...
Hi, Does anyone know of any other EA forms dealing with programming from beginner to expert? Any help will be appreciated, Thank you, Robert
[Deleted]
double minLot = MarketInfo(Symbol(), MODE_MINLOT); How do i define a microlot?
Is there a function that can determine what time trading stops on fridays, GMT?
  PNN example  (11   1 2)
Hi I am looking for a mql4 example of a Probability Neural Network . Ive red about it and seen the algorithms but I don't understand them because I am only a programmer. If I see a code example then I might understand it. Thanks in advance L
[Deleted]
Check in this blog www.forexmq4.blogspot.com the UploadingFileTest.mq4. It is fully commented in english and let you to upload a file to a remote web site via FTP. This could help you to check what is doing your expert advisors when you are far away from the PC were they are running. Best regards,...
Hi Does the function MarketInfo( Symbol(), MODE_SPREAD ) query the server or client terminal? When working with a very volatile spread (e.g. AUDNZD) I find I want to average the spread tick by tick, but does that mean I'm making server requests every tick? I'm happy to pester the client terminal,...
Hi, With a specific set up I am getting this graphic with my EA. I think that If I invert the signals I can get a rising curve. Am I wrong? Or this negative results are the spreads? I need to be sure because I will have to pay to do the modifications at my EA. I tested many TP and SL relations and...
[Deleted]
Ok. I looked around and well...as you can tell by the amount of posts...Im new. Is there a link or something that can help me make sense of MQL4 and more importantly Meta Trader? Thank you
Do I need to normalize the following calculated stop loss? double sl = 20 * Point; The documentation states that: The calculated StopLoss and TakeProfit values, as well as open price of pending orders must be normalized with a precision the value of which is stored in the pre-defined variable of...
[Deleted]
I want to declare the following: double positiveInfinity = 1.7e308; double negitiveInfinity = -1.7e-308; double value = 1.1e-134; According to the documentation a double can ranges from -1.7 * e-308 to a positive 1.7 * e308 but when I try double value = 1.1e-134; // '1.1e' - invalid number...
Hi, I am new to MQL. I need to know if I can program to be alerted when the 1HR chart is along the Bollinger Band? Thanks, JForex.
[Deleted]
I tried to write to some code that would find the most frequently occuring price over the last nMinutes, using OHLC as quotes.  I realize now however, that I am in way over my head.  Please help! int i;int PopLength = 100;double Pop;double PriceArray[PopLength][2];double Check; int start(){...
Does anyone have any experience with the EA F.R.E.D.. I am constantly getting the following message: Error Occured : invalid trade volume. I've experimented with the lot size anywhere from 0.01 to 0.1 to 5.0. Nothing seems to work.