Forum

How to print the number of the line?

Hello, I would like to print the number of the line in my code. For example if (condition1 && condition2){ Print ( "Error in line " ,GetLineNumber()); } where the function GetLineNumber() is a function the gives the number of the line where it is called. Is there such a function out there? Any

OnTick() or OnTimer()?

Hello folks, I'm building an EA that must place a trade at the beginning of a new bar. Regarding to less time delay from the opening time of the new bar, which one is more recommended to use: OnTick() or OnTimer()