On the chart I want to count the times when the close is greater than the open and then print only the final result on the output window.
Below is my code:
if (Close[0] > Open[0])
{
CountEvent = CountEvent + 1;
}
Print(CountEvent);
This way on the output window I have each string for any event that is true, but I only need the print of the last value. How can I do?
Thanks for any answer.
Comment