Thank you for the post.
I tried the condition you are questioning and do see that it is able to become true but did see that it was infrequent depending on the instrument and settings used.
Could you try the following code from an Indicator to see if you are able to see the dots drawn? I had tested on the ES 12-16 1 minute chart.
This test could at least confirm the condition is working, if it works in a test indicator but does not in the script you are working on it may be other logic playing a role as well.
if(CrossAbove(Close,High[2], 1))
{
DrawDot("dot" + CurrentBar, true, 0, Close[0], Color.Orange);
}

Leave a comment: