Auto Draw 00’s lines

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #163033 quote
    RobinJK
    Participant
    Junior

    Here’s a indicator that draws you a horisontal grid at even price levels.
    Need to be changed depending on the instrument.

    //Actual Line
    DRAWHLINE(100)
    DRAWHLINE(100+100)
    DRAWHLINE(100+(100*2))
    DRAWHLINE(100+(100*(2+1)))
    DRAWHLINE(100+(100*(2+x)))coloured(0,200,0)STYLE(line,3)
    
    //Optional Extra deviation lines. 
    DRAWHLINE(105)
    DRAWHLINE(105+100)
    DRAWHLINE(105+(100*2))
    DRAWHLINE(105+(100*(2+1)))
    DRAWHLINE(105+(100*(2+x)))coloured(0,200,0)STYLE(DOTTEDline,1)
    DRAWHLINE(195)
    DRAWHLINE(195+100)
    DRAWHLINE(195+(100*2))
    DRAWHLINE(195+(100*(2+1)))
    DRAWHLINE(195+(100*(2+x)))coloured(0,200,0)STYLE(DOTTEDline,1)
    
    y=x
    x=y+1
    
    RETURN
    

    Can also be written like this for easier change of value

    //Actual Line
    Linevalue=100
    DRAWHLINE(Linevalue)
    DRAWHLINE(Linevalue+Linevalue)
    DRAWHLINE(Linevalue+(Linevalue*2))
    DRAWHLINE(Linevalue+(Linevalue*(2+1)))
    DRAWHLINE(Linevalue+(Linevalue*(2+x)))coloured(0,200,0)STYLE(line,3)
    
    //Optional Extra deviation lines. 
    DRAWHLINE(105)
    DRAWHLINE(105+100)
    DRAWHLINE(105+(100*2))
    DRAWHLINE(105+(100*(2+1)))
    DRAWHLINE(105+(100*(2+x)))coloured(0,200,0)STYLE(DOTTEDline,1)
    DRAWHLINE(195)
    DRAWHLINE(195+100)
    DRAWHLINE(195+(100*2))
    DRAWHLINE(195+(100*(2+1)))
    DRAWHLINE(195+(100*(2+x)))coloured(0,200,0)STYLE(DOTTEDline,1)
    
    y=x
    x=y+1
    
    RETURN
    
    Nicolas thanked this post
    #163034 quote
    RobinJK
    Participant
    Junior

    I saw that one could upload it into the library, il do that instead. You may delete this post.

    #163040 quote
    robertogozzi
    Moderator
    Master
    #163054 quote
    Vonasi
    Moderator
    Master

    RobinJK  – We won’t delete your topic as it might be of interest to someone.

    I have moved your topic to the correct forum as it is an indicator topic and so should be in the ProBuilder forum. Please be more careful with future topics to ensure that they are posted in the correct forum.

    _ ProRealTime Platform Support: only platform related issues.
    _ ProOrder: only strategy topics.
    _ ProBuilder: only indicator topics.
    _ ProScreener: only screener topics
    _ General Discussion: any other topics.
    _ Welcome New Members: for new forum members to introduce themselves.

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

Auto Draw 00’s lines


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
RobinJK @robinjk Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by Vonasi
4 years, 11 months ago.

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