Questions tagged [mql5]

MetaQuotes Language 5 (MQL5) is a built-in language for programming trading strategies. This language is developed by MetaQuotes Software Corp and allows to create your own Expert Advisors that make trading management automated and are perfectly suitable for implementing your own trading strategies. Besides, using MQL5 you can create your own technical indicators (custom indicators), scripts and libraries.

MQL5 contains a large number of functions necessary for analyzing current and previously received quotes and has built-in basic indicators and functions for managing trade positions and controlling them. The MetaEditor 5 (text editor) that highlights different constructions of MQL5 language is used for writing the program code. It helps users to orientate themselves in the expert system text quite easily.

MQL5 is the evolution of its predecessor - the MQL4 programming language, in which numerous indicators, scripts, and Expert Advisors were written. Despite the fact that the new programming language is maximally compatible with the previous-generation language, there are still some differences between these languages.

Check further details here: http://www.mql5.com/

404 questions
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
-1
votes
0 answers

using Api Dwx Connect With pyqt5

I have python GUI with pyqt5 and I don't know how to use dwxconnect with pyqt5. I need lineedit to subscribe symbols, one for ontick Data and to send and modify orders automatically. I don't know how to try with this API. Please anyone help me with…
-1
votes
1 answer

My code does not get executed at the starting time

What I would like to achieve with the following code is to export a csv file containing the bit of USD/JPY recorded every 100ms. This file can successfully compiled, but not get executed when it's the starting time. Could anyone tell me why that is?…
-1
votes
1 answer

MQL5, Python, Javascript integration. Two (or more) computers

Any MetaTrader/MQL + python integration gurus here? It is my understanding (please correct me if I'm wrong) that I can follow the instructions here to build the equivalent of a MetaTrader 5 EA (Expert Advisor) in python instead of MQL5, calling the…
DavidT
  • 655
  • 7
  • 19
-1
votes
1 answer

(MQL4) QUESTION: How do you find a percent of a number in mql4?

Its just simply that, lol. Example. I need to find 5% of 1000 (which I do know it's 50 in real life), but how do I calculate this math using mql4 language?
-1
votes
2 answers

how i get information from the indicator signs I used in mql4

I'm using an indicator in mql4 that gives me a sign to buy or sell, How can I write an expert and read it and perform my operations whenever this symbol is added? thanks
hosein
  • 1
  • 1
-2
votes
2 answers

How to check if Account Trading is Allowed in MQL5?

What is the equivalent of MQL4's AccountInfoInteger(ACCOUNT_TRADE_ALLOWED) in MQL5? Also what about the equivalent of? TerminalInfoInteger(TERMINAL_TRADE_ALLOWED) they are not listed here: https://www.mql5.com/en/articles/81
ycomp
  • 8,316
  • 19
  • 57
  • 95
-2
votes
1 answer

How do I find the lowest value in the past 50 candles on mql5?

I would like to find out the lowest traded price in the past 50 candles. I've used the following code. double Lowest_Low = iLowest(_Symbol,PERIOD_CURRENT,MODE_LOW,50,0); I've tried using -50, but it does not give me the lowest price on the chart.
-2
votes
1 answer

1 buy or sell per candle function at mql5

Am asking someone who is good at mql5 programming and do a function which allows trade only once per candle, the IsNewbar function only work at beginning of candle. Below is my try of making the function. bool Tradeallowed(){ bool hastraded =…
Youg
  • 1
  • 1
-2
votes
1 answer

How can I find the last moving average crossover price x candle before in mql4?

I want to code a function which will return the price of the last moving average crossover. I will be really happy if anyone here helps me to achive this in mql4 code..
-2
votes
3 answers

How to divide a number into several, unequal, yet increasing numbers [ for sending a PlaceOrder( OP_BUY, lots ) contract XTO ]

I try to create an MQL4-script (an almost C++ related language, MQL4) where I want to divide a double value into 9 parts, where the fractions would be unequal, yet increasing My current code attempts to do it this way (pseudo-code) : Lots1 =…
olu mide
  • 307
  • 3
  • 11
-3
votes
1 answer

Reverse engineering MQL files

Is there any body know how to reverse engineering MQL expert adviser files? mq4 or mq5 is file format that used for Meta Trader platform. I tried using cutter to disassemble the codes but it doesn't work. Thank you very much.
1 2 3
26
27