• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Right Side Margin

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

  • hir04068
    started a topic Right Side Margin

    Right Side Margin

    hello,
    can we write text or draw any object which can remain in the fixed spot within the "right side margin" area?

  • NinjaTrader_Kate
    replied
    Hello hir04068,

    Thanks for your post.

    Yes, using OnRender, you would be able to render objects that could remain in the right side margin.

    https://ninjatrader.com/support/help.../?onrender.htm

    The margin can be adjusted in OnRender() using ChartControlProperty BarMarginRight:

    https://ninjatrader.com/support/help...properties.htm

    You could specify a certain margin size programmatically and then render your desired object in that space.

    For an example of using OnRender, look at the built in indicator "SampleCustomRender.cs" which contains many comments on the methods/properties used to create its drawing.

    Certain other indicators, such as Pivots and ZigZag also contain/use OnRender and would give you good examples as well.

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

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by nailz420, Yesterday, 08:38 AM
2 responses
11 views
0 likes
Last Post nailz420  
Started by bouncetherubble, Today, 06:56 PM
0 responses
2 views
0 likes
Last Post bouncetherubble  
Started by James108, Today, 06:09 PM
0 responses
5 views
0 likes
Last Post James108  
Started by RandanAL, Today, 05:13 PM
0 responses
5 views
0 likes
Last Post RandanAL  
Started by timko, Today, 05:06 PM
0 responses
6 views
0 likes
Last Post timko
by timko
 
Working...
X