How to Start with Metatrader 5 - page 13

Sergey Golubev
Moderator
106680
Sergey Golubev  
I am suggesting to read this post: Preliminary Announcement of the MetaTrader 5 Updates: Scalper Depth of Market and New Tools for One-Click Trading - there are some very good features improved: one click trading improved, immediate closing the trade - good for scalpers (for me for example :) ) and more and more.
Sergey Golubev
Moderator
106680
Sergey Golubev  

Economic calendar - some comment with usefull links about how to use it with MT5

And I want to remind this very good article : MetaTrader 5 - More Than You Can Imagine!

Sergey Golubev
Moderator
106680
Sergey Golubev  
The other great article is this one: Migrating from MQL4 to MQL5
Sergey Golubev
Moderator
106680
Sergey Golubev  

Some members are asking some questions on the forum while those questions should be forwarded to Service Desk. So, please read this good thread about it Get in touch with developers using Service Desk!

Sergey Golubev
Moderator
106680
Sergey Golubev  
On-Chart-Trading with Metatrsder 5 - this is new good improvement for MT5 terminal for latest build - strongly recommended to read: https://www.mql5.com/en/forum/53/page14#comment_465618
List of changes in MetaTrader 5 Client Terminal builds
List of changes in MetaTrader 5 Client Terminal builds
  • www.mql5.com
See the "MQL5 Reference / Standard constants, enumerations and structures / Named constants / Other constants " section.
Suntzu10
22
Suntzu10  

Hi

Can someone help???

 From the code below,  I get the answer 1.0   and not 1.66666666666667

  what is wrong with it?

 

//from script 

 void OnStart()
  {  
   double L = 5 / 3;
   Comment(L)

}

 

Thanks in Advance

Sergey Golubev
Moderator
106680
Sergey Golubev  

Hi Suntzu10,

I am not a coder sorry. I just hope that someone will help with it.

Alain Verleyen
36571
Alain Verleyen  
Suntzu10:

Hi

Can someone help???

 From the code below,  I get the answer 1.0   and not 1.66666666666667

  what is wrong with it?

 

//from script 

 void OnStart()
  {  
   double L = 5 / 3;
   Comment(L)

}

 

Thanks in Advance

Please use SRC button when you post code.

Try this :

   double L = 5.0 / 3.0;
Suntzu10
22
Suntzu10  
angevoyageur:

Please use SRC button when you post code.

Try this :


Ah, thanks. i got 1.666666666666667. 

OK in the future I will use SRC button for code.   

Suntzu10
22
Suntzu10  
newdigital:

Hi Suntzu10,

I am not a coder sorry. I just hope that someone will help with it.

 

I am new to MT5 and MT5's coding too. 

I hope i can ask  questions about coding  here (going forward) when I get stuck again... if this is not the best place or not appropriate please direct me to a proper place. 

Cheers :)