Help with DRAWCANDLE

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #177879 quote
    IG_CFD_TraderIG_CFD_Trader
    Participant
    Average

    Hello,

    Is it possible to draw 2 candles (beside one another) above the 10am bar?

    For example:

    If Opentime = 100000 then
    DRAWCANDLE(Open1,High1,Low1,Close1) COLOURED(255,255,255) BORDERCOLOR(255,255,255)
    DRAWCANDLE(Open2,High2,Low2,Close2) COLOURED(255,255,255) BORDERCOLOR(255,255,255)

    Where candles are next to each other.

    I cannot find a way to offset 2 DrawCandle commands and draw then next to each other.

    Regards,

    #177881 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    You can’t offset them, the second one will override the first one.

    You can only offset them vertically by adding a number to each of OHLC:

    Offset = 200*PipSize
    DRAWCANDLE(Open1,High1,Low1,Close1) COLOURED(255,255,255) BORDERCOLOR(255,255,255)
    DRAWCANDLE(Open2+Offser,High2+Offser,Low2+Offser,Close2+Offser) COLOURED(255,255,255) BORDERCOLOR(255,255,255)

    200 can be right for a 4h or Daily chart, too big for a 1-minute TF.

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

Help with DRAWCANDLE


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
IG_CFD_Trader @wnakhoul Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
5 years ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 09/19/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...