Download MetaTrader 5

MQL4 and MetaTrader 4 - page 684

To post a new topic, please log in or register
i've been doing an EA until now when i realised something simple that seems to be importanthow does an expert advisor work?it only run the code we programmed every tick / price move? or just does it run every new bar come out? or every seconds?
Hi guy, I have a problem and I dont see the solution. I have realized some EAs on a MT4 platform and they run very well together. Then, I realized new EAs on a second MT4 platform and also they run very well together. Then, I decided to put all the EAs in a single MT4 platform, one platform for all...
hi i am looking for the following specific scripts buy at market must have the following input options. 1. lot-size : 0.01 ...... this is not to be a permanant setting. this is a setting that must be numerical. 2. lot-increase ... 0 this setting will be used to increase the lot size if...
Hello someone can help me? I would like to make a simple script that opens a buy when the price breaks up the day before and opening a sell when the price breaks the low of the previous candle. I just want to set the stop loss and take profit, do not want any other control. Thanks
I want my ea work with wpr.And I want it work when previous high is -1 for examle then when it goes -99 buy,or last down is -99 when it goes -1 sell..
Can someone help me with my iMAOnArray? Where I am having problems, is getting my upper and lower indicator lines to print. When I run my ResBuffer array through the iMAOnArray, I do not get any numbers or results. #property copyright "Copyright © 2011, MetaQuotes Software Corp."#property...
double   faster = iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,1), //MODE_MAIN            slower = iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,1), //MODE_SIGNAL            faster_2 = iMACD(NULL,PERIOD_H4,12,26,9,PRICE_CLOSE,MODE_MAIN,1), //MODE_MAIN            slower_2 = iMACD(NULL,PERIOD_H4,12,26,9...
My problem is that I have some EA's that I do not have the mq4 file for. They work very well when the market is trending but VERY bad when it is not. I would like to be able to enable/disable the EA's based on the angle of a moving average. I would also need to be able to close any open or pending...
my ea doesnt work good on straight ups or downs.So I want it to buy at least one hour, for example,later the last buy.
Hello, I'm a newbie here, and know just a little bit about mql4 programming. Therefore, I would like to ask, if is it posibble to make one indicator with two different deviation ? I've got two indicator, and I've check the coding for both of them, they have the same coding, only for one difference...
Since a few days it appears that everytime I want to place a market order or close one, the metatrader tells me that my request is getting done... and there it stays forever. as soon as i click: cancel and repeat the request, the trading context is already in use. so i have to close metatrader and...
Can some one give me the piece of code that i can add to my EA that would allow my EA to trade manually drawn lines, i already have the EA but i would like to add this feature.
  iCustom() (4)
Hi, How do I use the mama-indicator in my EA, e.g what arguments do I enter iCustom????) http://www.greattradingsystems.com/MAMA-metatraderindicator. Thanks
Hello Everyone, I need a quick change to a code that I have and I was wondering if someone could help me. CURRENTLY Right now the code is a modified martingale. Every time the EA goes in the opposite direction, it will add on a new position in the opposite direction. However, if it goes in the...
I am trying to modify a sessions indicator so it only shows on lower time frames and does not clutter up my charts on larger timeframes. I had added just a delete all objects function which works but also ends up deleting trendlines or anything else I add to my chart. Is there a way to cycle...
1. If a many symbol EA is run [on any chart] and begins applying system on many symbols - we get many orders... duh (bear with me :-) Since the EA works 24/7 their will be periods when the 'attached to chart' does not get good frequency of data tics. IE, the EA will be unable to effectively manage...
Hola. Please who can i place one and just one pending order (buy limit or sell limit) when an order is closed(buy or sell) withe the open price of this order closed. The problem that i have is that i m wrote a code but when executing in program my EA place more thane one order. int cnt,hs =...
In this code I want to test what the values are for the Orderprofit but "OrderOpenPrice() - OrderClosePrice()" just shows 0, why?, isn´t these values not avalible in the demo version or what? (The code below is just a simple code with 3 seconds between OrderSend and OrderClose to illustrate the...
Ilan 1.6 Dyn, statement: 24 march 2011.
Hi, I am trying to run some backtest, but I cannot do it because there are several gaps in data in the history center, especially the hole month of 2011 August. How can I get the past data complete and correct? Thanks.
Just over a year has passed since the launch of the Jobs service on mql5.com, and we can draw some conclusions. To date, over 600 jobs have been successfully completed, and new orders appear daily in the Russian and English sections. The freelance service of automated trading system development in...
  Saving Quotes (5)
Hi, I want to save the actual tick data into a csv-file. Every week or month I want to save one csv-file. So in my init-function I will open a new file and every tick I do a FileWrite(handle_tick,TimeToStr(CurTime(),TIME_DATE|TIME_MINUTES|TIME_SECONDS),Bid,Ask); Now I have a few problems /...
Hi I'm not sure how to word this question because there are broad topics. But lets say you want to mark a high and low. Not a high a low as in High[0] etc but as in marking them for drawing trendlines etc. Or perhaps engulfing candles, or tweezertops etc. And remembering them, or something like the...
hi please i need the code of the indicator that gives the trend following on all the TF like the picture thank you
Is there an indicator out there that will display both the bid and ask price on the chart (MT4) instead of just the bid? It would be helpful for me.
  Maximum minimum distance (13   1 2)
Hi everyone, Is there any way to figure out what the maximum minimum distance and/or freezelevel is for a particular broker. The marketinfo properties dont seem to contain this information. Thanks!
I believe I could simply move indicators, like a Stoch curve to another pane by drag&drop in the past doesnt seem to work for me anymore either my MT4 is corrupted or I am missing the correct cursor pre select? any help is much appreciated thanks Dietmar
Hello, This question is not about a specific problem writing mql4 code. It's about knowing what works best for an EA. Suppose I'm going long, I wonder where's best to put the SL, choosing between the low of the last closed bar, or the middle of the last closed bar (in this case the stop would be...
please who can explain this: It is possible that an EA written in MQL4 that was working very well after it must have been coded will later start failing. if so, what was the cause of such thing. Can MQL4 codes Expires? Can a coded system that was exposed in a real market condition to prove its...
hello, how can i add an m120 or h2 inbetween h1 -h4 on the periodicity toolbar ? is this possible ? thanks
1...677678679680681682683684685686687688689690691...1250