mql4 Questions

5

Solved

I would like to send a POST from MQL4-script, using a JSON-format to a Node-server. I've tried the webRequest() standard function in MQL4, based on the following documentation, but it did NOT succ...
Allottee asked 10/10, 2016 at 8:28

3

I moved to mql4 and mql5 programming language. But, MetaEditor is very noob to code with, so I want to code mql4 language and compile with VS Code. If you have any solution please share with us......
Apocalypse asked 10/2, 2022 at 6:7

6

Solved

With MQL4 I have troubles in handling datetime. What I want to do is put datetime in array by month or by year. For now I do in this way. datetime myDate; myDate[0] = D'2010.01.01 00:00'; myDat...
Underplay asked 11/11, 2016 at 21:55

4

Solved

I have been working on an algorithm ( Not mine, I am just modifying it ) that predicts when to buy and sell on the FOREX market. I need to be able to open and close orders, dynamically update...
Misreckon asked 20/9, 2016 at 11:20

1

If you don't know, an ex4 file is a file created in the MQL language (Auto trading robots). There is a decompiler that can decompile old builds of this type of files, but after build 600 there is ...
Rodrich asked 10/1, 2017 at 15:26

2

Solved

I am trying to add another condition to the solution in this post. I want the stop loss to move by 10 pips when a trade is in 10 pips profit. To be more specific, say I've set a pending buy order a...
Voidance asked 16/5, 2019 at 21:46

2

Solved

I am quite new to writing mql4 code and would be grateful if I could get some help drawing rectangles when the following candlestick patterns occur: FIG1: Run code snippet <blockquote cl...
Mev asked 2/7, 2019 at 14:27

2

Solved

I have written the code below that opens a buy and sell trade (a certain number of pips above and below the ask and bid price) at a specific time. How can I close/cancel one immediately when the ...
Textbook asked 1/5, 2019 at 1:1

1

I want to write an EA that joins the highest points of each candle using a trend line (after the first hour of a day). I saw the documentation for the trend line. This is what I've done: ObjectCr...
Paraboloid asked 21/11, 2018 at 23:12

3

I have been using an indicator to take trades. I didn't develop the indicator, so I only have access to the .ex4 file. How can I extract the take profit, open trade and stop loss values in the aler...
Slumberland asked 29/8, 2018 at 9:20

2

Solved

I'm trying to figure out if there is a correct way to set the Stop Loss (SL) and Take Profit (TP) levels, when sending an order in an Expert Advisor, in MQL4 (Metatrader4). The functional template ...
Permeable asked 7/6, 2018 at 16:26

1

I would like to return an array from my function, how can I do that? Look! int GetOrdresVente(){ int ordrevente; int Tabordresvente[]; for(int j = OrdersTotal() - 1; j >= 0 ; j--){ if(Order...
Breastpin asked 16/4, 2018 at 5:53

3

Solved

I would like to call MQL4 or MQL5 function from my own imported DLL in Metatrader. Is it possible?
Goren asked 15/12, 2012 at 8:27

1

I am trying to write a simple program in MQL4 which passes a variable to a C++ DLL function by reference and prints the updated variable value in MQL4. Given below is my code. DLL function: void ...
Hullo asked 15/9, 2016 at 21:57

2

Solved

Can somebody explain me what is the difference between both shift parameters of the iMA function on an example? According to the MQL4 documentation: ma_shift - Moving Average shift. Indicators l...
Lauds asked 19/8, 2013 at 9:8

3

Solved

Now I am compiling my MetaTrader .mq4 files to .ex4 files with MetaEditor. But my .mq4 files are generated by a Java-process, and I would like to automate the compilation process. Is there a comm...
Donner asked 26/1, 2013 at 16:40

1

On my MQL4 Code I need to execute an External url/link in order to update a table, I have Added the URL in the Allowed URL List Option. However I got the following error : Any Idea how to solv...
Shayneshays asked 8/7, 2015 at 11:25

4

Solved

I have a task of migrating a C# market strategy to MetaTrader. Is there any way to automate that job? (For example, is it possible to parse C# into it's AST, then make the translation?) Does Met...
Acquirement asked 24/5, 2013 at 9:53

1

Solved

I am trying to see whether it is feasible to build a custom indicator for MetaTrader that can make asynchronous internet requests, in order to post data to a server with a PHP interface. The...
Fortuity asked 22/11, 2014 at 14:24
1

© 2022 - 2024 — McMap. All rights reserved.