Any way to have empty space on right of the chart even when scrolling ?

Forums ProRealTime English forum ProRealTime platform support Any way to have empty space on right of the chart even when scrolling ?

  • This topic has 2 replies, 2 voices, and was last updated 2 days ago by avatar0309.
Viewing 3 posts - 1 through 3 (of 3 total)
  • #253967

    Hi,

    I noticed that there is an option to set the empty space on right of the chart, after the last bar ( for example 20% ), but that applies after the last bar / traded price only.

    I was wondering if there is an option to have this empty space even when scrolling horizontally through the chart ? ( If I remember correctly this option existed in NinjaTrader platform).

    If there is no option, any way to “hide” or “cover” price for  X% of the screen on the right side by the mean of a custom indicator ( though based on documentation, I am not sure what to use to achieve it) ?

    Thank you !

    #253986

    Hi! I think, as you correctly stated, it's not possible to maintain the right margin. Only from the last bars onwards.

    #254013

    Thank you for the reply still.

    I actually found a very simple way to achieve it.

    If some day anyone would like to achieve similar result, here is what I did :

    (I used FOR loop but basically what we are doing is drawing a vertical line every 5 unit of X axis like this :

    DRAWVLINE(-400)ANCHOR(TOPRIGHT, XSHIFT, YSHIFT)coloured(30,30,30,255)style(line,5)
    DRAWVLINE(-395)ANCHOR(TOPRIGHT, XSHIFT, YSHIFT)coloured(30,30,30,255)style(line,5)
    DRAWVLINE(-390)ANCHOR(TOPRIGHT, XSHIFT, YSHIFT)coloured(30,30,30,255)style(line,5)

    etc… until 0 )

    You can modify the -400 value depending from where you wish to hide the price, and then adapt.

    At first I tried with DRAWRECTANGLE and FILLCOLOR or BORDERCOLOR and COLOURED, but unfortunately it colored only background and did not cover price and indicators. But DRAWVLINE worked just fine.

    So now I can scroll through the chart and having this seemingly “empty space”.

     

     

    3 users thanked author for this post.
Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login