Auto Draw 00’s lines

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #163033 quote
    RobinJKRobinJK
    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
    RobinJKRobinJK
    Participant
    Junior

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

    #163040 quote
    robertogozzirobertogozzi
    Moderator
    Legend
    #163054 quote
    VonasiVonasi
    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.
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

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 VonasiVonasi
5 years, 7 months ago.

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