Poor coding style on bar() man page?

Posted By: scotpip

Poor coding style on bar() man page? - 11/12/16 12:11

Hi

I'm new to Zorro, so may be misunderstanding. But the first line of the examples on the bar() man page is:

var BarRange = 0.0030; // 30 pips bar range

Any newbie programmer hard-coding the pip size like this would get a nasty shock when they trade a Yen pair.

Can I suggest replacing this with:

var BarRange = PIP * 30; // 30 pips bar range
© 2024 lite-C Forums