MQL4 and MetaTrader 4 - page 1018

To post a new topic, please log in or register
Hi, to check if a order is opened I use OrderSelect and if OrderType() == OP_BUY I assume it's open. I don't know if this is how to check if a order is opened though :P Here's the code I got, that closes any long open position:    for (int i = 1; i <= OrdersTotal(); i++)   { if (...
Hello to everyone, I live in Australia but want to use an MT4 FX broker in the USA. It normally takes about 500 milliseconds to send an order to USA broker's server and receive confirmation as to whether order was successful or failed. My question is as follows: Within my EA when I use the...
hi i would like to test a new scalping strategy main chart would be M5. so i hope 90% modelling quality will be enought to give a overview over the system. but whats more important is the spread. so is it possible to modify these parameters in the marketinfo? i am testing always in offline mode. so...
Classical EA, the good automatic transaction system have been very now few, we have the good automatic transaction system, registers www.huixin68.com
Hi, I try to open the file configuration.ini to change something like logo and website address in about menu but there are many strange character and I don't know how to change. ex., when you open terminal.exe, in about menu, you will see the logo like fxpro, and the website: fxpro.com, I want to...
Hello fellow traders. Please I need your professional help for that someone put alarm to this indicator. The alarm will sound when the price crosses the indicator. Thank you in advance. Regards
Hi Guys I am a newbie, (obviously) but is there someone out there that if i gave a set of criteria/indicators to that they could write up the EA so i can download the one combined EA on to my platform? its my mix of indicators but i dont know how to put it all together into one package. I am after...
I have tested this strategy using historical data in Excel but need to create an EA as it works best on the 5 min chart (EURUSD). It averages 30 pips a day. It opens an order when the new bar opens (based on median price of previous bar) and closes when the current bar closes. In other words the...
Hi Can anyone recommend some good/reliable historic Forex rates for downloading / importing to MT4 historic center directly(data format is accepted by MT4).It doesn't matter it is a free source or pay one. I realised the data available for downloading by MetaQuotes got some issues, it has missing...
Most of mt4's built in indicators have drop down menus in the user settings like the picture below, is it possible to do this in a custom indicator ?
The Below Indicator has a bug I've been working on for a few days. When you attach it to a chart, Buf_1[] is not drawn (on any bars below bar 0), but it starts drawing from candle 0 once you attach it to a chart. Interestingly enough, if you attach it to a chart and then compile it the Buf_1 values...
Hello Traders. Please let me indicate how I can put the alarm an indicator, ie when the price would cross my indicator is an alarm. Thank you very much partners. Greetings!
New article Genetic Algorithms - It's Easy! is published: In this article the author talks about evolutionary calculations with the use of a personally developed genetic algorithm. He demonstrates the functioning of the algorithm, using examples, and provides practical recommendations for its usage....
Is there a way to display a daily stochastic on top of an hourly stochastic chart? .....The idea is to use the longer time frame as a filter. \n This could apply to any indicator, doesn't have to be stochastic.// thanks
Is it possible to load an EA as you would by using a template, by some external windows control through a DLL?
Hi everybody :) I need to complete my Money Management system. Anyone has Trading System Safety Factor aka TSSF (https://www.mql5.com/go?link=https://championship.mql4.com/2008/news/366) EA in box ? Currenlty, i have these 3 cases: 1/ fixe 2/ geometrical 3/ proportionnal double Lots_ref = 0.1;int...
How can I change the comments on the transactions which have already been closed?
New article Creating an Information Board Using the Standard Library Classes and Google Chart API is published at mql5.com: The MQL5 programming language primarily targets the creation of automated trading systems and complex instruments of technical analyses. But aside from this, it allows us to...
I'm having real questions about the legitimacy of the ST. Setting aside that I can get different results simply by hitting the start button more than once, and that trades often are completely missing from the journal for days in the middle of a time frame, how about these two items ... First, why...
I believe MT4 Strategy Tester needs to give us options. MT4 Tester should NOT generalize and turn off features completely for speed-sake. Instead, MT4 should allow us to choose which feature(s) we want to turn off ourselve. You know file-reading, playsound, etc... What do you think????? Hm???
  Be In Phase (7)
Hello, i want to insert TSSF code in my EA as described in this article :https://championship.mql4.com/2008/news/366 Can someone explain me the following comment and formula for n trades window explained by Mr Fishchenko? "It is better to choose the time window on the basis of the...
A month has passed since the beginning of registration of the Automated Trading Championship participants. During this period, we received about 400 applications. Nearly the same number of applications was received for the first month of registration in 2006, when the first Automated Trading...
I've got two more steps to complete before I'm ready to go live. Interest Rate Trading and Error Handling Coding. I've been researching Interest Rate Trading but the process generated more questions than Answers. I'm gonna put this in list format and hope it makes the q/a more direct.   *Are...
Good afternoon. This EA has an error and can not find the solution, please help I need to correct Thanks Regards
I want to copy my mt4 (including charts and templates) to a usb key so that I can use it on other computers. Can anyone please tell me what files I need to move across? Any problems I need to be aware of? Thanks Mark
In strategy tester there is option to use control points. Can somebody give exact definition of this concept? Thanks.
HI to one and all, I'm confused (no news to many of you! (< 8) about the varying results obtained utilizing the Optimization Parameters. Why & how some results that have the maximum 'Profit Factor' doesn't have the biggest Payout, or Balance etc and have been wondering about how this could be so?...
Hi, I'm new to programming. Just wrote my first Indicator and I have a problem. The range of the indicator's values e change considerably when the time frames change. So, I wish to find a way to set different range for each time frame. I defined the range with "#property indicator_minimum" and...
i got critical error with one of my mt4, is it possible that EA caused this error? since i read from someone at metatrader forum post (https://www.mql5.com/en/forum/57952) i also did posted the errors to: metatrader4 forumbroker customer supportbroker mt4 programmer support internet security...
What is the easiest way to get Low and High price of a bar at a certain time? What is known is the time and time period. I want to be able to find the low and high of the bar at that price. I spent several hours trying to figure it out but don't know how to. Please help. Thanks ForexWatchman