vertical line offset so it does not cover wicks

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #155499 quote
    trevortrevor
    Participant
    Senior

    Hi. I wanted to draw a vertical line on the main chart. If draws it through the center of the candle and I cannot see the wicks.

    DRAWVLINE (barindex) coloured(34,153,84)

    Have tried – DRAWVLINE (barindex -1) coloured(34,153,84)

    but that moves it one full candle, and when I tried – DRAWVLINE (barindex -.1) coloured(34,153,84) – nothing happens.

    Is there a way to move the candle off the wick?

    Or maybe make the wick thicker? I could not find a way to do this in the latest version.

    Thanks in advance.

    #155502 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Try with DrawSegment:

    Offset = 20 * PipSize
    Length = range*5
    DRAWSEGMENT(BarIndex,high+Offset,BarIndex,high+Length) COLOURED(34,153,84,255)
    DRAWSEGMENT(BarIndex,low-Offset,BarIndex,low-Length) COLOURED(34,153,84,255)
    Return

    You can also use STYLE to change the style and thickness of the lines.

    #155643 quote
    trevortrevor
    Participant
    Senior

    Thanks Robertogozzi. That’s done the trick. The range is great too. Shows strength or lack of it.

    Is there any way to extend the lines to the top and bottom. Only cause that is what I am use to!

    So if it cannot be done that is okay.

    Thanks again. This is just what I needed.

    #155644 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Sorry, there’s no way to know where the top and bottom are.

    At line 2 you can multiply RANGE by 10 or 20. Maybe this could do.

    #155645 quote
    trevortrevor
    Participant
    Senior

    Better cancel that as it would not be effective for the strength

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

vertical line offset so it does not cover wicks


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

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

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