Download MetaTrader 5

MQL4 and MetaTrader 4 - page 856

To post a new topic, please log in or register
Hi Guys I have bought a FX system, a bit confused! I have created 40 micro charts 15min 30min 1hr 4hr x 10 currencies By the way, these micro charts in the above profile are not meant to be watched continuously, but are to be ran passively in the background. how do I do this ? I...
Hello All, Is there anyone who can code this indicator to EA.
How to use place an order at the beginning of every second (regardless of price)? Sound simple? But I just cannot figure out how to do it? Should I use date and time functions? How? Thanks in advance!
When I am building the DLL sample provided with meta-trader using Microsoft Visual C++ 2010 professional (building solution as a 32bit DLL), it seems to be working fine on the machine I am compiling it on. But when I move the ex4 file, and the DLL file to a different machine (first machine is a...
Hi Elite Manual Trading System Publish Here
Hi Everybody, is it possible to start the strategy tester of metatrader 4 within a script and to receive all the report results and best configurations (of a GA run) in the code.   Thanks, Martin 
HI, I am looking to put together a stochastic slow and rsi script for automated back testing and trading. Don't know where to start. Thanks robv
Hi, I have written a relatively complicated indicator (1.step haiken ashi calculation, 2.step supertrend). The indicator works correct. Part of indicator listing with changeTrend[] buffer:       changeTrend[i] = 1.40;                 // changeTrend-Buffer for EA application (NOP no...
Hello folks, I have a code to close orders:       TotalOrders = OrdersTotal();      for(int i=TotalOrders-1;i>=0;i--)         {         OrderSelect(i, SELECT_BY_POS);         if(OrderSymbol() != Symbol()) continue;                  bool test = true;         int type   = OrderType();         bool...
Hello, does anybody have the 1-minute history data from Ger30? I need it for at least the last two years. Or where can I get it? Thank you!
If I have opened for example 0.1 Lot of EURUSD and I want close only part of this order (for example 0.01 Lot) and next step will be close the other part of the same order (for example 0.03 Lot) then will I have to pay for the broker SPREAD from each part of closing position or SPREAD will be payed...
Hello Everyone, Can someone help me with this? I want it to enter/exit trades when the lw ma's cross. It works for a few trades at first then get a 402 error in the journal. #define SIGNAL_NONE 0 #define SIGNAL_BUY 1 #define SIGNAL_SELL 2 #define SIGNAL_CLOSEBUY 3 #define SIGNAL_CLOSESELL 4...
  Using libcURL (3)
Has anyone referenced libcURL.dll from MQL4? Could share what it takes to set it up?
  Please help me (14   1 2)
I want to know that Can modify extern Option through pop-up in script extern double margincall = 0; extern double takeprofitprice = 0; I want to know a brake function in expert advisor Please let me know Please answer. sorry, Not proficient in English
Can some one tell how to use iCustom call to expert advisor, I have the attached file Nik_PSAR_2B I want to call it to expert advisor, I don't want to write the code to expert though, I just want to use the iCustom
Hello Folks, I would like to know how I can get the maximum value of let's say five values. MathMax only allows two values. From another post here I've found this code to do three numbers: MathMax(MathMax(A,B),C) But how do I do more than three? Thanks. WorstCases
Hi, I was implementing a trailing stop on an expert. I did it based on an indicator called " BBands_Stop_v2 " (I will post the code below). When a backtest the expert in a visual mode I can see the trailing stop line, but it never works, never closes my positions. I would love if someone could tell...
Hello folks, I'm trying to understand some code. I assume that the comments are written in Cyrillic (Russian). I tried to open the file with several programs (OpenOffice, notepad++ etc), but the Cyrillic characters are not shown right. What do I need to do? The file is AllOrdersControl.mq4 from here...
the error i got in my EA is this '\end_of_program' - ending bracket '}' expected C:\Users\Administrator\Desktop\MIG Trading Station\experts\RAY MA.mq4 (190, 1) i did not know how to solve it below is my EA this my 1st time writing an EA
Hello Folks, I'm quite new to coding, do however manage to write some stuff which works as expected. I need clarification on one thing at this point. When and how to use { } I guess I use way too many brackets, which seems not to hurt anything. But I would like to know if there is a reson to use...
Hello, The following EA based on Moving Average works perfectly on EUR/USD H4 200-6, EUR/USD H4 200-6, EUR/USD, H4 40-6 EUR/USD and AUD/USD H4 200-6. I think that TP would make this EA work better in shorter timeframes EUR'USD 20-6 M15, H1...Could somebody help me to add TP to this code? Thanks,...
hi all, as I'm currently working with an iSAR-Strategy and willing to back test it in the strategycenter, I run in some inconvinience: Comparing the values returned from iSAR(string symbol, int timeframe, double step, double maximum, int shift) once called within an indicator, once called...
Hi, I have programed my EA and it works well, but it takes ages to go into the market. On the trade signal it closes the buy position and opens a sell position (vice versa). Is it possible to open a trade manual and then let the ea contiue with it? The other question I have is: If I let the same EA...
My question is: what is code expression for above situation ?
Hello coders !I am trying to code for accumulating orders in 2D array and unable to get correct results can anyone help me plzthe detail is in attached file please take a lookThanks
The formatted MQL4 code with the aid of the special button facilitates reading andunderstanding. If you want past the MQL4 code into your message on this forum,you can select and copy source code, press MQL4 button and past it . Then press"Insert" and continue to edit your post (or press "Add your...
Dear all, I'm facing the following problem, I need to save some ticks data to develop my strategy, ticks that are coming from my broker through MT4. I tried different way of saving it, it works fine, but whatever way I use to save those ticks (saving them to an array and then writing them to a .CSV...
Hello, I would like to do a couple of things with MT4 but I am not sure if it is doable with the current API: I would like to send myself emails when certain events happen and attach a picture of the graph which triggered the eventI need to keep some graphs up to date on a website so I can see them...
Hello I have this code that I downloaded and use: //+------------------------------------------------------------------+//|                                               Daily High Low.mq4 |//|                                           Copywrong 2005, RonT   |//|                                 http...
hi everyone is there any way to Synchronize the computer time with the servers time? thanks