MQL4 and MetaTrader 4 - page 1474

Hello, Anyone can help with programming a simple code to show anaccount situation every 25st of the month? I wish to compeer actual month to previous one to show the balanceon the journal at the date. The problem is with week-end and day off, I cannot get the journalto skip dose days and wrights...
When you use the "Close[ ]" operator with a zero (ie current bar) in the brackets what does that mean if you are only partially through the current H1, M15, M5, or M1 period? Does it mean: A) the value of the last tick prior to the current tick? or B) something else? Likewise, does High[0], mean:...
[Deleted]
Hi guys! Once again I'm humbly asking for help- this problem should be relatively easy to solve for more experienced coders. So... I've coded a divergence indicator- the "red line" is a difference between EMA for the current bar and EMA "6 bars ago", the green line just smoothed red line for the...
For some reason, my indicator crashed when I try to return several values through a DLL. Currently in my DLL I have something like this MT4_EXPFUNC void __stdcall myDLL(const double x, const double y, double& sum, double& product) { sum=x+y; product=x*y; } In my mq4 code, I have #import "myDLL...
[Deleted]
Hi there, I have a problem with this piece of code it returns only 1 value insted of the 2 values that it should... if any one knows whats wrong with it, please help me understand how to fix it. thanx. here is the code (after the code I will show whats wrong) : void highest_lowest...
Hi friends, sorry for my bad english::: I'm developing an expert advisor that use a cross of 3 moving average baut i,ve a problem. OrderSend do'nt start anithing value of stop loss or take profit is',nt 0 and restitue error 130. Can you help me? Here is the code
[Deleted]
Is there a way to change demo account information in a MetaTrader Expert Advisor program without having to create a new account where this information is initially established? I would like to have user-defined parameters to control the the leverage and starting balance for evaluating EA's I am...
[Deleted]
  Tick backtest  (1)
Hi, Sorry if I write errors in my message, but I don't speak well English ! I want to do backtests with collected tick data (FXT files), but I have read that since build 210 the "recalculate" checkbox is not available and the FXT file is erased when "Start" button is activated. I have tried to...
Sometime ago, I imported historical data into MT4 and today realized that imported data was GMT+1, so I wanted to correct this and import it again using shift = -1. In both cases, there are 2524624 M1 bars (as shown in the history center), however the number of H4 bars (produced from M1 data using...
Hi, this is my code for 2 text objects at bottom of window.The problem is that mt4 is trimming the text, ie txt_id1="aaaaaaaabbbbbbbbbcccccccccccddddddd" but in screen i only see "aaaaaaaaabbbbccc". any help? thank you. if (ObjectFind(txt_id1)==-1) ObjectCreate(txt_id1, OBJ_LABEL, 1,0,0);...
[Deleted]
Does any one know if there is a way to export price data to an ascii file? You can download price data to do backtesting but I don't know how to actually find that data and do analysis on it in excel or any other programs. Also, if there is a way, could I run functions on the price data like iMA so...
Hi If I run one expert in 3 different MT4 platforms with the same broker, on the same computer, wouldn't it prevent trade context errors and any other clashes that might occur between EAs tryng to trade at the same time?
  Gao's Equation  (1)
I purchased the book and I find very hard to understand the equation? Is there anybody here that has figured it out and could help me please? An example in coding language would help me understand it. Or if anybody got any experience with Gao please do share.
[Deleted]
Hi, I have created an expert that I have been testing on a demo account. It works fine on the demo, but when I try and do the same thing on a live account I get an error "Invalid Stops" when I try and place the order. Here is the exact data I am sending: OrderSend("GBPUSD",0,0.10000000,1.47850000...
Is it possible to re-compile already compiled trade agent (.ex4). I have bought a few quite successful trade agents for which I do not have source code. In case I could add insode the code a few amandements agent will work even better .. However main problem is that I would like to connect MT4 and...
I have an indicator that looks for certain candles engulfing the following 4 or 5 candles. Is there a way to change the current candle colour to pink when it detects the selected candle in code?
Hi, has anyone got an indicator that adds price labels at the end of important waves ? here is an example of an indicator it should be doing ..
Hello, i'm a newbie and just wondering if i will ever get to learn how to use the EA,i downloaded the manual that was supposed to be the guide to the programming...2 minutes of reading and i was going to run mad...what is all this dots,hyphens and lines?????? please how do i start? i feel like i'm...
Hi, I want to share my buy-sell signal, without having too elaborate of a system. Is it a good idea to just distribute a demo/live account number with its investor password to numerous people? (the investor password is where one can see trades come in & out but cannot trade, right?) Regards, Evan
Probably I am missing something silly but - I have changed my code to add X x 10 x Points etc and the EA works fine. However I do use a lot of print statements in my code and am frustrated by things like below: Print(Ask); Print(CurrentZig); etc These all print in the logs as 1.XXXX only 4 decimal...
  I will write a bespoke expert  (87   1 2 3 4 5 ... 8 9)
I will write an expert on your strategy. My coordinates: lemyx[@@]ukr.net i_c_q: 33-02-02-198
[Deleted]
HI, Please i need someone to recommend a reliable indicator that has been tested to be at least 90% successful. I want an indicator that can be reliable both in a ranging and volatile market conditions, it may be a custom indicator or normal indicator. I have searched enough but couldn't get ....
[Deleted]
I am rephrasing this question, hoping to get an answer. How can I code to check whether the last buy (or sell) order that I issued stopped out? I am guessing that it is very simple. Thanks
[Deleted]
I am new to all this and I bought into the fep turbo program I just got an e mail to try the new robo Trader. So I did and it seems that neither have made a move as far as a trade I only have 500 in the Account is this normal I waited 2 weeks for fep turbo to do something but not one trade was made
[Deleted]
Can anyone give me the MQL code or a function to tell if I was stopped out of a trade within the last 3 bars? In an expert advisor I want to check this part of my criteria for resumption of a trend. Thanks in advance!
I would like to change the size, fonts, color of a comment, is it possible? Please show me how.
[Deleted]
Is there a way to request the downloading of additional data for the current chart (symbol + timeframe)? Let's say I query iBars for the current symbol and a period of M1 and the value returned indicates there are 15,360 bars. Now let's say I would like to have 24,000 bars worth of data for a...
[Deleted]
https://www.youtube.com/watch?v=dnTzH0EF1x0
  A picture for the forum on metaquotes  (585   1 2 3 4 5 ... 58 59)
http://www.metatrader4.com/ru/forum/6839/page7
[Deleted]
These things i get in spam emails are hilariously funny in there failures. Here's a link to one of the newest SCAM EA's. http://www.theforexmagicmachine.com/proof.html As you read at the top it brags about making $61,000 in one month, but then you read on and watch another video of a backtest which...