Forum

implicit conversion from 'number' to 'string' warning

I have: bool MyVar = false; When I try and display a comment: Comment ("MyVar: " + MyVar); I get implicit conversion from 'number' to 'string' warning when compiling. In MT4 it would compile OK and print a 'one' or 'zero' corresponding to true or false. How do we now display booleans in a Comment

Pips?

Is there any chance that Pips could be displayed in the Trade and the History screens? We need the money as well of course but in order to evaluate how one is doing, the whole world talks Pips, not money. Perhaps it would be good to have the option of switching between Pips and Money, with a total

MT4 keeps crashing

I have a problem. My MT4 keeps crashing. I am hoping someone can help as I am pulling my hair out. I have attached the dump below. 1. It does it on my PC at home, and my PC at work. 2. Both my PC at home and PC at work are Windows 7. I have tried it on two XP boxes and it crashes as well. 3. It only

Feature Request - Provide total Points (or pips)

In the terminal screen, under the tab "Trade", all the current trades are listed, and if we right click we can elect to display each line as points. However, the sum at the bottom is meaningless to me. I know that is my problem as I can't yet get to grips with leverage and margins, never mind the

Can't get external program to run

In MT4 this worked OK: #import "shell32.dll" int ShellExecuteA(int hWnd,int lpVerb,string lpFile,string lpParameters,int lpDirectory,int nCmdShow); #import void OnTick() { ShellExecuteA (0,0,"Notepad.exe","",0,SW_SHOW); } When debugging it goes through the ShellExecute command with no error message

Button to Stop EA's has gone

In MT4 we had a button that ran or stopped all the EA's globally. This was great for when you had a programming error and wanted to stop alerts. It seems that the button in MT5 just enables or disables Auto Trading. When you click it, although the EA indicator in the charts goes to a red square, the

Build 256 has lost everything

I've just upgraded to 256 and when it restarted It asked me for log in details. None of my EAs or Templates are there. What's happened and how can I recover it? I'm using Windows 7 if that helps. I'm sure the program is still confused as to whether it is expecting data in C:\Users\Jerry.... or

Template doesn't save with an expert

I've just gone to Windows 7, so I don't know if this has anything to do with it. This was working Ok under XP, so I am suspicious. I have a panel containing a forex pair and I add various indicators and save the template. I can then go to my other panels and load the template successfully. However

I don't understand folders MT5 on Windows 7

In the terminal window, navigator, when I click on Expert Advisors, I see nothing. I right click and select 'Create'. I create a simple one, and compile it and it gets written to C:\Program Files\MetaTrader 5\MQL5\Experts\. However, I still don't see it in the navigator. Where is the navigator

EA restarts when I change Periodicity

I have an EA that calculates ADX based on PERIOD_M30. If certain things fall into line, then it Alerts me. Once an alert has been sent, I set a boolean called 'Notify' to true, so that I only get one alert. When things fall out of range again, then I reset Alert to false so it is ready for the next