HH HL – Previous candles colorations

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #147607 quote
    BobFlynn
    Participant
    Senior

    Hello,

    I’m currently trying to translate this very simple indicator onto .PRT : https://www.tradingview.com/script/Pr9hTL4v-Supply-Demand-ZONE/

    It is composed of 2 parts, and just detects a serie of HH HL using the condition below :

    isHigherHigh = high>high[1] and high[1]>high[2] and close>close[1] and close[1]>close[2] and close>open and close[1]>open[1] and close[2]>open[2] and low>open[1] and low[1]>open[2] and (open+low)<(open+close)

    My issue is, the original code seems to color the current candle, the candle[-1] and the candle[-2] . Is it possible to do with PRT ?

    So far I’ve managed to color only the current candle and “redraw” the previous ones.

    Any help is welcome, thank you!

    #147610 quote
    robertogozzi
    Moderator
    Master

    Topic moved from th French support forum to the English one.

    Only post in the language of the forum that you are posting in. For example English only in the English speaking forums and French only in the French speaking forums. Thank you 🙂

    #147701 quote
    Nicolas
    Keymaster
    Master

    Not possible to plot candlestick in the past with the DRAWCANDLE instruction. You’ll have to find another way to mark these bars in the past, with symbols for instance (DRAWTEXT).

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

HH HL – Previous candles colorations


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
BobFlynn @bobflynn Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by Nicolas
5 years, 3 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 10/16/2020
Status: Active
Attachments: No files
Logo Logo
Loading...