Download MetaTrader 5

MQL4 and MetaTrader 4 - page 533

To post a new topic, please log in or register
Hi everyone, I just start working with mql4 1 week now and I found some issues when running Strategy Tester (the window when we press Ctrl - R). Normally with Alert function, a small window will appear when running this command. But when I running Tester, nothing appear. I think other functions...
Hi all : I am a newbie to the MT4 programming. I have read through most of the MT4 book but I wasn't able to find any way to loop through the indicator array.  I have two questions.  1. the first question is how to loop into the indicator efficiently.   For example, I have a fractal indicator and I...
Hi all, I'm new to MQL4 and have been working on my very first EA, which is Ichimoku based. The robot seems to open the trade at the proper signal, but then keeps opening trades all the way down the bar. The trades are not closed until the very end of the testing period. I have tried setting a...
Here is a link about someone installed MT4 on Windows 8 PC successfully: https://www.forex-tsd.com/metatrader-4/34635-windows-8-mt4.html    For guys have this question and want to install MT4 on Windows 8.
Hi,  I try to define a global variable with initial value like this: #define A = 0x1;#define B = 0x2; extern int X = A|B;  I get a compilation error that says that , or ; are expected instead of the |.   When trying to to the same in a function, everything works great:  int foo(){   int X = A|B;...
Please who can teach me how to de-compile Ex4 file to mQL4 file.
Hey guys, I've been looking at several examples of code but not quite what I've been looking for. The problem is mine is so simple and the others are so complex. I have an indicator which runs a calculation based on current/past price and stores the final value in a buffer, which is printed as a...
Hi Simple question. I would like to import standard RSI  to my EA  In my EA i have : Red = iCustom(NULL, 0, "RSI", 0, 0,0); Rsi indicator looks like : //+------------------------------------------------------------------+//|                                                          RSI.mq4...
thanks for syntax checker program .i will use it. i have a big problem with objects. dealed with it all week. at the below program   there are are two objects which were created with objectcreate function. at the first tick (at start) ea understands the condition and draws first object and then the...
Hello sorry for my english, i'm spanish and my enclgish isn't very good Can someone help me please, I have a custom Moving Average, and i like if it is possible put into the setting put hour in this indicator.   Put 00:00 GMT and modify this value   Thank you  
Hello I feel sure that there is an answer in a post somewhere to my problem - but I cannot find it despite a search. Basically a custom indicator displays different values for one of the indicator lines (thick line, purple/Plum) when dropped onto StrategyTester in visual mode. The indicator line is...
Hi All, I have tried different ways of writing 'Alert' indicators that do NOT keep alerting when you change timeframes - this is very annoying and occurs primarily because any flags that are set to prevent more than one alert are reset by the deinit() function if you change timeframe. The only...
Hi all,  I am new to EA programming. I have bought an EA. In tester, it is very profitable, but when comes to live trading, it did not open any single trade for 3 weeks. I have done lots of optimization on settings value of the ea, change to ecn broker, 5 digits broker..etc.. but still nothing works...
forexparvenu
but the code isnt in metaquote language.  
Hi, I'm going to develop an EA to copy among my accounts, I see I could do that with a file text management among the accounts, using the text file as the vehicle with the information to copy. But, to do this with other MT4s in other computers, which is the technique to implement? should I use a...
  RENKO BARS PROBLEMS (14   1 2)
Hi, I'm using renko bars in my strategies, but I have 2 problems with testing EAs by strategy tester. 1. Even if I download good data where's no discrepancy between any timeframes and I have 90% modelling quality when I convert it to renko there're a lot of mismatched charts errors. Can I do...
Hello. This is my first EA (from a custom indicator), but I have a problem because the function ICUSTOM I think that I made the wrong programming... someone can help me??? Send two files. the indicator and the EA. Please, help me. Thanks. Jarol R.
Is there a way to calculate the number of pips a single open trade has to move into draw down to hit the stop out level of the account? Thank you     
Hi, my EAs have worked by just reacting to the incoming ticks, in order to activate the start() function. Now, I need my EAs to become much more pro-active, making calculations without waiting for ticks. My question is whether this template may work well: int start(){   while(!IsStopped())   {...
i need to check if the last order closed in profit ... if true an additional sell or buy should be closed ( 2 orders floating sell order -profit + buy order + profit) 2 different magicnumbers but my code close also order with different magicnumber int step2;for(int wt=0; wt<OrdersHistoryTotal();...
I cannot get this to work on Excel 2010 and Windows7 (64bits).  Excel just hangs with no activity on the Task Manager. MT4 Version 4.00 Build 445  Thanks 
Does anyone have code that can detect the open and close of a bar? It's preferable that either be set up to set true an Open/close bool, or be arranged in if statements, as long as I can figure out how to expand it. Thanks Kremmy EDIT: I've got the bar open detection from phy @ 'How to trigger order...
Hi,  I am new here and I start my first EA, everything seem ok in backtest, the EA open orders when the conditions are met. When I put it in Demo account no orders are open, I try to catch the error but no works too... Can anyone help me, please. My broker is MIG and I am using a demo account with...
I have tried to write an EA based on the indicator DSS Bressert. Later I would like that - EA buys when the indicator is above the level of 80 and the DSSBressert has reduced its value compared  to its predecessor and - The EA sales when the indicator is below the level of 20 and the DSSBressert has...
Dear all, I have an EA that can both trade on 1M & 5M. When I set the back test on 5M, the test seems still to run on 1M bars, not on the 5M bars as expected. And the results (on 1M & 5M tests) are not much different. Is there a way to let the test run on the correct period as selected at the...
Hello forum, I am having real trouble understanding and using time correctly in my code I have read the documentation many times, but still not grasping concept properly I am trying to create a pivot point indicator that will calculate values based only on the bars occurring within the range I have...
Is this possible? I'm sure someone has done it before but I can't find information about this.  If anyone can or knows how to do this can they send me a private message please.   Much appreciated.   TB 
Hi, I see this script in mql4.com:  https://www.mql5.com/en/code/7936 This can generate offline chart for custom TF same M2, H2,.... I want know possible we generate offline chart for H4 or H1 or H2 that instead candle start from Minute 0, start from our custom minute? For example start candle from...
//+------------------------------------------------------------------+ //|                                                         FFMS.mq4 | //|                        Copyright 2012, MetaQuotes Software Corp. | //|                                        http://www.metaquotes.net |...
Hello, Can you help me, please? Is it possible I can put in the same window two indicators RSi (2) and Moving Average (13) Exponential? How do I do this? Thank you. Roger