MQL4 and MetaTrader 4 - page 757

To post a new topic, please log in or register
  Alert Timing (2)
I want to be alerted when a variable is met in the LAST time frame. Right now I'm alerted at the end of EVERY time frame because this criteria was met sometime in the past intervals. Not sure how else to explain it. Here is the relevant code. if (bCountdown==13) ~~~Should something go here...
Hello all.. I new to this and learning to code... and it will be a long process with no prior back ground in coding.. However, I'm looking at building an e.a. that trades with the candle patterns: I like the Hammer pattern;Inverted Hammer; for example and of course staying with the trend... Anyone...
I noticed in ArrayResize() the formal parameters are defined as such: int ArrayResize(object &array[], int new_size) Is object&array[] a way to allow the passing an array of any type as a refered parameter and why cant I do that in my own functions ? (I tried and it seems mql4 wont recognise object)...
Hello all. I am bit unsure about the right procedure to retrieve data from an higher timeframe. I was trying to read the value of MACD from an higher timeframe, exactly the 4H chart looping through the data index on the 60 Minutes to show with two arrows where the signal started or not. I had a look...
Hi, I'm looking for a code or indicator provding news event capabilities. which support back tests. (Like the kangaroo EA ) thanks.
Does anyone know if there is a maximum number of bars beyond which the default MT4 ZigZag indicator will not re-paint? After spending a full day trying to understand the code for calculating ZigZag, and reading all the posts I can find, I think I am right in saying that the default MT4 indicator can...
Hi all! Yesterday I tried to install MT4 on Windows 2000. But no matter how many times i doubledclicked the setup-file it never started. So i installed it on another computer with XP and copied it to Win2K. (no error here, the setup works fine). when launching the terminal on Win2K, it makes a flash...
I have created an indicator that plots two trendlines; one from the highest point of last month to the highest point of last week and the other from the lowest point of last month to the lowest point of last week. When the lines are drawn, OBJPROP_PRICE1 & OBJPROP_PRICE2 in both instances appear to...
Hello, Does anybody have an easy formula to calculate swaps? I'm trying to explain it to someone with no avail. Thanks
Is it true that T/P (and limit order) always executed rather than S/L (and stop order) while GAP happen? I experience the same issue, TP executed on requested price while there is no price available at time cause by GAP after the weekend opening, But on the other time my S/L was not executed on...
I have been writing EA's for about a year in FXCM's strategy trader. I am new to Mql4. I am trying to duplicate a function I have in my Strategy trader EA, which is to specify a close order (fill or kill) in the total lot volume of open trades in the currency pair chart to which the EA is...
I just started using this indicator and noticed USD/CAD does not have any data on the 30 minute and 1 hr. charts.All the other pairs work fine and the loonie also is OK in the other time frames. I was wondering if anybody else had a similar problem
Hi experts, I want to see high value and low value of current candle. I know MT4 already show Open, High, Low, Close value (OHLC) on the left corner but it's too small and is not customized. I would like to see the High value on the top right corner and low value in bottom right corner. I am an...
I am testing my EA on OANDA MetaTrader Broker - Demo account. My ordersend for a buy signal is below. I do not have any problem with the signal execution. The only problem I have is the ordercomment(). As you could see my comment says "MY EA". However, when I print it I get a different comment : "...
New article Limitless Opportunities with MetaTrader 5 and MQL5 is published: In this article, I would like to give an example of what a trader's program can be like as well as what results can be achieved in 9 months, having started to learn MQL5 from scratch. This example will also show how...
hi can any one help me to how i m create a candelstick ea just simple candelstick no any indicator when fullbody candel that works i m attach a chart lets see and my english is too poor
Sorry it sounds so simple but I'd just like to see some sample code - then play around. (Any sample code for dealing with 'objects' would be great.) I just want to place a horizontal line as my own trailing stop. I guess I want to create an object then continually modify. [when I use the search...
I am just getting into backtesting now and writing my first script to try to make it work. I am wondering if it is possible to test price histories with sub-minute precision. In other words, could I find data somewhere that is second-by-second and be able to have a script that trades based on price...
//+------------------------------------------------------------------+//|                                         D1_hi_low_line_on_h1.mq4 |//|                       Copyright ?2010, MetaQuotes Software Corp. |//|                                        http://www.metaquotes.net...
I am using the code below to check a log file. Most of the tickets I would expect to have been closed sometime ago and I would therefore expect the code to take the 'else' route but the FileWrite suggestions otherwise       while (FileIsEnding(My_FileClose_Handle) == FALSE )      {  temp_string =...
Here is code that works on EURJPY but does not generate a signal when applied to other symbols such as EURGBP. Help as to why.
this indicator repaint, i edit i=1 but not showing line.
I'm consistently having problems setting both the 'LINE_WIDTH and LINE_STYLE in the SetIndexStyle function. I'm following the info and examples in the MetaEditor, but.... )< 8( #property indicator_color1 Aqua ....... ....... int init() { SetIndexStyle(0, DRAW_ARROW, STYLE_SOLID, 5, Aqua); //...
  HELP. (2)
Please MQL4 community I need your help about auto trading. Can anybody please help I am new in forex.
Hi, I'm having a problem using series variables in an Expert Advisor. I can't seem to work it out. I know how to do this in an indicator, but things seem to be different in Expert Advisors. If I do something simple like this double myVal[]; int start(){   myVal[0] = 100;      Print(Time[0] + " ,...
Hello, I'm trying to use an iCustom in my EA. The indicator is having 93 extern parameters. I put them all in the iCustom function :     double upgrey=iCustom(Symbol(),0,*"custom inicator's name"*,*..all of the 93 parameters..*,0,0); Of course the *"custom inicator's name"* is the indicator's name...
A friend of mine coded a custom indicator, and gave it to me. It works perfectly well on his PC and other peoples, but not mine. It doesn't give an error or anything, it just doesn't work the way it's supposed to. If anyone can give me advice or pointers on how to get them working properly, that...
FxAutomatedcom
Send us your suggestions on our site on what we should include next in our free downloads!!!
double ffUpperChannelValue;double ffLowerChannelValue;int start(){        //Controls number of Bars   if(Bars < wideChannel)       return;       if(barHasChanged())       setValuesOnBarChange();  //set values for global variables        /*         //EXIT   if(OrdersTotal()>...
If you would like something coded, I can code it for you. Price: If I have little else to do, then I will do it for free. If I am busy then I will ask you for money. (Today on 24/10/2010, I have plenty of time) About me: I currently work as a programmer, I teach programming, I am studying a...