Questions tagged [metatrader4]

MetaTrader 4 is an electronic client/server trading platform widely used by online retail foreign exchange speculative traders. Anthony Papaevagorou, head of sales at MetaQuotes, has announced MetaQuotes no longer intends to issue upgrades to the MetaTrader 4 (MT4) [ recently reported on 2016-11-15 ]

MetaTrader 4, also known as MT4, is an electronic trading platform widely used by online retail foreign exchange speculative traders. It was developed by MetaQuotes Software and released in 2005. The software is licensed to foreign exchange brokers who provide the software to their clients.

The software consists of both a client and server component. The server component is run by the broker and the client software is provided to the brokers customers, which use it to see live streaming prices, charts and to place orders as well as manage their account.

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

437 questions
0
votes
1 answer

OrderSend color ignored

Does somebody know why the color arrow isnt get painted in the next order call? OrderSend(symbolName, lotsNumber, bid, slip, 0, takeProfit, coment, Red); Thanks!
JLLMNCHR
  • 1,551
  • 5
  • 24
  • 50
0
votes
1 answer

Open an offline chart in MQL4 using [user32.dll] and [kernel32.dll] Win-API calls

I have the following code to open an offline chart in metatrader 4. But all I could get it to do is open the offline file list. I am not very familiar with windows programming so can someone tell me what am I doing wrong ? #import "user32.dll" …
user994572
  • 139
  • 1
  • 11
0
votes
1 answer

Does ShellExecuteW(...) work only once in MetaTrader 4 or not?

Trying to launch an .exe from MQL4 using ShellExecuteW(). Does this command work only once, or not? #import "shell32.dll" // MQL4-syntax-wrapper-Bo[#import]Container // v-------------- caller-side interface to DLL …
NJK
  • 53
  • 2
  • 8
0
votes
2 answers

MQL5: how do I automatically delete all un-triggered pending orders before placing new orders?

I am working on a Project that requires me to place a BUYSTOP and a SELLSTOP pair of orders and then on the next bar if those orders are not triggered, then delete them and place fresh ones. Here is my code: if(logic == true && OrdersTotal() == 0) …
mmdel
  • 1,279
  • 4
  • 21
  • 30
0
votes
2 answers

MQL4 How To Detect Status During Change of Account (Completed Downloading of Historical Trades)

In MT4, there exists a stage/state: when we switch from AccountA to AccountB, when Connection is established and init() and start() are triggered by MT4; but before the "blinnnggg" (sound) when all the historical/outstanding trades are loaded from…
jlee88my
  • 2,935
  • 21
  • 28
0
votes
1 answer

Metatrader 5 datafeeder

I try to write my own datafeeder for Metatrader 5 using Gateway API. I compiled Gateway API examples, but when I try to run them, my Metatrader test server says: "datafeeder status - offline". It just couldn't see my datafeeder. Does anybody have…
0
votes
1 answer

MT4 export script

The following MQL4 script exports data from MetaTrader to a csv file. Unfortunately ( for me at least ), the order of the data in the generated csv file from 0 to 1000, 0 being the most recent ( present to past ). I want the file to be sorted from…
0
votes
1 answer

Create array of array in mq4

How to create a array of array in mq4? I have a function with this pararameters: double & v1[], double & v2[], double & v3[], double & v4[] I want to create a array where each position has a reference to another array like: double v[]; v[0] =…
Jonny Piazzi
  • 3,684
  • 4
  • 34
  • 81
0
votes
1 answer

MQL4 Total Result from Multi-timeFrame Indicator

Good Evening all, can anyone show me how to get total result from an MTF indicator, example if MACD : M1 = Buy, M5 = Sell, M15= Sell, M30= Buy, H1 = Buy, H4 = Buy, D1 = Buy, Total Result = 5 Buy & 2 Sell How do I implement this into a MQL4 code?…
user3869115
  • 41
  • 1
  • 6
0
votes
5 answers

MQL4 Trade Is Disabled

I've been using MQL4 for a couple of days now, but recently I've been getting the error message: (133) trade is disabled when performing an order. From reading the different forums, I understand the common belief is that I have to talk to my…
Amir Keren
  • 201
  • 2
  • 7
0
votes
1 answer

How to calculate the swap (rollover) in mt5 in term of account currency

Backgound: using mt5 "swap" (rollover) price is defined in points (0.00001/0.001) - 5-digit broker account currency: USD The question is: how to calculate the "swap value" in terms of acc. currency in mt5. With other words, how many cents i will…
cajwine
  • 3,100
  • 1
  • 20
  • 41
0
votes
2 answers

Why doesn't my MQL4 indicator register my additional conditions, despite me declaring the additional new variables required

I'm currently modifying a candlestick pattern indicator downloaded from the internet. I've added the additional conditions under the Bearish engulfing pattern that the range of the current bar (H-L) must be greater than the range of previous 6…
0
votes
1 answer

Copy File dll call not working in Metatrader

I am new to using .dll's in Metatrader. I am trying to execute a file copy .dll. In my header I have the following: #import "Kernel32.dll" bool CopyFileA (string source_file, string destination_file, bool if_exist); In my init(), for testing…
chemnteach
  • 375
  • 8
  • 23
0
votes
2 answers

Expert advisor in different trader platform

I would like to know, if I code an EA in a normal metatrader4 platform, can I reuse the .ex4 in other trading platform for example InstaTrader? The reason is that, when I have created a new EA in InstaTrader, the EA code generated from InstaTrader…
WenHao
  • 1,183
  • 1
  • 15
  • 46
0
votes
1 answer

Adding child window to Metatrader4's chart via DLL - blinking (not redrawing)

I would like to add a child window to Metatrader4's chart window which always stays on top, without blinking, just statically there all the time upon eveything (in parent window). I am doing this from a DLL (C++). I call this method from the mql…
rdanee
  • 109
  • 1
  • 1
  • 9