Is there a built in function that compares "a" bar to the last "x" number of bars? Example if high of last bar is higher than any high in bars 4 to 15. Thank you.
hi guys ,I have a mq4 indicator i have bought it with 100$ I just wanna add some alert code to it ,I need a programmer ,is there any someone could help me on that ? :'(
The Metaeditor help states you can run a compiler downloadable from: •https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mql.exe — 32 bit version. •https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mql64.exe — 64 bit version. That compiler is started from the command line...
Hi guys... There are a way to use iRSI() function to get data from past candles ? Not only for actual candle... if yes, how can i do that?
How can I include % in StringFormat() function? I was trying this instruction to display % sign after the stopOut value: string msg = StringFormat("\nA/C Stop-Out: %g %",stopOut); But, this instruction is not displaying any result.
Hi Is there a way, wherein any desired EA (or script) may be attached to the chart (or executed) among a given set of compiled EAs (scripts) by executing another single mq4 program? Thanks
Hi How may I include a formatted (say float type) variable's value within a string variable? Thanks in Advance
[Deleted]
Sorry for asking such a silly question but I can't get the moving average number correctly with my code //+------------------------------------------------------------------+ //| me.mq4 | //| Copyright 2015,...
Hi all, I have a problem with mql4, I'm creating a script and I need to create an array of a my class, if I declare the array before start function (outside of each functions) the array will be not created and the compiler launch an error. Then I tried to create a function which uses an parameter of...
Hey guys, I send 2 orders at the exact same time, yet one returns this error and the other gets placed just fine. Any reason why this would happen? int buyMA=OrderSend(Symbol(),OP_BUY,Lotsize,Ask,3,Ask-(StopLoss*Point),Ask+(TakeProfit*Point),"Buy order",MagicNumber,0,clrBlue); if(buyMA>0)...
Hi folks! I'm start to learn basics to construction an Expert, and it's going well so far. Eevery day some options become clearer and easy to understand, but others, not so much. Need to know how to detect the exact moment when a candle is closed... and otherwise, also when a new candle starts. Need...
The code: int candle_time_left = current_bartime + entry_signal_period_seconds - TimeCurrent(); gives warning with #property strict How should I programm it correct? Any help appreciated !
Is it possible to go back a few candles in the Strategy Tester? Or can we only go back to the start of the day?
So i have someone giving me signals but the signals they're sending me only have 4 decimals but i need signals with 5 decimals, can i still use the signals ?
Hello Gurus in the house, I am trying to convert date and time string to function as date and time real time in my ea but keeps giving error 'StrToDate' - wrong parameter count", below are the codes: extern string NewsDate = "09/06/2015"; // Year for the News to be releasedextern...
Hi, I just have got two different answers from two broker about partial order closing. One said it is not possible to close 70% of the lots at e.g. target and the residual 30% by a trailed stop, the other one of course you can but we will close 100% and open a new order with 25% of the initial...
[Deleted]
Hi forum members I'm searching for a solution to replace the confusing MT4 chart price scale using rather big round numbers. However I couldn't find anything about this subject and I conclude this hasn't been required by other traders yet? On this site I found ID "Chart scale" under https://docs...
hello, am new in mql4, and i have a question which is how to do a multiby close acording to orders magic numbers in mql4. Note: i can do it manually in meta trader but how can i do it using mql4 code
I have two versions of the same EA where the only difference is the indicator being called. EAs A and B were both working until I edited the indicator that B calls. Now B gives unmatched errors and doesn't trade but A still runs on the same time period and data. How can the problem be with the data...
Hello, I am seeing nowadays that the forum has become much less convenient to use. I am referring, as the title says, to the front page , where the stickies, articles and that stuff, have grown up in immense numbers and at the same times new topics are a miniscule 10-15 entries at the very low of...
In the manual it is said that The OrderSelect() function copies order data into program environment and all further calls of OrderClosePrice(), OrderCloseTime(), OrderComment(), OrderCommission(), OrderExpiration(), OrderLots(), OrderMagicNumber(), OrderOpenPrice(), OrderOpenTime(), OrderPrint(),...
Hi. I want to test my EA in offline mode, but having trouble getting the EA to calculate correct lot sizes when in offline mode as you know MarketInfo returns 0 values when in MT4 is in offline mode. There are other posts about this issue, but none of them seem to have a solution for this. One of...
Hey, Using MT4 build 610 from Alpari in offline mode with the /portable runtime switch, I've hit several cases where MarketInfo() don't return meaningful values. These few script lines shows what I get: double tick_value = MarketInfo(Symbol(), MODE_TICKVALUE);Print("Tick value : "...
Please tell me there is a faster method of changing profiles than, File; Profile; Find and select. Please oh please say there is. It would be great if the Currency pairs were easily changeable and the Profile remained the same. I don't know but any thing faster than this situation.
[Deleted]
Hi, Is there any who can help on this indicator? Is it possible to have MA period that can be input manually? Many Thanks
[Deleted]
Not sure where I can submit enhancement requests.. Ever since going to 5 Digits it has been become painful to read the charts... It would be nice to have an option to toggle the display to show only 4 digits (platform still uses 5 digits) on the right hand side of the chart OR emphasize the pips...
Hello, i have a ReadFile Function which does not work any more in the new build 600, can somebody help me or is there another new example for ReadFile function? Here is the Code from my Current Read File function: #property copyright "MetaQuotes Software Corp."#property link "https://www...
[Deleted]
Hi, my English not so good, so Sorry. I have written a class. class TEST{ private: string T_TakeProfit; ... ... public: const string &GetT_TakeProfit() {return T_TakeProfit;} ... And then i became an Error like " '&' reference cannot used". Can anyone tell me,...
[Deleted]
I was wondering if it's possible for an indicator to remove itself. Currently I use an indicator to create a label on the chart and update it every tick. But if you want to remove it, you have to first remove the indicator, and also remove the label. I know that in the deinit() function I can put...
Hi all, The following code allows me to download data from EURUSD, of timeframe M30, regardless of the timeframe in which it is attached. The data is exported in real time, ie, each new bar is exported at the time that appears in mt4. How I have to modify the code to add a second currency, eg

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.