Download MetaTrader 5

MQL4 and MetaTrader 4 - page 661

To post a new topic, please log in or register
Hi everyone, I want to learn to code in MQL4 but I don't know where to start. I've read a lot that you should learn C++ before you start with MQL4, but I've also heard that any programming experience is fine. I am a web application developer that mainly uses PHP, JavaScript and SQL. Based on what...
Can EA detect if other EAs are running in other charts of the same terminal? And can there be a list provided of the name of the EA? Is there a method to detect the uptime of the terminal (amount of days:hours:min:sec the terminal has run since the process is running)?
hi, i set the different MA lines to different color such as 7 MA to White, 38 MA to Red and 140 MA to Blue. however, when i do backtest and then open the chart window, all the MA lines become to Red, i have to change them manually everytime. Can be them done as the same as preset in the...
New article Synthetic Bars - A New Dimension to Displaying Graphical Information on Prices is published: The main drawback of traditional methods for displaying price information using bars and Japanese candlesticks is that they are bound to the time period. It was perhaps optimal at the time when...
hi, i want to draw lines or arrow on the chart window when something happen. can anyone tell me how to do it or which function? it must be on the chart window not separate window. i know how to create the indication on the separate window. such as: int start() { //----when something...
Hello everyone. I have a personal preference to use light color background templates(just find it a little easier on my eyes), but unfortunately a draw back is I find it difficult to see the Ask and Bid lines, particularly the Bid line, as it appears that you can't change it from the default "Black"...
//--------------------------------------------------------------- 5 --   double L_1=iCustom(NULL,0,"CW",4,0);   double L_5=iCustom(NULL,0,"CW",5,0);   double MA_c=L_1;   double MA_p=iCustom(NULL,0,"CW",4,MAReduction);                                             //reads the previous bar number...
It seems No what I do with the code I am getting inconsistancy with Orders being executed or just Nothing at all. Almost like the Broker just seems to like NO Target Prices or stops. Only signal closing and profits.(Moving ave. etc.) I can't change Brokers right now even though I would like to. Any...
I'm trying find the lowest rsi value in x bars i been reading the (mt4)book think i'm asking the right thing but not sure. I'M new at this yes but i'm try to work it out myself . will this work. thank you double rsi-low= iRSI([iLowest(NULL,0,MODE_CLOSE,30,0)]);
- I try to develop same idea but with diferents indicators, please help me to make a indicator that show the diferences. Please let me explain ( check graphic attached please ). 1.- We set envelopes indi at 0.1, 0.2 until 2.0, Period 200 EMA 2.- Previusly we choose two pair with positive...
I wondered if it's possible to get an EA to automatically load in a set file at a given time
How to get Strategy Tester frozen with WindowHandle() function: using joined TEST_ST_WindowHandle.mq4 indicator with a dummy EA for the backteststart backtest in visual mode for a dummy EA with, for instance, symbol EURUSD,M1open offline another timeframe as EURUSD,M15drop TEST_ST_WindowHandle on...
I have been reading many articles in your Forum regarding File operation. For example this link : https://book.mql4.com/functions/files . They are very helpful as long as teaching you how to be able reading a text file or writing to a text file. Unfortunately, not even a single article mentioning...
please help me with this warning.. i've tried so hard to fix it but still no use.. the warning is expression on the global scope not allowed... :-( also 1 more question what are: *unbalanced left or right parentheses? *end program/unbalanced parentheses? *unbalanced parentheses? if(OrderSelect(0...
I am trying to write a slave EA so that it could open and read the data from the Text file. However, I need to know what program I could use to save an email as a Text file and save it in \expert\file directory. could someone please help me? TIA
SimonTrader
Hello. I know how to open another MT4 instance: #import  "shell32.dll"     int ShellExecuteA(int hWnd, string Operation, string File, string Parameters, string Directory, int ShowCmd);#import the dll guideline is here So, when I call it this way whatever MT4 I want is opened by finding its path. int...
Hello all, Stocks & Commodities magazine March 2004 Volume 22:3 (24-38) shows an interesting article: 'Mechanically Recognizing Triangular Formations', by Giorgos Siligardos, Ph.D. Who is willing to co-operate with us on the following: 1) code the original idea in MQL4 (and/or translate from...
hey guys :) i discovered mql4 a week ago, i know i am late :p but here is one part of my program : for (n=0;n<2;i++)    {    if ( iStochastic(Symbol(),0,5,3,3,0,1,MODE_MAIN,i) < 20 && iStochastic(Symbol(),0,5,3,3,0,1,MODE_SIGNAL,i) < iStochastic(Symbol(),0,5,3,3,0,1,MODE_MAIN,i) &&...
SimonTrader
Hi to all. I am looking for someone who can solve this task: I need to automatize switching between accounts (i.e.: handling login procedure) . Is there a chance to have this task smartly solved by batch, API and Dll or whatever? Many thanks to all. Simon (minkobliss@hotmail.it)
  Data Download (2)
I downloaded history data from IBFX. However, the data from Jan-2012 until now is missing. I tried to many other ways such as download again...... but I can't get these data :(. Please help me to fix this problem. Thank you very much.
Confessions of an EA programmer. I have developed quite a lot of Eas and indicators for many people some free and others I charged money, overall I felt this is as a thankless job. Reasons are as below. Most “EA ideas” don't work and the people realize the problem after it has been programmed. If...
Dear sir & madam I see Fx divergence and it's so amazing. Is there anyone help me to translate to a variabel that signal? Red arrow is upper the line is sell signal, how to translate to variabel. and green arrow is below the line is buy signal, how to translate to variabel. and make a simple...
can anyone fix the 1clickpips EA they are not working they have not placed any trades as of yet I do not know why while on thier site they say it can give 63000$ in tow weeks from 1000$ deposit also the extreme version is ten times the usual version the EA's are attached if you can crack them...
please help me to make EA with custom indicator Sultan Range Channel My Logical : Open buy : if the Price Touch the Top SRC 1 ( and then close all Sell Orders) if the price touch the Top SRC 2 if the price touch the Top SRC 3 Open Sell : if the price touch the Low SRC 1 ( and then close...
  Help with my first EA (11   1 2)
Hello, I have recently started exploring mql4 language and here is my first, very simple EA. For a starter I tried to emulate this candle pattern: http://www.candlesticker.com/Cs59.asp But when it comes to testing, I have no results at all. Did I miss something? I was wondering if anyone would be...
Hi all, I am looking for an indicator that draws a short horizontal bar through the mid point of bars. Can anyone help me with this? Thanks in advance Mark
Today we release the new MetaTrader 4 Client Terminal build 416, which was announced earlier. Important: From June 1, 2012 client terminals older than build 416 will be no longer supported. We strongly recommend you to update your terminals to build 416. MetaTrader 4 Client Terminal build...
Hi, I have an expert which imports some win32 API functions. One of the functions, WriteFile, returns 0 on error and you have to call GetLastError() in the win32 API to get the error code. However there is a conflict, because mql4 has its own GetLastError. If you call mql4's GetLastError when there...
Hi, I have been struggling hard to figure out for any given symbol, how to find out the number of pips between two prices. Remember some broker give 5 decimals points instead of 4 ( example EURUSD ). I saw all sort of complications when indexes, commodities and other exotic currencies come in...
Can somebody help me to add a Breakeven function into this EA? The idea is that if the price moves in favour for a number of pips set by the Breakeven function, then the stop loss will automatically be adjusted to breakeven. Thanks a million!!