MQL4 and MetaTrader 4 - page 1015

#property indicator_chart_window #property indicator_buffers 6 #property indicator_color1 Aquamarine #property indicator_style1 3 // 'Arrow' #property indicator_level1 233 // SOLID UP Arrow #property indicator_width1 5 #property indicator_color2 HotPink #property indicator_style2 3 // 'Arrow'...
/*Hello to allHope you had a good weekend. I study on my weekend, then tried a different approach. But I stalled out with error described as:  '(' function definition unexpected. Same error for both user-defined function "Close_Open_Sell" and "Close_Open_Buy".I'll show the code below with "<<<<<<<"...
[Deleted]
Hello, I downloaded MT 4 and it looks like a mountain to climb to learn how to write EAs. Is there a good manual of the language with examples? If someone has time, what is the complete EA look like to backtest a very simple system like: ----- condition: close of this bar > close of previous bar If...
[Deleted]
Hi, I'm coding an EA that opens two limit orders at the same time but which then closes them using different logic. One of the orders ( the first in the logic ) is being handled fine. The second order is not being modified as per the logic I'm trying to apply to it and I'm getting the errors noted...
[Deleted]
Dear All, My MQL skills is too limited so please help and advice. My EA uses EachTick as a signal mode. There're always Three predefined zones as following: double Level_CC = Close[0]; // The current pricedouble Level_HH, Level_HL;  // Calculated limits of the higher zone (ZoneH)double Level_MH,...
[Deleted]
Dear all I have searched from this website and google but I still confuse about the use of this three types of file (include, library, and script). Can anybody explain further what is the purpose of them? How will the traders use them for system design? can these three types of files used by...
New article Money-Making Algorithms Employing Trailing Stop is published: This article's objective is to study profitability of algorithms with different entries into trades and exits using trailing stop. Entry types to be used are random entry and reverse entry. Stop orders to be used are trailing...
I read a couple of points on an advertised EA, regarding brokers and robots. It says something like this: 1. brokers lose if you win. that is why they frown on very profitable robots. >>>my thought. dont they make money on spreads instead? the loser is the buyer/seller at the other end, not the
  iHighest/iLowest  (14   1 2)
Hello I would like to use the iHighest in my study and would like to know if this statement is valid please. double bMaxHigh = iHigh[iHighest(NULL, PERIOD_H1, MODE_HIGH, 10, 1)];if (SellExists && Low[1] > bMaxHigh) {    CloseThisLoser(); } Thank you kindly.
hi, i am planning to embark on a project that would attempt to build correlation between how an indicator behaves just prior a breakout of a certain value. For example, how would a bollinger band (or macd or RSI..it can be anything) behave in t-1, t-2, t-3, when i know that within t+15, the price...
Hello guys. I am quite bad with date and time. Basically I need to know if yesterday the high was made before the low of the day and the other way round. From the actual day I need to jump back to yesterday and retrieve the high with its bar shift and low of the day with its bar shift and compare
At the end of may I got an email of my broker to update my MT-client because there will be an server-Update on June 1th. Since this day I have a lot of problems with sending orders to my broker. Every second trade, there is the message cannot login [No connection] in the log. My broker says, it must
[Deleted]
Does anyone is aware of any script or small program that can be used to save an incoming email ( Yahoo, Gmail, etc...) as a text file in Metarder exper/file location?
[Deleted]
(http://www.metaquotes.net/files/oanda/mt4setup.exe) Hasn't been working all day (at the very least). Oanda claims they have contacted MetaQuotes to fix the issues. Does anyone have the .exe for MT4 Oanda that they could post here? Jesus MetaQuotes....FIX THE LINK.
[Deleted]
Hi Friends from all over the globe......... I have this great and unbelievable indicator called "Damiani_volatmeter v3.2" which I am using with the following values; Vis_atr 24 Vis_std 5 Sed_atr 24 Sed_std 42 Threshold_level 1.65 lag_supressor...
[Deleted]
Hello everyone, I tried to sort out this by myself, but didnt succeed... the problem is that I always receive zig zag indicator value as "0". Below this is all the code I have: #property copyright "" #property link "" //ZIG ZAG parameters extern int ExtDepth=3; extern int ExtDeviation=3; extern...
I already have 2 coordinates that I can get with the ObjectGet() function. And I also have the scale. In the end I have 2 coordinates and the scale. How can I get a 3rd coordinate of the OBJ_ELLIPSE with these data? Thanks.
I want to calculate the sum of the absolute price change: this line works for 1 single bar: ExtMapBuffer0[i]=MathAbs(Close[i]-Close[i+1]) but to do it over several bars I guess I need to use a loop (with an adjustable window), any suggestions please? int start() { int limit; int counted_bars=
[Deleted]
  creating a panel  (7)
Hi all, I am new to forum and I have a question. When user runs my code, I want that a panel which contains some textboxes and buttons will show up. Is this possible? If so, where should I design the layout of the panel. My only aim is that, I need to get some parameters from the user and somehow I
I added this part of code, but does not work, all the others if it works, OK. int iHigh20H1 = iHighest(NULL,PERIOD_M15,MODE_HIGH,20,1); double highestPrice = iHigh(NULL,PERIOD_M15, iHigh20H1); if (highestPrice < Bid) int iLow20H1 = iLowest(NULL,PERIOD_M15,MODE_LOW,20...
[Deleted]
Hello, How to exit properly from a EA? Regards, Pierre8r
  Buy, sell or hold?  (93   1 2 3 4 5 ... 9 10)
I would like to ask traders what they would do in different price patterns and why. Here is the first example: Removed information about the pair, the timeframe, and the price itself. So, what do we do here: sell, buy, or nothing? And why? If indicator readings are needed, I will add them
[Deleted]
Hello, Is there a MQL4 EA skeleton ? I mean a EA with log, error handling, money management , etc. already implemented ? Strategies are not coded, but everything else yes. Regards, Pierre8r
[Deleted]
Hi every body. Is it possible to conditioncalculation of indicator formula for different TIMEFRAM ? Forexample, if the TIMEFRAME is WEEKLY – compare average 5 to 13, if the TIMEFRAMEis DAILY compare average 5 to 26 and so on ? Thank you,
How can you change it so the default chart is not black and green. I am forever changing the charts to a custom setting and would like to see it the default for new charts, and when backtesting too. Is that possible?
[Deleted]
why i can not login my live account with the MT4 on android?? please help me.
[Deleted]
Hi, I`m new to the forum and am wondering if there are a few people here that have experience with both ninjascript and MQL4? If so can you please comment on which you think is best and why? As I`m interested in learning one or the other to be able to program my own automated trading strategies. I...
Wondering if there is some kind of problem in the code base publishing process somewhere. I posted a code for publishing on 7/10/2012 and only get error "404 The page you have requested does not exist" when I try the link from my profile back to where the post is supposed to be ( https://www.mql5...
So it appears I may have triggered a bug in the Fibo's in MT4 (Build 432) and wonder if one of you can tell me how to undo what I did short of reinstalling. Or alternatively how I can get all my current settings and charts over to a new copy and leave the defective fib setting behind Here is what I...
[Deleted]
What would be the way to calculate the n-th percentile of an array of data in mql4? I know I probably need to sort the array, but then what? Thanks