Download MetaTrader 5

Experts: A Sample: Lot size computing

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
184346
MQL4 Comments
16319
MQL4 Comments  

Useful indeed sir, but your coding style is amongst the worst I have ever seen! What's with the commented line numbering and the semi-colons at the ends of the lines? Were you not taught to indent your blocks?

Airat Safin
1300
Airat Safin  
Hello
Semicolons at the ends of the lines and line numbering are result of code right margin control.
I always inspect horizontal scroll bar to keep it invisible.
Horisontal scroll bar appearance signalizes that somewhere code right margin is broken.
Code right margin control lets me be sure that all my code is in my sight.

Best regards

Ais

Airat Safin
1300
Airat Safin  
Lot size computing: Additional Information
In this code sample "Position" means marginal position.
Value of "ali.PositionPoints" variаble means size of marginal position in points.
To add comments, please log in or register