Announcement

Collapse
No announcement yet.

count red candels and green candels

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • count red candels and green candels

    is it possible to write code that displays count total of red candel bars and green candel bars and refreshes every bar.

  • #2
    Re: count red candels and green candels

    sjsr
    Declare two global variables [called for example GreenCount and RedCount] and set them initially to 0 then in the main function add a routine that at BARSTATE_NEWBAR increments the appropriate counter by one depending on the condition (see example below)
    Alex




    Originally posted by sjsr
    is it possible to write code that displays count total of red candel bars and green candel bars and refreshes every bar.

    Comment

    Working...
    X