Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1204

To post a new topic, please log in or register
Hey guys, does anyone of you have a reliable trailing stop algorithm you use in your experts(with error handling and optimized - not sending a new OrderModify for each profitincrease) so that I do not have to reinvent the wheel? Would be much appreciated,others might find it useful as well. Thanks a...
I wish to write a system and aim to enter into next years contest for autotrading. Can you recommend a starting template, something that takes into account the competitionrules, something that is well structured and has error catching and logging anddouble checks open positions and counts etc.. I...
Hello everybody, I am new user of metatrador. I want to learn how to test my expert but the data only from august 2006... Is anyone knows where can i download data for the past 5-7 years for metatradorand how i can put it into the program? Thanx!
Does anybody know if a EMA/Envelope (river/Channel) cross-over Alert (indicator)exists? To alert one the moment the 13EMA crosses the (let's say) the 0.05% deviationupper- or lower envelopes. Or maybe be so kind as to share. Thank You
Hello I want to draw a straight trend line object (a Ray) every day from 0800 -- 1600 Hrs on my chart. How can I do this. Thanks in advance. regards, Ali Nasir
I need a EA that follows this trading strategy: http://www.forexfactory.com/BGX.pdf Basic principle is if the 5EMA crosses 20EMA then after price filter of 25 pipsenter trade, IF RSI is above or below 50 according to the cross. Attached is the indicator. I just need it to make live trades. Stop loss...
Does anybody know how to make a script to close more than one order in a singletick?
Is it possible to draw a arrow from an EA at the Bid price much like the functionOrderSend draws an arrow upon successsful order execution? Any help will be appreciated?
  loopy problem (5)
I'm hoping someone can help here. I'll post the code. I can't seem to get the loop working in my code. It only ever wants to run throughthe loop during the last 2 or 3 candles. I've even taken out IndicatorCounted()and used Bars-1. I get the same result. Can anyone help out here? Thanks.
I have been reading the Order functions and I have not found a function that canretrieve the ticket number of a particular order in my list of open orders assumingI do not know their ticket numbers off hand. Let's say I have 3 orders - 1 GBP/USD buy order, 1 EUR/USD sell order and 1 GBP/JPYbuy order...
int live = 22; if(AccountNumber()== live) if(AccountProfit()>AccountMargin()) SendMail(" ", " "+AccountProfit()); } return(0); i would like that thisi is repeating every 30 minutes can someone add line code to do this thanks
Hi guys... I've been killing myself over this piece of script for the last 1 week(yes, one entrie week...) and I still can't find the problem... Can you pleasehelp me? I'm trying to write a small function to close up the one order that'scurrently in the biggest loss (or: the "Least pofitable open...
if some condition in axpert advisor is true does it mean that all other conditions will not be checked at all in that expert advisor or expert advisor is checkingall the time. is it possible that i write more expert advisors and then to attach more than oneat the same chart! i would like that some...
i would like code for closing all my orders if profit is > than margin is it possible that order number can be the only factor that program need to knowto close it. because the number of lots is changing.it is not constant. and then to delete all by and sell limit thanks
I would like to specify certain time periods for certain pairs on which my indicatoris to be used.   For example, if it is placed on the EURUSD, I need tolook at the previous hi's, low's open's closes from 3 HOURS ago, 2 HOURS ago and1 HOUR ago. If the indicator is placed on the GBPUSD then it needs...
Hello All There are many out there who can code complex EA's. Can somebody help me in codingan EA based on the system rules I have. I have everythng written down to the lastdetail. This is a very simple one. I dont mind paying for this effort. Please PM if you are an expert in witing EA's....
Hi, I am trying to create a loop with range of parameter called 'level'. This parameteris type of double. I wrote the following lines: Print("level ",level); if(level == 0.9222 ) { Print("level has been reached"); } This condition is always false even I see that level 0.9222 is being reached...
Can i ask a big favour, i'd need a very simple MT4 indicator drawing histogram onbars (like on braintrend1) when C>H[1] and C<H[1]. Feel somewhat sorry but It does seem at the moment i'm not doing well with the MTsyntax. Thanks who can help Filippo
  Get Tickdata (6)
Hello, is it possible to get the Tick Data which are all receive in the terminal. I would like as in a normal database to call the data´s that all been received, is not possible with the MetaTrader, that´s a absolutly normal Think and must be possible I think?
How can I give my comment area a background color to make it easier to read whenit appears on a chart with bar data behind it??? OR make my Comment text easierto read??? ANY help would be greatly appreciated!!!
Hi, Can someone please help me with the code to detect the arrows placed on the chartfrom this indicator? I tried using iCustom and I can't get it to work. Thanks in advance, T
How do you get the bounding rectangle of and indicator whose property is separate_window?   I need this so I can use a DLL to draw inside the indicator rectangle instead ofthe whole client area of the chart window.
I was using MA crossing for trade entry, looks like its a slow indicator. Can anybodysuggest a faster indicator to use with Expert Advisor?
not the entire background,but the specify area?
Hello, is it possible to get the seconds from the actual bar which ist shown in the chart?If yes with which function? I have tried somthings but always for seconds thereis shown the last seconds from the servertime or zero.
Hi, I tried to draw two moving averages, one from the actual TF and one from the upperTF, but the values in the charts are completly false. In the M1 Chart, must I have for the upper TF (blue line) the same values as fromthe M5 chart (red line), and this isnt so. Have you an explanation, or I have a...
I have struggled with the idea of only getting one order to be placed at a time.I thought that maybe I can simply disable trade once my conditions have been metand my order placed. Can anyone help me here? What might that look like if I simplywant to disable the EA after the order is placed? I also...
Do you know that there is an easy way to download a source from our Code Base?
I think " if ( alertTag!=Time[0]) " means if not same send mail and alert but I do not understand " alertTag = Time[0]; " meaning at all . alet and send mail is finish.why need this code???? if ( (fasterMAnow > slowerMAnow) && (fasterMAprevious < slowerMAprevious) && (fasterMAafter >...
Hi. What do you think is the best slippage value in the order command? the metatrader samples show "3", but other people use "5". does it depend on the broker? (response times, delays) if we use slippage 3, it should be +-3, but I never noticed that I get a pricein my favor. if it is a sell,...