MQL4 and MetaTrader 4 - page 732

Hi, In the pre-500-mt4 I was able to change mt4 default-extpert (and the others) now I can't find them any more. Anybody with a hint - please? Thanks in advance, Gooly
[Deleted]
Hello, I'm trying to make an indicator that takes 4 entry values (Stochastic Oscillator, Stochastic Oscillator Slow, RSI(9) and RSI(14)), powers them to some set weights (w11 to w14) and then multiplies the result to store it in a variable (S1). Then, this variable is multiplied by another set...
Hi Coders, I'm working on a DLL function written in C++. The function will read the content of a file on the Internet. Then the content will return to the .EX4 (Build 600+). Please, take a look at my C++ code: #define WIN32_LEAN_AND_MEAN  // Exclude rarely-used stuff from Windows headers#include...
Hi, I certainly appreciate the willingness of everyone here to help--it has benefitted me greatly.  And I am sorry some are tired (qjol et al.)  Some day I do hope to donate to say thanks. In testing my demo account I notice that sometimes an order can be filled in stages.  Say I send in an order...
Hi everyone,  I have a problem with my EA, indeed i want to display a THUMB UP for each tick on the graph, so i wrote the following EA but the problem is that it only displays the thumb for the 1st tick and then no more ticks.... Cheers Aymeric int...
[Deleted]
Hi all, I would like to be able to automatically tile all chart windows in the MT4 terminal. The keyboard command is <ALT> + R, and this can be automated using keyboard events e.g. https://www.forex-tsd.com/metatrader-programming/3805-key-event-within-mq4-programs.html. However, this solution...
I can't make CopySpread work. It returns array of zeroes. Tried with 4 and 5 digits brokers, EURUSD, GOLD and Dow Jones index. Code I used is for testing is copied example from CopySpread() documentation page: #property indicator_separate_window#property indicator_buffers 1//---- plot...
Hello, Actually to modify the period for Account History trades i have to set it manually in MT4 terminal by right clicking on a history trade line and selecting custom period. Is there a solution (metatrader function or winapi) to modify the custom period for history pool in an expert advisor?...
Hi, if my EA partial-closes its order, another ticket opens down at the Orderopen price of the order that just partial - closed (which should be impossible for example in the below picture ticket #20 opens at 20 pips below the bid/Ask line) It happens to me on different brokers, different computers...
Hello,  I would like to ask you whether it's possible to download history data to the metatrader through EA? I have some script which require history data and if they are not available it makes error. The only known way which I know how to download history data is shown in the image below.     Thank...
Hello traders, I have Doda-Donchian indicator. I have some problem with this indicator when I used to backtest on Strategy Tester. I take Doda indicator to Chart while empty EA running on Strategy Tester. In Resistance Line 1, 2, 3 Pivot Level, Support Line 1,2,3, each one of them have their own...
Just wanting to throw a question out there! To make my question simple to understand, lets assume the following on H1: For every up bar, on average, the next bar is a down bar.For every down bar, on average, the next bar is an up bar. Now, lets further assume that the averages are more in your...
[Deleted]
Hi guys, thanx for your help , i was wondering if someone can address me to the right direction here... im trying to create a function that scan all the pairs in the market watch and return only the one where a specific currency (for example the EUR) is contained..   Thanks!!! 
  Bar close rules  (8)
Is it better to use iClose() or Close[1] when comparing two in an "if" statement? I have an open position I want to manage through comparing of H1 bars. I don't seem to be getting it right. Hypothetically, what is the best way of comparing bar [1] with [2], [3] and [4] (and so forth). I.e
[Deleted]
Hi there, I'm not a coder, but i try to solve my own problems before asking. So i am develoing an EA, that triggers orders based on Stochastic and RSI levels. I want to add this Hull Ma indicator i attach. I have problems with the conditions for trend up trend down, maybe i will need to modify
Hello,  I would like to ask you whether exists some way how to save .csv file to somewhere else than to default directory ../files? When I use the function FileWrite(......), it saves only to the directory ../files.   Thank you for any advice.   Regards,   Lukas 
I was using MT4 plateforme till january 2014 and I restart a few days ago. Before my break I could install any EA by placing the file in the expert folder of my MT4 plateform, but now the new EA I'm trying to place in it doesn't appear in the plateform in the EA contain but sometime in the indicator...
Hello,   is it possible to run script without mq4 file? I mean, for example I wanna program some EA for a customer but I don't want to the customer see my code. Is it possible some way?    Thank you for any advice.   Lukas 
Hi I've a bit of hypothetical situation that Id like put out there as I do not know the answer. The broker I am using for my MT4/EA activities is a tad slow at execution sometimes, and you end up with a order open price a few points out of what you expect (slippage). I get that, that's part of...
[Deleted]
Hello, does somebody know if it is possible to play at same time when a signal occure a Sound ALert and a Text Alert. As you know when a Textalert take place a sound file is also played and when you want to play at same time another sound file, then i think that is not possible, in my test it looks...
Good morning to all I have very basic programming concepts and I am trying to add two functions to calculate the Sharpe Ratio and Sortino Ratio for you to reflect on the information panel on my EA. I have the code in another programming language but I find it impossible to transform MQL4 language....
[Deleted]
Hi,   I have  simple array with strings (about 800 entries).  But now I want to determinate frequency of each different  string element. Idea is to take first element of array and then run over all array and count how many times it shows up there. So my calculation is that the loop should repeat...
[Deleted]
how to limit an order a day,  I placed an order today and sold it today,and I dont want it to place another order today again. how to write it? thanks
Hi! Shall i Suspends execution of the current expert for the specified interval? eg: i would like to validate conditions at buystop/sellstop at 11:29, once validated EA must wait 55-59 seconds and must place order. is this possible? shall i use Sleep(55 * 1000) function?
hello friends. I have a problem to install the MetaTrader 4 (see also attachment). It should run on Win7 but the installation stops on the second step. The internet options are all set as low and the firewalls are inactiv. Nevertheless the installation isn´t possible. Do you have any further...
[Deleted]
Can any one help : how to edit the lines on the mobile MT4 of FIB time zones to make it show the levels in stead of  1,2,3,5,....etc to make it 0.382, 0.50, 0.618.....etc I know how on the desk top version but not on the mobile version. please help thanks
Hello!   I have a script, which plots data from .csv, as vertical lines with (or without) text. At the script start, I would like to be able to select timeframes that those vertical lines (and text) should be plotted on. Like:   input int PlotOnTimeframes = 60, 240, 1440;...
[Deleted]
Can anyone explain me in more detail than in articles about matlab, as I can do the following ?:  "1- Download OHCL matlab data in real time."  "2 Generate response in metatrader platform."  Articles do not understand well.  Any suggestions would help me a lot.  Thank you very much.
hello, i want to check if the last order is minimum one hour old, so i was thinking the OrderCloseTime() and datetime are borth using the date from the 01.01.1970 in seconds when i use my code i get some unexpected results i was thinking, i use the order close time minus the actual time and get
How to set only 1 time for all variables of "double data type" ? Thank you