I was wondering how we can draw histogram on the chart or rather cover the candles with a specific colour. For example I'm trying to cover white candles with the green colour when the white candle is longer than 15 pips. Here is the code I've written and I don't know what's wrong with it. Any ideas?...
By the multiple requests of traders we started development of strategy optimizator, based on "genetic" algorithms. Release date - first of July, 2006.
Best Regards
Lenar
Hi All,
Does anyone please know if there is a way I can download the MQL4 documentation from the website? I can't see any download links. I would like to study the MQL4 language off-line if possible (e.g. whilst travelling). If the website details are unavailable for download are there any books...
[Deleted]
Made a buy/sell signal indicator using Williams %R. Go Long on Solid Green Up Arrow; Close the position on Hollow Green Down Arrow. Go Short on Solid Red Down Arrow; Close the position on Hollow Red Up Arrow. I haven't back or forward tested this yet. This works best with a volatility indicator like
Hi Slawa,
Is the following endless loop code ok?
while(IsStopped=false) { if (Bars<100 or IsConnected=false or IsTradeAllowed=false) return(0); .......do some processing here ie buy/sell conditions, place orders, etc. }
Is it ok to exit program if connection is broken? is this...
How come with the bands indicator, I can adjust the deviation to lets say 1.7 versus 2.0, but when I program the same, it will not recognize a deviation of the bands of 1.7. Instead it reads it at 1. I used the extern double BandsDeviation = 2.0; and then changed it to 1.7, but the programming is...
Hello,
I could not find out what "trade timeout" means. Can I get a trade timeout error message (error # 128) for a market order? Or can I only get trade timeout error message for pending orders?
Can you also please give me an example of when an order "times out"?
Thank you for your help...
[Deleted]
The advisor does not put the Straddle (buy and sell) in at the proper time on InterbankFX charts. It was programmed it to put in a Buy Stop and Sell Stop simotaniously at the TimeAHour, TimeAMin. Can someone help with the problem?? I am willing to give the strategy once fixed I use to one who fixes...
[Deleted]
Which function to use to have the value more high and more low of the 4 first bar one day old can imports the number of bar already made ? Thanks, best regard.
Hi, Here is USDJPY just before its last drop. I tried every indicator I have and none of them could predict the drop. Is anyone here can do that? I just delete the prices from the history (H1 data) changed the TF to 4H and come back to 1H to get this chart. Thanks Eli
Hi Slawa,
Yes, I have read and studied all the possible errors.
But your reference point (http:/docs.mql4.com/trading/errors) you told me to look at still does not specifically say what a "timeout error" is (it just states what i should do if i get the error) i need to understand first what the...
Hi GUys, How can I add script in EA so that it sends an email when ever there is a signal to BUY or SELL.... Thanks Babar
hello. are there any signal indicators that can be used with silver and or gold trading?? thanks
Hi Slawa,
If I try and place an order but order fails due to an execution error, can I resend same order straight away? For example if I get error number 4 (server busy) do i really have to wait "several minutes"? or can i just keep on trying to re-send order until it gets filled?
If I keep on...
Hi Slawa,
Reason I ask about error numbers is that in your moving average and MACD samples, you do not refer to different error messages and do some specific action.
For example, if i get error "trade server is busy", why do i have to wait several minutes before i try to send order again. Why do...
Hi guys, Wondering if anyone can help me out - I'm trying to write an EA that will be attached to the EURUSD chart, but want it occasionally to place a USDCHF trade as well as the EURUSD ones. Is this possible? I tried the following code: OrderSend("USDCHF",OP_BUY,Lots,Ask,3,StopLoss*Point...
I have read many threads but still can not find the indicator for histo_StepMA_Stoch as shown in this picture: http://i73.photobucket.com/albums/i214/moneyline/levels_2.gif Anybody can help. Thanks very very much!
Hi Guys, Can you please tell me how can i calculate the moving average of a moving average which is already on the chart.... Thanks Babar
Hi I have just got metatrader4 and I was wondering with metaeditor is it even remotly possible for it to read/parse emails and then put in the information or would I have to have a program running in unison which would parse the email and then send the information to metatrader If anyone has tried
Hiho! Some issues that give me a lot of concern. I would be very happy if some could answer them: 1. I want to create an EA that opens p. orders at specific day & hour (let's say Sunday opening). How it should look ? (DayOfWeek==0 && Hour()=00 doesnt work). Whatsmore I would like to open position...
Hi Guys, HOw can I amend an EA so that it places only 1 order when the BUY conditions are met....no matter if the position is open for days or even months....at the moment my EA is opening another BUY order when the TP is reached...I want it to wait for the next signal...and not to open another BUY...
Everytime I try to download a MQ4 file it downloads it as a HTM file so I can't put it in my custom indicator list to use on the charts. What am I doing wrong? Thank you in advance!
Whati is your your opinion about eASCTrend system ? (if you dont know about it, please google it)
hello,
Is there a way we can find out if the code took profit or sell at a loss? Is there a function that tells this? I need to find out because my code needs it because i set buysignal to true once a criteria is met. But I cannot set it to false if it takes profit because i dont have a way to...
Could someone help me understand how to code a simple trendline. If I wanted to create a trendline that goes from the high at 0800 to the high at 0900 and extend it out for the rest of the day as it unfolds, what would the code look like? Also, if I wanted to later check if I was above or below that
[Deleted]
I am trying to draw pivot lines on a hourly charts based on a certain time of day and a certain number of hours. For example, at 9am I am trying to draw the R1 and S1 lines for the last 6 hours. I am not sure why my indicator will compile but will not plot anything. Please take a look at it and let...
[Deleted]
I would like to know if anyone here trades the different "news" regularly with some kind of system. I am not asking for the system, but would like to know the which "news" they trade. If your system is mechanical and would like to develop an EA from it, we can work together to develop it. Of course,...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.