MQL4 and MetaTrader 4 - page 1084

To post a new topic, please log in or register
Dear community, I'm a newbie here, and I seem to be receiving incorrect results from the MT4 tester (Version 4.00 Build 225) when running this piece of code: if (OrderSelect(ticket, SELECT_BY_TICKET, MODE_HISTORY)==true){ // Closed trade order_closed_bar = Bars;...
Hey folks, I'm wondering if some of you already have experiences with script execution problems in Tradeview's MT4 platform. Every time I want to run script in the platform I got an error message or script simply doesn't run. I used the same scripts on other broker's MT4 platforms (both real and...
Hi Is it possible to recover a data type from an indicator (3 MA Cross w alert)to put it in a EA? This is what I want to do : In the indicator (3 MA Cross w alert)I put a data type : double execute_trade = "ok_buy" or execute_trade = "ok_sell" here : ************Indicator ************ if...
I want to stop my EAs from placing trades on Friday. I can do this easily in the EAs I developed. But not sure how to accomplish this in commercial EAs.
I have been trying to figure out how the indicator below is able to draw a line in one color, Continuosly, and then a line in the next. The values for wt[shift] and wt[shift+1] are constantly changing as well as the values of ExtMapBuffer1[shift] and ExtMapBuffer2[shift]. There has to be something...
I want to add a take profit and stop loss based on account profit or equity. So let say the account increases 50 buck it would close all open trades and start a new round of trades. How could I impliment such a function. If someone could give me some code to achieve this it would be greatly...
  TD REI ??? (1)
Hi Thank you very much for your MAB TD sequentiel, I think it very good indicator, I am looking for TD Range expansive indicator. Have you got ? Could you write one ? or where can i find one ? Excuse me for my english !!!! Good work
I have built a modified renko indicator that overlays a 1M or range bar chart on ninjatrader. I need some help converting it to mql4. My renko bars handle gaps. Any help would be appreciated. Here is my attempt but I it wont compile. private int myInput0 = 8; // Default setting for MyInput0...
In MetaTrader 4, Is there a simple custom tool like the fibonacci retracement tool that only shows the extension levels (ie 1.272, 1.618) and not the retracement levels as well? I know the fib retracement tool in metatrader can be customized to show only the extension levels however that requires...
I have a problem opening a CSV file, the error only occurs when I run the EA in simulation mode. The file contains settings for the system that needs to be traded, since it's a large amount of numbers I've decided to put it in a file, rather than as variables in the EA. I also tried a workaround so...
I charge 20.00 an hour to put your ideas into code. I've spent 5 years working with the platform. I also have a college degree and I took 4 semester long courses in beginning and advanced programming. I am self taught in visual basic and can also create applications in visual basic. I am also able...
Discovered a funny quirk in OrderSelect function with MODE_HISTORY. It only selects whatever is listed currently in 'Account History' tab. So if you limit your account history tab to say 'TODAY', that's all you going to get in OrderSelect function. It seems all the other history is inaccessible...
Hello! Is it possible to export the MT4 value of the 60 SMA from a forex chart to excel? Thanks in advance for your effort. Paul
How do I call price to be used in a program and if possible can someone show me some example code and tell which part of the code represents the price? Thank you, Charles
Dear friends, As 2009 comes to a close, we'd like to express our sincere gratitude for another year of your confidence in us, and in our products. We highly appreciate your exceptional support and hope that the coming year will be prosperous and successful to all of us. The expiring year was...
Hi: I'm looking for an automated manner to generate an excel spreadsheet with optimization results (including inputs). Anybody knows about any existing Expert Advisor or Script for this purpose ? Thank you for your help.
Hello, Obviously there is some bug somewhere in this code, but I can't see what it is. It's good, but it keeps crashing all my systems by freezing them up. Someone on the net told me they tried to decompile this, but when you do, you keep getting "incompatible type" when it's loaded up. Thanks
I have developed a eSignal trading strategy .efs which I would like converted into an expert advisor, to enable auto paper trading, eSignal does not have that capability! I am not sufficiently familiar with the broker functions/errors of mql4 to confidently tackle the task. Can anyone help? Regards,...
Hi all, I would like to have time frame as 10 min in my chart for live trading, how could i can make it, any one can help me
Yes guys, After some hours of study, I came to conclusion that is possible with low DD.  I know that the result is ridiculous (just 300%), but for those that are managers, it's real and very profitable. It can be used in more than 1 pair (ALL USD). For those that wanna make a good EA like this......
  Help needed (2)
Hi all, anibody cud help me write a formula in meta stock to a .mq4 in meta trader? Mov(RSI(22),22,S) thanx all for ur help `
Hello everyone, my question is to all programmers with some experience, I´m trying to find or create an indicator or alert that send me an email when the SMA 50 croses the line chart or price (either way up or down) and send the alert when the price be 6 pip up or down after SMA 50 have crosed the...
given a candlestick, it has high, low, open, close values. how do you separate buyers from sellers? my take is close - open if express in ratio is (close - open) / (high - low) what's your take?
hi I need help with a little bit of coding I wish to count the orders opened and closed WITHIN a given time frame. for example the orders opened and closed in a 24 hr period using a 1 hour chart help appreciated
Hello, I have the H1 eurusd chart and want to change it to M15. Is it possible? I have to do it when I find a pattern in another timeframes and want to draw an arrow in this timeframe. If I am in H1, found something in M15 and draw it in the current view, it will be at the wrong place when I change...
Could someone more experienced in programming have a look at my EA, because I can't find the end of program - unbalanced left parenthesis error. Also I'm not sure about my bool operators and their logical usage in the beginning. Thanks for your comments and feel free to use some parts of the code,...
I have been coding for a while and didn't come across situations where I have to divide numbers. I was trying to do this today and am not able to understand why the reminders are getting lost. Possibly, I am missing some basic rules on operation so any guidance is appreciated. In the code below,...
Backtests and Forex Hello I download different platforms The results of backtesting are really different from one platform to another! With Fx Pro: I happen to do any ..! Figure plunging always late The results to be closest, without being identical, are between WHC Trader and Active Trader. I do...
I am trying to program an EA to be able to spot consolidation. It is easy to spot visually, but I have not come up with a good way of spotting it numerically. Any ideas?
Hi, Still aNewtBee and WillBee for quite some time by the looks of things. I’m creatingan array that I want to store various information about trades such as their currency pairs descriptions, MagicNumbers, perhaps some text: Comments and WHU ??? Do I have tocreate and define it as a ‘string’ array...