Download MetaTrader 5

MQL4 and MetaTrader 4 - page 621

To post a new topic, please log in or register
  Adding Code (4)
Hello, I am very new on this programme and Want to know how to type filping chart #property show_inputs#import "user32.dll"   int GetParent(int hWnd);   int SendMessageA(int hWnd, int Msg, int wParam, int lParam);#import#define WM_MDINEXT   548extern int SlideShowSeconds = 5;void start(){...
Hi, I am new nere, so the quastion might be not new. Anyway I would like to know how to exchange data between MQL4 and other process, for example MATLAB? I would like to recode 1 minute (tick) real data and save to a disk file in MQL4 and process it in Matlab, and then to give order from Matlab to...
I use FXOpen as my broker and have had some strange results from my EA this past week. To cut a long story short I discovered that trading on Live trading on an ECN account vs results of back test for the same period (one week only) on the same ECN Live account and back test for the same period...
Hi all Just checking back say hi. I've laps in my learning of mql and finally made the time study some more Anyhow,just stopping in to say Hi and hope I can contribute more to the forums Happy hacking
Hi, how do I change the properties of a chart, things line line colour of GBPUSD in code? Thanks Steve
Hello, I can draw a chart in the indicator window with this code: #property indicator_separate_window#property indicator_buffers 1#property indicator_color1 Reddouble Buff[], myData[10000];int init() {      SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,1,Red);   SetIndexBuffer(0,Buff);   return(0);}int...
Hi, I've noticed a very strange thing happening when backtesting my EA that call a indicator I've wrote using icustom. below is the chart i have backtested 2nd is the chart with the same indicator called from the EA If you have noticed the green line are different . how can it be the 2 same...
Hellow. When I try to enter a purchase order to market I have no problem, but when I try to enter a market order to sell does not do anything.The code is the same for the 2 orders. Why is this happening? This is the code: OrderSend(Symbol(),OP_BUY,apuesta,Ask,20,40,Green); // execute correctly...
i know how to select last open order and it is possible like this: OrderSelect(OrdersTotal()-1,SELECT_BY_POS); or OrderSelect(LastTicket,SELECT_BY_TICKET); but the problem is: i have many pending orders and i can only get the last order information by its ticket i want to get the order...
for ( int i = 0; i < 96; i++ ){ //Loop1 if ( ( TimeHour( Time[i] ) == intValue ) && ( TimeMinute( Time[i] ) == 0 ) ) { for ( int j = i + 1 ; j < 576; j++ ){ //Loop2 if ( TimeHour( Time[j] ) == intValue ) { count += 1; if ( count...
I would like to know whether there is a mt4 indicator to count the number of bull and bear candles seperately in a chart for a given time intervel. Eg: I want to know how many candles were bulls or bears in the last 2 hour period in a 5 minutes chart. Regards Noufel
Hi Guys, I am new to writing experts and need some help, I am trying to get the standard deviation for closing prices from a EURUSD 1min chart but I do not understand what the MA parameters are used for or what to set them to! Here is what I have so far: Array of iClose values for EURUSD from a...
Good morning, I need help understanding how I can close a deal have elapsed for example 20 minutes since it opened, can anyone help me?. thanks
Hello :-) I would like to allow multiple instances of my indicator to share a variable -if applied to different charts-. Is that possible without using global variables? Thank you!
Why must there be a minimum age of 16 for the MQL5 Championship? I am 15 Years old and have 2 years experience programming EAs. Why can't I participate? Would it be a bad idea to lie about my age when applying for the 2012 competition? Would it change things if I turn 16 by the time the...
Dear Gentlemen,, I am a new trader that was trying to use the (ROC) Rate of change indicator in Meta trader 4 but I did not have any luck finding it in the indicator list, kindly if any one knows a tutorial on how to insert it or as an add on or where I can find it I will be thankful ...........
Which of these two MarketInfo() options should be considered when opening, closing and modifying orders?
Hey friends, I am a newbie to study coding. This day I find a interesting indicator of draw high/low lines,"HighLowBands.mq4".    i=Bars-LookBackPeriod+1;   if(counted_bars>LookBackPeriod-1) i=Bars-counted_bars-1;   while(i>=0)     {      UBBuffer[i]=High[iHighest(NULL,0,MODE_HIGH,LookBackPeriod...
Dear all, I need to solve next problem. I would like to automate some data transfer form mt4 to mt4 in different pc's. So I decide to use SendMail() function. I take the data what I need and transform it in string (one very long string about 1000 characters), after I send this data to my email,...
Hi, I am doing an automatic system and I need to test it. I can do it in 1, 5, 30, etc minutes candles, but I can´t to test it in range candles, because the metatrader is not able to do in this kind of candles. Do you know if is possible to insert this kind of candles in the strategy tester? How...
Does it make sense to anyone that an EA that is supposed to stop and reverse whenever the trailing stop is hit would do so several times within a minute every minute whether the trailing stop is set to trail at 30 pips, 300 pips, or even 3000 pips on the GBP/JPY H4 timeframe? I have an EA that's...
Hi To search via time or bar numbers I use this for example: for(i=2;i<3;i++){ I am trying the use the same type of code against price, to search for the nearest pivot line to the current price but I cant seem to get it to work, here is the code is was using to search for pivot lines below the Bid...
Hello, When I am using MT4 in online mode with my current broker (Oanda) I can use 2 digit lot sizes (e.g: 0.11) but if I do backwards testing on a weekend where I have to use the offline mode in order to be able to use the weekday spreads and not the week-end spreads for the whole testing I can...
Hi, if anyone out there could help me out on how to import data from TrueFX to the MT4 from Pepperstone, will be much appreciated.Thanks.
Hi, I have been testing a strategy based on MACD and two moving averages 20 and 200 for a couple days now. I get steady positive results when back testing but the last transaction "Close at Stop" is always a huge negative. Any ideas as to why this might be happening? Thank you D.
Hi all, i would like to show MACD on another Currency pair,but i meet some problem when i try to do it. For example,please see the below pic,the current pair is EURUSD,and the MACD is belong to EURGBP,apparently the MACD is wrong. But if i change the currency pair to EURGBP, the MACD looks good....
  Needs help (4)
Needs beta testers for our new scripts at fxautomated.com
Hello I have an EA that much of it I learnt to code myself, but for one part I had to get a coder to write as it was a little out of my depth here is the code below, it dowloads pivots from my webserver that are provided by my broker: bool  PivotsTromTheFile(int lev){        static int prewTime...
I need an Expert Advisor that will work with a confirmed trend (Moving Averages) Could be the signal. I would want this signal working with the RSI and it needs to be adjustable within the .mqh So I can adjust some settings if I need to. espacially in india. Plz contact at aazerjah@yahoo.com
Hi, I have a MT4 e-mail alert but it only sends e-mail when I logged in the MT4. Is there any way to get the alert mails sent even when I'm offline ? Thanks.