Display count of indicators of the same value?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #53337 quote
    robdavrobdav
    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
    NicolasNicolas
    Keymaster
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 NicolasNicolas
8 years, 10 months ago.

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