Forum

Datetime comparison

How can I to a datetime comparison? In my code, I use one datetime variable, lets say: datetime forbiddenDate; And some time during my strategy I give to this variable a value forbiddenDate = Time[0]; Then I want to check date to see is it good time to open if(forbiddenDate != Time[0]){ //open } But

Do you comment your code?

I have one general topic. As I said in title: Do you comment your code? Do you think it's good if someone comments his code or if you are working for someone, you make documentation, or you are doing both

EURCAD window

Hi, I installed MT, and started watching all EUR pairs, but I can't find EURCAD pair. A found all major pairs with EUR, but not EURCAD. I created MQL4 command: Print("EURCAD:"+ iClose ("EURCAD",PERIOD_M1,0)); it always get same number: 1.67865 Any help? P.S. With

Find all brokers on my system

Hi, I was wondering is there a way to find (program to find) all brokers on your system that is installed? I'm C# programmer, and I was trying to find paths in Windows regisry and I made that happened, but after new install of Meta Trader demo platform (different broker) that information is