Forum

tester EA log

Hi, In a simple EA code, I am trying to print number of ticks. I expect it to print from 1 in step of 1 in the following code: int tick; int OnInit () { tick = 0 ; return ( INIT_SUCCEEDED ); } void OnTick () { Print ( "Tick = " , tick++); } But it prints from some arbitrary number, like 21000

Tradingview vs MT4 EA output

Hi, I back-tested the same code (pseudo-code) with same broker's data on Trading-view web-platform and MT4 platform. Trading-view shows 200-300% profit per month almost consistent. However, MT4 gives very small profit, and big losses. Could anybody explain why there is so big difference. Thanks

display open, high, low, close on mouse hover in HeikenAshi chandle

Hi, On mouse hover over the regular candle stick , it displays open, close, high, low, and volume of that candle stick. I want to do the same thing with HeikenAshi candle stick . How can it be done, any suggestion will be appreciated? Thanks

MT4 installation on Linux, Server name

Hi, I tried to install MT4 on Linux with WINE: wine mt4setup.exe It asks for Server name, Login and password before installing MT4. I have seen on youtube people are showing installation without this information. If I do not have any broker account, how do I install MT4? Thanks

FileWrite() inside OnTick() function

Hi, In my EA testing, I want to write all Buy and sell events in a file. Here is what I did, But it is writing only one line instead of two or more. FileWrite() inside OnTick() funstion is not being executed. Any suggestion? Thanks. int handle = FileOpen("OrdersReport.csv", FILE_WRITE|FILE_CSV

Three different time

Hi, In my indicator (MA crossover), I marked "Up arrow" at the crossover, and also print out the time at the crossover. I saw three different time for the same point: One at the arrow in the attached figure ( Time: 2017.07.14 09:30) , another two in the print out in "Experts": -------------

Drawing object in EA

Hi, Probably it is an old question but I could not find a good answer. I am writing an Expert Advisor based on MAs. I want to draw "cross" or "up and down" arrow at the crossing of MAs. Also, I want to write the crossing price. How can I do it? I could do it on an Indicator but not on Expert