I have a question which I believe is simple.
What is the best way to do the following.
Get the High of the last bar High[1] and compare it to the High 2 bars ago High[2] and then if it's higher, store the value and begin counting how many bars this occurs for?
if (High[1] > High[2])
{
// It's true, so store it and start counting
}
else
{
//reset counter?
}
Thanks,

Comment