I would like to create a set of generic classes and functions useful for building strategies and indicators.
For example I have not found functions for examine bar and get information:
1. is outside day
2. is inside day
3. true range for that bar
4. get the highest bar for X days back...
.....
For some of functions, the bar itself is enough, for others more bars are needed (points 3,4).
My question is:
How can I create a class holding such a group of functions? The class should be generic, and able to be used in other indicators, for example through namespace clause "using MyNamespace" so I would like it to be hold in separate namespace. What in situation I do not want to create class but only global functions? Is this possible?
Of course there should be a possibility of receiving price bars (open, high,low,close, volume...) in such a class or function... How?
Thank you for answer
Majkie
Comment