Download MetaTrader 5

MQL4 and MetaTrader 4 - page 695

To post a new topic, please log in or register
Hi all, I have been working on a simple support/resistance EA. The EA places a buy or sell order when the price meets the support/resistance line and the preceeding bar meets certain criteria. The problem I have is that if I close out the position (for whatever reason), the EA creates another...
Does anyone know how to make the pip values appear at the 0.0, 0.236, 0.382, 0.5, 0.618, 1.0, 1.618, 2.618, & 4.236 levels in the fibo levels by editing the level and description?
So... It turns out that I cannot place anything else but TEXT (aka LABEL) with coordinates relative to window.... I had an idea for a graphic representation of signal meter that has do to with triangles -- got all exited - sketched out all the trigonometrical calculations - set down to code and it...
hi forum, i use an indicator which is named "o-bo trendbars". maybe some of you know it. the problem is that i only got a decompiled version of it and it's very hard for me to understand how it works. i wanted to make a small indicator which prints arrows everytime the color the the trendbars...
Can anyone tell me if the opening price, lower price, Higher price in a chart of any period BID price or ASK prices? TIA
Good afternoon, I am having problems interpretating fractals because the indicator does not behave as I have read it should. This is what I though a fractal was, and it should be componed with 5 bars, right? Instead, MT4 is drawing fractals everywhere, not componed by 5 bars or any pattern that...
I would like to change following conditions so that it start trading instead of stop trading ... it should only start trading 5 min after high impact, can anyone help? fex. if NewsRatings[i] == 3 && TimeCurrent() <= AfterNews return(0); bool News() {   if (AvoidNews)      {...
I'm trying to code an EA (using some already made codes) which does the following: Opens two pending orders, a sell stop and a buy stop, at a specific time (in this case 23:00), both with an SL and a TP.Expires the pending order at a certain time (for example at 10:00).If two trades are opened and...
  Chart Removal (2)
How is a chart removed from the chart tabs? I've recently decided to work with some charts I hadn't worked with before and cease working with the GBPUSD,M1 chart for the time being. I've closed the chart and gone into File - Open Deleted - Remove to remove it but whenever I turn my computer off...
Is there a way I can get my trade buy and sell signals to automatically show arrows above and below price when I get a signal? Simple example: Stochastics is over 80, ADX is over 60 I will then automatically get an arrow above price on the date in which the sell signal occured. Thanks
Hello, i'd like to start MT4 from an application using CreateProcess. If doing so, my MT4 always pops up with login dialog missing password. When starting from desktop, all is ok. When starting from command line, all is ok. Setting working directory to MT4 folder or not makes no difference: login...
Hi, I've always programmed my mtf-indicator with this loop:    limit=Bars-counted_bars;   for(i=0,y=0;i<limit;i++)   {   if (Time[i]<TimeArray[y]) y++;   ....   } but know I have an indicator which shows a widget for the valid time f.e. the whole day. Therefore I only want the signal on the start of...
Hi, i am new to MT4 and i have a question on expert advisors. when implementing an expert advisor, my program does not seem to be executing trades live despite showing that it would have done so during the backtest. Is there something wrong with the code? Any help will be appreciated! Cheer, JY
Please help me how it works . I have an EA that depends on that system
Hi Besides Hanover's (free) Handy Utility - NumberToStr() - is there any other way to format numbers so that thousands and millions etc are automatically separated by commas, ie. 1,000,000. Handy Utility - NumberToStr() accomplishes said objective but poses problems to lengthy to go into. Thank in...
Hi there! Sorry, I was looking at the forum but have not found an answer... but I think it's a very silly question. I have the next code: switch(Symbol()) { case "EURUSD" : A = 35; Z = 50; break; } Well, this code dont work and i dont know why.... pls i need some help :) note: single...
Hi, has anybody experiences, what is the fastest way of exchanging informations between two different metatrader accounts?? I think through a file it is too slow. The account are on the same pc.
Hello, I have been playing around with an EA I am built and am getting confusing results. I am using Tick by Tick Model Data. My EA trades on 15 min bars. When I backtest over 6 months data, I get excellent results, however it only shows modeling quality of 50.38%. When I backtest over 2 years, the...
I need to subtract, 1 day and 1 hour, from this server time below: 2012.02.10 00:06:53 so that I could obtain the server time below: 2012.02.09 23:06:53How can I do this? any help please appreciated greatly.
If an MT4 broker has a real STP / ECN - is there any way a trader can use an EA to take advantage of price feed, either by logging into 2 VPS or by any other means, which would cause the broker to actually lose money from his winning trades? I remember we had a client running a manipulative EA on...
When I start the build script, it does not write the CSV files to the folder (SEE 3rd Screenshot).The files are empty. I'm sure this is a simple fix for some around here. This is an issue in this article that did not get resolved 2 years ago, please can somebody show me what to do? Thank you!! https...
My EA reads the server time and the currency from a File and then it tries to use the data in my iBraShift() function to get the opening price of a Bar which Shift point at. Here is the code below: string pair=StringSubstr(TYPE,3+u,6);string SEVTIME=StringSubstr(TYPE,144+zp,20); int...
In the process of building an EA, I got a little confused with this question. As I understood it (and please correct me if I'm wrong), 'Volume' is basically the amount of price changes (i.e. incoming ticks) for every bar. One thing I've noticed is that often times, one tick would come in, but volume...
Hello all, Newbie here (bear with me) - I thought there should be some marketinfo constant to return the direction of last price change, I looked into this but could not sort it out: so what would you suggest as code for returning the sign of the last price change (both ask and bid)? I am trying to...
Time ago, I used zigzag values, to reset another indicator value every high/low; Unfortunately the work was lost; every zigzag, the zigzag indicator returned than an zigzag occurred, so the sum on second indicator gone resetted; I don't remember the procedure, the trick or which zigzag indicator I...
Is it possible to find the price of ask and bid say at server time: 2012.02.09 11:17:16 from history? If yes, I would appreciate your help.
Hello, I just registred here to see if anyone could help out with some errors I get when I try to backtest, it is really enoying and stalls things a lot, the error messages I have been getting is Test generator unmatched data error volume limit exeeded . how can I do to be able to backtest again?
I am to profitable…… And have 7 platforms running with this settings. My broker changes the settings of the Expert on all of the platforms ubnight. Each platform have at least 3 of this ' to good' expert running, so it takes a while to restore it to my settings…. Is it possible to Lock settings...
Hi, I had left an open trade last night on WTI crude oil and was filled out for a loss, without placing a stop loss order. I placed a take profit order at 99.45 and the price spiked to 99.49 at 11pm. 02:18:04 '91091933': order #78099179 buy 10.00 US_OIL at 99.17 was modified -> sl: 0.00 tp: 99.45 02...
Is it possible, that an EA can save the Statistics.htm? I code already a PHP to analyse the statistics.htm and make nice graphics. But It's always annoying first manually to safe the Statistic in MT4.