I have programmed several indicators now, and have some idea what I am doing. But I am at a bit of a loss to know how to tackle some parts of this one.
I will give a bit of an example of how the count back line works. Say the market is in a down trend. The count back starts at the most recent low, then the next bar back that we are looking for is the prior one with a higher high, and then the bar before that one that we want is the next one back with a higher high. Then there is to be a ray drawn off the high of that third highest high bar back, to the right of the chart. Or plot a square line?
Ok, what I need help with is how to put that into ninjascript. I don't know how I would reference the bars that I mentioned. I need to tackle this first then I have to work out how to do the plot or rays.
If there is already an indicator for this I'd love to have it. Otherwise any help you can offer will be appreciated. Even a similar indicator that I could look at the code and learn from that what to do?
Cheers,
Ken.
Comment