Indicator panel dimensions

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #35049 quote
    cgy999cgy999
    Participant
    New

    Hi,

    I’m developing an indicator based on RSI and I want the y-axis fixed ( 0 to 100). Is there a function to set/fix the scale of the y-axis and stop it re-scaling (I can’t seem to find anything in the manuals). I tried to cheat and use a horizontal line at 100 but that didn’t solve it.

     

    Thanks

    Great forum 🙂

    #35094 quote
    NicolasNicolas
    Keymaster
    Legend

    Not possible, the scale will automatically adapt to the variables drawn by your indicator. The best thing you could do is set 2 variables, for instance named “max level” and “min level”, add them to the RETURN instruction and set their values to the Y-axis scale you want, so in this case:

    minlevel = 0
    maxlevel = 100
    RETURN minlevel, maxlevel

    or just:

    RETURN 0,100
    #35111 quote
    cgy999cgy999
    Participant
    New

     

    Thanks Nicolas – that does the job well enough.

Viewing 3 posts - 1 through 3 (of 3 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

Indicator panel dimensions


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
cgy999 @cgy999 Participant
Summary

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

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