MQL4 and MetaTrader 4 - page 1071

I have a dilemma: Since iTime() returns an integer value corresponding to the number of seconds since 1/1/70 (UNIX time), is it possible to break down and access OrderOpenTime() and OrderCloseTime() to the same level? Suppose I am looking for the high or low value between the order open time and...
[Deleted]
Could someone please help fix the error code 130? When I run a tester it was okay to get a result without any error code. But I had an error code 130 when it attached to chart and runing real time with the demo account. While running the tester, for example, the journal showed "opened price : 1...
Hello Everyone, how many percent profit does a good EA make per month/year? thx, haemse
[Deleted]
Hi, i am newbie to mql4 and i would like someone help me or show me how to code a max order a days with a magic number or pair. Below are the EA(EA_9), and hope someone could help me. Thank you. ps: i attached another EA that i would like to mix the function together. and please have a look.
Hi everyone, I would really appreciate it if someone has an EA for the above. The idea is to take partial profit when the first profit target has been hit and the rest when the second target has been hit. However as soon as the first profit target is hit then the stop loss for the rest of the trade...
  Help!!!  (2)
Could someone please help I am working on 5 digit broker & testing my own ea but when I try to find stoploss with following mql statement it gives me 4 digit result only instead of 5 digit pls. can anyone help in this StopLoss =Low[iLowest(NULL,TimeFrame,MODE_LOW,Stop_Shift,1)];
[Deleted]
Hello, I'm new to MQL world and I'm trying to learn something by practice approach. Today the subject were ARRAY and I made an experiment: I tryed do write an algorithm that consider every couple of bars and counts the similar and the different ones. For similar couples I mean the ones where open...
For example, roulette, always bet on black, what is the possible maximum length of the series of losses / profits may fall in a series of bets, for example, 1 000 000? There is a calculator from Meta Driver, but there are some restrictions when calculating the chains, or maybe my hands are wrong
Hi, I (MT4 (from Boston Cons.) build 402) have written an EA that actually trades quite ok. Now I wanted to rewrite everything but the compiling fails with Errors that I don't understand! First Error message that shows up several times: ')' wrong parameters count. Each time this Error appears this...
[Deleted]
  Right Approach?  (11   1 2)
What I am trying to do below is when the EA places an order to then check the close of the subsequent bar and see if it is higher or lower than the OrderOpenPrice() depending if it is a long or short position respectively. I use a bool called "check" when an order is initiated to start the check
[Deleted]
  Fibonacci EA  (3)
Hello there I am looking for someone to code an ea based on Fibonacci, that will activate a trade on a Fib level I allocate in the inputs tab. Once I draw the fib I will need the EA to Activate a trade on a % that I allocate to the EA input tab Also need to have TP SL TS and BE settings, the trade...
[Deleted]
Dear's, Kindly i neeed a help about the below code as it sometimes calculate take profit right and if you close Oppsite trade (Second trade) manual and try this more than once it will calculate wrong :( i neeed your heeeelp please :( extern int MAGICMA = 222222222222;extern int Opp = 0;void...
Hi i have a problem with my EA. When i modified the EA so it would have more then one position open at the same time. The exit -buy and -sell order function doesent work anymore. How come? :S Is there anyone who knows?
hello everyone where is the developer who want to make help for me . and i will greatful for him This script open 3 buy stop and sell stop when three buy stop executed iin the market only one sell stop closed . i need it to close all the three sell stop and when it take the sell stop first i...
Does anyone have their template showup automatically for their EA when they run it in strategy tester? Can someone possibly tell me? thx.
How can I find out what the variables and their parameters as well as constants in compiled indicators are? I posted this same query a couple of days go and it is no where to be found now )< 8( Where did it go and why was it deleted
Hi, I put two indicators bellow a EURUSD-Chart in seperate Indicator-Window. Indicator 1 has a scaling of 0 and + 100 over the complete vertical indicator field. Indicator 2 has a scaling from -0.00456 to 0.003322 (also over the complete vertical axis). Both indicators are without fixed min and...
Hi, I want to get the trading hours of a contract like from 8am-22pm. I saw, that I can get it with mql5 "SymbolInfoSessionTrade". Is there anything link that im mql4 possible??
[Deleted]
How to do this, hide trailing stop loss, no stop loss?
I have a MQL4 library that my EA uses. The library has several variables declared on a global scope as well as functions. The content in these variables are preserved between calls to the library. It functions a bit like an object with properties (the variables) and methods to operate on them. The...
[Deleted]
hi there, I have a little problem. my indicator uses the call curtime() to get the server time and also uses LocalTime() to get my time. TimeDifference = CurTime () - LocalTime () ; My intention is to use these together to work out the start of the day from my perspective. Now it works perfectly
[Deleted]
Dear All, i have an expert advisor which i downloaded from a third party and on the backtest it gave me some weird parameters. Any expert here can help me with the parameters? They are: UsePi dotrail TSVAL PiValue TSTO TSGAP If someone could please tell me what those parameters are so that i can...
Dear, I program in VS 2010. I created two project: one of projects is C#(named MT4TestDLL), the other one is C++ (choose CLR in Project Type) (named CallTest) The EA of MT4 will call the C++ and C++ create an object that wrote with C#. When I execute this, I always receive error message like this "...
New article Analysis of the Main Characteristics of Time Series is published at mql5.com: This article introduces a class designed to give a quick preliminary estimate of characteristics of various time series. As this takes place, statistical parameters and autocorrelation function are estimated, a...
[Deleted]
Hi, I have the basics down, I can program well, I know basic technical analysis, I can create custom indicators and experts, I was wondering if there is a book that describes all the basics of the design of an automated trading system. Like I know I should have buys and sells, stop losses, something...
[Deleted]
Is there any way to run LiveUpdate from the DOS command line or does it have to be invoked from within MT4? Also, if I am running a older version of MT4 (i.e. 225 or such), I cannot setup a new demo account unless I upgrade to the latest MT4 from that broker.. The demo username and password is...
[Deleted]
  Virtual Stops  (5)
Hi, I am writing code from scratch and keep being told that I should be building in Virtual Stops so my orders are 'invisible' to brokers. Problem is I have no idea where to start; None of the books I have discuss it and all the posts I have found on the subject are fairly dated with conflicting...
Hi there, I want to create a dll in C#. I searched the forum and get some conflicting info - some people say you cannot do it, others say that c++ is required, others that it is possible, some say that a c++ wrapper to the c# is requiered. Is it possible to have an ea that talks to a plain c# dll?...
Hi, I'm using FX Pro, (uses 5 decimal and 3 decimal for jpy) how do i edit the code for MA( moving average ) to show 4 decimal for non jpy pairs and 2 decimal for jpy pairs on data window for metatrader 4? Or is there any other MA indicators that can do that? Thank you
[Deleted]
Hi, If you are looking for an experienced MQL4 programmer to code anything for you, I am your guy. I will code anything from the simplest indicator to the most elaborate EA. If you are interested, please contact me via the forum, or at my email address: tutbalut@gmail.com Successful trading to us...