How do I code(in 10.2) a horizontal line?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #20462 quote
    robert123
    Participant
    Master

    Hello Nicolas,

    I am trying to code the last price of an indicator as a horizontal line, visually similar to a bid ask. Ideally the length of the line would be truncated.

    I would be very grateful for your help.

    Robert

    #20551 quote
    Nicolas
    Keymaster
    Master

    What do you call exactly the “last price of an indicator”? Do you only want to draw the last value of the indicator? Maybe an example would make it brighter to me 🙂 Thank you.

    #20554 quote
    robert123
    Participant
    Master

    Yes thats what I am trying to do, but as a straight horizontal line on the right hand side of the chart.But not sure if it can be done in 10.2.

    sort of thinking …(it’s wrong I know)

    for close[5] to close[0] do

    B=averge[x](close)

    etc

    Robert

    #20557 quote
    Nicolas
    Keymaster
    Master

    Nothing can be drawn at the right side of the chart “only”. But we can draw an horizontal line that will cross the entire chart like in the example attached (5 periods moving average current value), but it is only for new version 10.3.

    #20585 quote
    robert123
    Participant
    Master

    I suspected as much. Thanks for your replies.

    R

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

How do I code(in 10.2) a horizontal line?


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
robert123 @robert123 Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by robert123
9 years ago.

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