MQL4 and MetaTrader 4 - page 698

Please see the screenshot below. The volume indicator is 1. Does it mean only 1 tick executed each candle? However, you can see the candle has open, close and high prices
Hi, I am new here and I have aproblem with the expert advisor and I don't know how to solve it because yesterday it worked but today it don't and I don't know why I hace reinstall it but I haven't resolved the problem. The problem is when I start the EA the screen show a message that metatrater is...
HI i'm trying to programm an EA that places orders at a certain time of the day and close it at another. The EA works but i have error messages (OrderSend error 130 which means wrong stopLoss) but i cannot find where the error is. I've tried several stopLoss points to see if it came from that, but i...
I'm trying to make a new EA with recursive function and every time I back tested it, its always " Meta Trader has stopped working ". I don't know in which part is the problem. I put some of print statements for debugging but I couldn't see it because it crashed. I also couldn't find some output in...
Hello guys, may I ask you one little question: do you split your EA code within multiple files? If yes, how? Can I move implementation into .mqh files and include them? I am a C/C++ programmer but I'm quite not sure what to do in this MetaEditor... 
I'm fairly new to EA coding but i am completely stumpped here.... I have no errors in my code, no syntax errors, nothing. EA works as it should perfectly when i attach to a demo account forward testing. But it does nothing in the strategy tester! I have tried other EAs (not built by me) in the...
Does anyone here ever bought Rangemasterea? I found the video youtobe, EA seems to look good and follow trends, I also see a real account of their website some good results. if it is nothing to buy, please review here, if EA they really profitable? because I need to know before buying. Thank You.
Hello everyone, help please !!! I'm developing an Expert Adviser on MetaTrader 4. I set the take profit and stop lost at 50 pips. The observation made in the testes with a volume of 0.1 for example, take profit profit gives me 28 euro while a stop lost takes me -38 euro. So what I would like is to...
Hi, I just wrote a little script for a speed test : //+------------------------------------------------------------------+ //| SpeedTest.mq4 | //| Copyright 2014, MetaQuotes Software Corp. | //|
Hi I have 2 buffers exactly the same except one is LOWER_MODE and the other is UPPER_MODE Alow() works fine while Bhigh() creates Meta Editor errors 'B' - some operator expected    ABCDtrade.mq4    116    7 expression has no effect    ABCDtrade.mq4    116    11 possible use of uninitialized variable...
Breaking: Alpari UK shuts down its doors http://www.atozforex.com/news/breaking-alpari-uk-shuts-doors/ #forex #breaking #news
Hi all,  after days trying to debug this error I finally come here to ask for your help.  I am developing two EAs that have a file in common. This file has a class which is an Expert Advisor base I wrote with typical functions such as TradeOpen(), TradeClose(), CheckNewBar(), etc. I explain this...
I have a free data sample of DAX30 data from TickData. The data is in csv format and the first three columns of 'tick' data are date, time, price.  Is anyone able to give me some advice on how to convert this into a readable format for use within Metatrader History Center???? Thanks  Tim 
Below is the error screenshot. Who knows the root cause and how to fix it?    
Why would FoundFirst always be equal the Low fractal and never update if a high fractal gets updated on this ZigZag scan... int FoundHigh= 0 ; int FoundLow= 0 ; double FoundFirst= 0 ; int k= 0 ; while (FoundHigh<= 2 && FoundLow<= 2 ) // LAST x ZIGZAG FRACTALS {
I still have not figured out why metaeditor keeps crashing. I do nothing other than try to compile a file and it tells me that I can not save it is write protected. So I have to rename it and then I can compile it. Sometimes all I have to do is hit the space key and I have to get it unlocked by...
Hello, Today I was very surprised that my EA opened a new trade after I closed the order. This did happen because the open and the close were in the same candle, which caused a positive signal of the function "IsNewCandle()". I think the best way to fix this problem is to add a volume-check in the...
Hello, I have several horizontal lines and trendlines in a chart and I want to check if any of them is within a defined price range. Right now I check all objects in a loop if any of them is between my price levels. Is there another/easier possibility to check this without controlling all objects in...
Hello anyone, I am having a problem in MT4 where I try to call OrderTicket() to determine the ticket number for any possible open orders. the return from the OrderTicket() call is a ticket number from the last closed order.  I can see on the screen that that particular ticket number has been closed...
Dear all When I added this indicator to chart, MT4 keeped looping all the time!  (indicator "pha_1" ran normally) What's the problem? Thanks for your help!   wing  #property indicator_chart_window#property indicator_buffers 2#property indicator_color1 SandyBrown#property indicator_color2...
Hello, I have script written for a trailing stoploss reversal program.  I would like to try the inverse of this program.  SELL when it says BUY and vise a versa.  I am getting an error code 130 with the following errors. Help would be greatly appreciated.
I want to check for valid entrys on previous 2 candles and current f.ex. -------- 3 | 1.86 -------- 2 | 1.87 -------- 1 | 1.88  = new candle -------- Buy if candle 3 < as candle 2 and new candle is higher as candle 2 1x blue 2x red = sell the new bar is calculated by new bar open price which should...
[Deleted]
Hi, I am trying to create my first indicator. I copied an indicator from the MQL4 book (see below). This indicator compiles without any errors. However, when I remove the string "//" from this file, I get this error: (1,1)  : error 356: event handling function not found How is it possible for an...
Can users change the default lot size for one-click trading and/or the order popup window?  it always seems to be 1.00 in almost all cases.
[Deleted]
  runtime error  (1)
 I got a runtime error: 2015.01.14 22:11:40.134    cannot load 'C:\Users\Monika\AppData\Roaming\MetaQuotes\Terminal\......\MQL4\Libraries\stdlib.ex4' what can i do? schiller
Hi, I'm trying to write a function in MQL4 which will calculate my total profit (could be negative, which would mean loss) at a given price. In other words, if I have an open Buy order at price P1 then: my profit at P2 would be ((P2-P1) * volume) - but that's in most simplistic terms, now I need to...
I would like to draw a Trend (cf: the red line in the screenshot) which starts on the current bar and ends on the next new bar. I am using this function: ObjectCreate( trendName, OBJ_TREND,window, timeStart, priceStart, timeStop, priceStop); I have probleme of getting the timeStop value. On Forex,...
Before the new script  starts to run, there are 13 closed orders already. All the 13 orders have absolutely different magic numbers from the one of the new script. However, in the script I wrongly initialize  histroyPOS=0. I found a bug after the new script opened an order and closed it soon in my...
Hello Guys, I heard while ago that mql4 offers programmers to make EA and Custom Indicators. When I search the site I haven't found anything. I'll provide the details of EA once I am on the appropriate path. Could you help find a programmer through MQL4 because I don't want to pay anyone while there...
  Indicator error  (2)
Hi I have downloaded the attached indicator and it has been working for a while, but today when i was looking at the file inside MetaEditor and i compiled it (without changing anything) I got this errors?? and the EA stopped to work. This is the error part of the indicator. void...