Horizontal lines when indicator same value for two candles

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #54657 quote
    robdavrobdav
    Participant
    Veteran

    Hi

    I would like something that will draw a horizontal line every time an indicator has been at the same value for two candles or more over the last x candles.

    Is this possible please?

    Thanks

    Robert

    #54684 quote
    NicolasNicolas
    Keymaster
    Legend

    What indicator please? Do you have an example?

    #54692 quote
    robdavrobdav
    Participant
    Veteran

    Hi Nicolas,

    fibo3 in this example?

    Thanks

    Rob

    //parameters
    // period = 50

    ll = lowest[period](low)
    hh = highest[period](high)
    //mid = (ll+hh)/2

    fibo3 = (hh-ll)*0.382+ll

    #54695 quote
    NicolasNicolas
    Keymaster
    Legend

    It already draws horizontal lines, it’s a Fibonacci level on price. So I’m not sure to understand exactly your query..

    #54696 quote
    robdavrobdav
    Participant
    Veteran

    You’re right, I’m being daft, long weekend.

Viewing 5 posts - 1 through 5 (of 5 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

Horizontal lines when indicator same value for two candles


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
robdav @robdav Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by robdavrobdav
8 years, 10 months ago.

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