DRAWCANDLE… in the past…

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #76057 quote
    Roberto S.Roberto S.
    Participant
    Average

    Hi, I was trying to code an indicator that should draw a candle in the past in a different color when it is followed by some inside bars (basically it is like the “Master Candle”). I think this is not possible due to the drawCandle command that does not accept the barindex. Am I correct? Can I suggest this improvement to the product somewhere?

    Cheers
    R

    #76058 quote
    GraHalGraHal
    Participant
    Master

    Can I suggest this improvement to the product somewhere?

    Yes please do … here

    https://www.prorealcode.com/topic/centralization-of-queries-and-suggestions-on-prorealtime/page/15/

    Roberto S. thanked this post
    #76059 quote
    Roberto S.Roberto S.
    Participant
    Average

    Thanks GraHal

    #76061 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    A temporary & ugly workaround would be to use a rectangle, like this:

    IF high < high[1] AND low > low[1] AND high[1] < high[2] AND low[1] > low[2] THEN
       DRAWRECTANGLE(BarIndex-3,high[2],BarIndex-1,low[2])// COLOURED(R,V,B,a)
    ENDIF
    RETURN

    but you cannot change the colour of the rectangle, just the border colour, also, to make it visible you’ll have to start drawing it a bar further in the past and end it a bar closer to the current one.

    Roberto S. thanked this post
    #76087 quote
    Roberto S.Roberto S.
    Participant
    Average

    Thanks Roberto, I’ll try later.

    Cheers

    R

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

DRAWCANDLE… in the past…


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Roberto S. @roberto-s Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by Roberto S.Roberto S.
8 years, 2 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 07/15/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...