Display count of indicators of the same value?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #53337 quote
    robdav
    Participant
    Veteran

    Hi

    I’m trying to display the total count of some indicators that are at the same value at any one time.

    Can anyone help please?

    For example – lets say we had a moving average, a linear regression line, indicator a and indicator b on a chart and three of them were the same value, I would like to display a 3 either on the chart or in a histogram beneath it.

    Thanks

    Rob

    #53398 quote
    Nicolas
    Keymaster
    Master

    So let’s say there are 3 indicators names a,b and c, we test their equal values and store the result in “result” variable: 

    result=a=b and a=c

    if result is true then draw an histogram:

    if result then 
     histo = 3
    endif
    
    return histo style(histogram)

     

    robdav thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Display count of indicators of the same value?


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
robdav @robdav Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
8 years, 2 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 11/20/2017
Status: Active
Attachments: No files
Logo Logo
Loading...