Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Right side margin of chart

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Right side margin of chart

    Is it possible to set the right side margin of the chart via NinjaScript?

    Thank's

    #2
    Hello starcd,

    Thank you for your note.

    Yes, it is possible, however, it's worth noting that this property is designed to be set by the user and it's not guaranteed to take effect.



    protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
    {
    // Instantiate a ChartControlProperties object to hold a reference to chartControl.Properties
    ChartControlProperties myProperties = chartControl.Properties;

    // Set the BarMarginRight property to 50
    myProperties.BarMarginRight = 50;
    }

    Please let us know if we may be of further assistance to you.

    Comment


      #3
      Thank's a lot! It is for putting more Text via draw.text to the last bar in case of a Entry- or ExitSignal...

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      56 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      132 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      73 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X