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
1
vote
1 answer

DLL on Metatrader 4 doesn't update with incoming ticks

I have written a simple DLL as part of a custom indicator for Metatrader 4, which is called thus: int start( ) { double Rates[][6]; int MaximumRecords = ArrayCopyRates( Rates, Symbol(), 0 ); for( int zz = MaximumRecords; zz >= 0; zz--…
babelproofreader
  • 530
  • 1
  • 6
  • 20
1
vote
2 answers

How to group a lot exponent in MQL4 / MT4?

I manage to get normal lot exponent but I need to change it a bit by grouping example in the picture. Can someone guide me how to get the lot exponent but with a grouping technique Group=5 Exponent=1.8? double GroupExponent(int type) { double…
Roller
  • 35
  • 7
1
vote
2 answers

Getting the "empty controlled statement found" warning | MetaEditor

How would I ensure that the following if, else if statement follows the following rule: "If everything in either /*Condition 1*/ or /*Condition 2*/ is true,thencarry on assessing /*Conditions 3 - 12*/" At present, I am getting the empty controlled…
1
vote
2 answers

How can I get data from a time frame other than period setting in strategy tester (MT4)

I want to know How can I get data from a time frame other than period setting in Strategy Tester (a part of MetaTrader4 Trading Terminal), using the sample code below, I get zero results for op2 & EMA2 whenever I choose a period setting other than…
hamed razi
  • 19
  • 3
1
vote
1 answer

How to transfer live data between Python and MQL4?

Python code: import zmq import sys port ="5555" print("Connecting to hello world server…") context = zmq.Context() socket = context.socket(zmq.REQ) # Socket to talk to server socket.connect("tcp://localhost:%s"%port) while(1): …
1
vote
1 answer

Mql4 indicator does not update automatically

i am experience some issue with an indicator that i am working on , can somebody please take a look and tell me why its causing this issue ? to put it simply the indicator is not refreshing Explanation: when i attach the indicator to the chart and…
Umar
  • 33
  • 5
1
vote
0 answers

Create function not defined in ZMQ header file - MQL4

I got issue about header file in MetaTrader 4. I'm using ZMQ libraries and header files. It worked good,but without changing anything something went wrong, exactly: "create function not defined". This error occured in Mql/Lang/GlobalVariables.mqh…
1
vote
2 answers

Can I make a while-loop that uses RSI value as the condition?

When I try to run this while-loop in MQL4, it can not seem to update the rsi from within the loop. It always returns the same value of the rsi and thus stays in an eternal loop. I have tried it on an EA as well as a script. I have also tried making…
Nak1987
  • 25
  • 1
  • 6
1
vote
0 answers

I can't find proper "old" "ex4 to mq4 decompiler"?

I know that there were ex4 to mq4 decompilers for old version of MT4, but can't find anything which works properly. In fact, all of them which are on the internet are viruses or malware. I could find some codes for it in…
Elite Guru
  • 39
  • 5
1
vote
1 answer

EA sending a mass of "SendMessage" commands despite prevention code in place

Morning Fellow Stackoverflowers I'm currently testing out some code which is based around time of day with which an EA is allowed to trade. How would I prevent the EA from sending a bazillion emails - one will obviously do. Only one was sent in…
1
vote
1 answer

MetaTrader Terminal 4: debugging an expert advisor on historical data

I have a MetaTrader Terminal 4 logged into a demo account. I have written and compiled my first Expert Advisor. I am able to debug it on a live chart, so working fine. I would like to debug it though on historical data. In the MetaEditor the…
mHelpMe
  • 6,336
  • 24
  • 75
  • 150
1
vote
0 answers

How can I tell if an arrow object was drawn on the previous candle when it closes?

I have been able to find the candle index of arrow objects that appear on a chart using the code below: if(ObjectType(name) == OBJ_ARROW){ if(ObjectGet(name, OBJPROP_COLOR) == Red){ arrowTime…
BBNN
  • 139
  • 1
  • 9
1
vote
1 answer

Which is best way to convert currency price from other currency

I am working on NodeJS project where i have All EUR currency, and i need to find another price from EUR Example: There are two currency that values I have EURUSD and EURAED. I need to find USDAED, Formula: EURAED/EURUSD = USDAED But the close price…
Asad Raza
  • 34
  • 1
  • 2
  • 14
1
vote
2 answers

Getting signals from telegram channel and placing them in MT4 using Python

I would like to read messages from a Telegram channel (which are essential forex signals) and place the orders in MT4 windows application. For now, I have made a python script which listens to the channels and stores messages in a database. I can…
Surya K
  • 117
  • 2
  • 9
1
vote
1 answer

Modify Pending Order at Mql4

I am trying to figure out an EA which updates its pending orders if current price pass the SL level of pending order both for buy and sell orders. As you can see below pic current price is below the SL point of pending orders. Therefore I want to…
Syildiz
  • 69
  • 2
  • 11