Forum

strange datetime assignment

So I have a strange problem. I tried to verify NewBar appearance with the following code from Samuels article " Step-By-Step Guide to writing an Expert Advisor in MQL5 for Beginners ". I tried the code on System Tester and I saw that is no trade. Than I saw that the Old_Time variable take the value

bar up vs bull candle (bar down vs bear candle)

Can not figure out what is the difference in MT4/Mt5 chart properties colors tab. Seems to me that colors for bear candle bull candle have no effect. Please enlightened me

russian comments strange displayed character

Hello, Long time ago find the solution but now I forget it. In a lot of indicators/EAs posted by russian people the comments are like: Ìèíèìàëüíàÿ ïðèáûëü äëÿ ñòàðòà I know that this is not a language, it is about character set conversion but don't know how to fix this. Thanks in advance for help

Experts messages, how to save them ?

Hello, Newbie question: I have an expert that output some messages (with Print()). I let it run more time and I observed that the outputs in Message Terminal are not saved in log file. I also observed that this output is, I think, fixed number of lines or storage space as older messages disappear

Recover purchased EA/Indicators that I purchased on the market

Hello, 3 years ago I've purchased 4/5 EA/indicators on market. Now the PC where they where saved is dead. Is it any possibility to recover them ? Are they stored anywhere, or only the mercy of the developer could save me

ZigZag indicator on MT4 version 4 build 1010; bug or am I stupid?

I have a newbie question about coding. As you see on below picture I attached 2 ZigZag indicator to a chart. First with parameter Deviation=1000 color white and second with Deviation=5 color red. As you see there is not influence of Deviation parameter (indicators are overlapped). I looked at the

close the only one open order

Hy, beginner question, I have an EA that closes open positions like this: for (i= OrdersTotal ()- 1 ; i>= 0 ; i--){ OrderSelect (i,SELECT_BY_POS,MODE_TRADES); if (OrderSymbol()!= Symbol () || OrderMagicNumber()!=magic) continue ; if

Custom indicator coding dilema

Hello, first a little introduction: I am newbie to mql4 and coding. I try to understand a simple well known custom indicator to be able to code my own one. But I can not understand it. So this is the code: #property copyright "Kalenzo" #property link "bartlomiej.gorski@gmail.com" //----

record bid and ask for every tick in a file

Hello, A few month ago, maybe more than a year, I found an indicator on this forum that do the "Subject". Unfortunately I had to reinstall windows and now I've done a search with no success. Please if anyone could give me a link I would be very grateful. Thanks in advance

indicator color coding

Hello, I am newbie on MT4 coding. I am sure it is very simple to code what I want but for me is very complicated. So I want to modify to the code of a custom indicator like this: if condition==true indicator color=blue else indicator color=red endif Please give me some instructions how to code