Questions tagged [mt4]

MetaTrader 4 is a software platform for manual and automatic trading, including free clients (end-user terminals) for Windows, iPhone, and Android, as well as server-side modules for processing trade transactions, storing and distributing history of quotes, proxy-servers, and administration tools (for brokers).

MetaTrader 4 is a widespread online trading platform designed to provide brokerage services to customers in FOREX Majors, Metals, Commodities, CFD, Indices, Futures and recently even BTC cryptocurrency markets.

The MetaTrader Terminal 4 natively supports a built-in programming language MQL4 and other DLL #import-s, which together allows users to extend the standard functionality with custom scripts, expert advisers (trading robots) and technical indicators.

MetaTrader server-side functionality is also extensible with their proprietary MetaTrader 4 API.

MetaQuotes head of sales, Anthony Papaevagorou, has announced that MetaQuotes no longer intends to issue upgrades to the MetaTrader 4 (MT4) [reported on 2016-11-15]

225 questions
1
vote
1 answer

Dukas Tick Data - Order of magnitude difference issue on quotes

Using the information from Reading data from Dukascopy tick binary file I've implemented my own Dukas tick data feed download library in C#. The above link confirms the data is stored in big endian format, and must be converted. The final answer on…
Hoodlum
  • 327
  • 4
  • 14
1
vote
1 answer

MT4 and website integration

my boss has requested that I make a website which allows people to sign up for forex trading and I'm quite a novice in this area, although I'm an experienced developer. He requested that I look at the MT4 software and I did that, but I don't really…
Christopher Thomas
  • 4,424
  • 4
  • 34
  • 49
1
vote
1 answer

Excel Add-in memory explosion

I wrote a small .NET add in to excel 2007 that read data from external c++ api and display it inside an excel. The task manager shows that I'm having a memory leak (the memory usage is inflate linearly up to 250MB after whitch it throws an "Excel…
tsinik
  • 503
  • 5
  • 11
1
vote
1 answer

MQL4 Can you get the trade volume from the One Click Panel?

Does anyone know if and how you can get the trade volume from the One Click Trade panel on the current chart? I'm putting together some quick trade scripts and would be great to pull the current trade volume or lot size from the one click…
James
  • 557
  • 7
  • 16
1
vote
1 answer

MQL4 - ArrayCopy - Copy a One-dimension Array to a Multidimensional Array Element

I want to copy an array "a", which is an array of doubles, into "as", which is an array of arrays of doubles. Don't know why, but I cant, Either I get compile-time errors or execute-time errors. The code I have is: double a [10]; double as…
Alberto Martín
  • 439
  • 13
  • 26
0
votes
0 answers

how-to create a strategy to check in last 5 candlestick if the sequence is buy, sell, sell, buy, sell and last sell breaksout the previously buy

I am trying to create a simple strategy for mt4 to check if the sequence of candlesticks are: buy, sell, sell, buy, sell and the last sell candlestick breaksout the previously buy candle but it is not working. #property…
0
votes
0 answers

Metatrader4 separate window sin waves indicator

Does anyone know how to Code these sin waves in a separate window for the MT 4 platform? enter image description here
Robert H.
  • 3
  • 3
0
votes
0 answers

Importing M1 Forex data into MT4 History Center and generate M5, M15 and other higher order data

I have imported M1 data from 2000 to 2022 into MT4 and I thought the M5 to MN (monthly) data will be auto-computed based on the M1 data. But they remain empty. How do I get the system to recompute them? thanks
Thomas
  • 766
  • 1
  • 6
  • 11
0
votes
1 answer

Get One Click Trading Lot Size MT4

I want to get lot size from one click trading in MT4, See below image to understand what I am talking about: Using MQL4 Of course Imports: #import "user32.dll" int FindWindowW(string className, string windowName); int FindWindowExW(int…
0
votes
1 answer

code for MT4 which shows daily open and weekly open values as a straight line on the same chart

I write the code below but it doesn't show anything on the chart and i dont know why? #property indicator_chart_window void OnStart() { double weekly_open = iOpen(NULL, PERIOD_W1, 0); double daily_open = iOpen(NULL, PERIOD_D1, 0); //…
0
votes
1 answer

MQL4 MathMax/MathMin with NormalizeDouble anomaly

In an MQL4 EA, using a calculated moving average for a stoploss, I used MathMax and Min to make sure I wasn't too close. The results were a bit off, so I put in a Print() to get me…
0
votes
0 answers

MQL4 ExpertAdvisor OrderSend sometimes opens terminal Order Screen

In my expert advisor that I've written, sometimes my call to OrderSend Opens a window, The one you get in mt4 terminal mode when you right click on a ticket and select modify or delete. I have to manually select to send or cancel the order. It does…
0
votes
0 answers

Parsing MT4 config files

I'm trying to write an install script for an MT4 expert advisor. Part of the installation process includes adding an allowed WebRequest URL. I assume this is saved as a setting in C:\Users\{User ID}\AppData\Roaming\MetaQuotes\Terminal\{Terminal…
Woody1193
  • 7,252
  • 5
  • 40
  • 90
0
votes
1 answer

mql4 envelope EA opens two trades on same bar?

my strategy is based on the envelope indicator : -for a buy order a candle has to close above the envelope line -for a sell order the candle has to close below the envelope line The EA seems to enter trades based on those rules but whenever a candle…
0
votes
0 answers

Way to move mouse pointer and generate a mouse click from a MT4 MQL4 expert adviser?

I need to move the mouse pointer and generate a mouse click from a MT4 MQL4 expert adviser, is this possible and if so how? Wondering if a DLL plugin or some external library might be necessary. Platform is Windows. Thanks
Alex Kerr
  • 956
  • 15
  • 44