• 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

    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?

    #2
    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.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by williamzz, Today, 11:37 AM
    1 response
    7 views
    0 likes
    Last Post Emma1
    by Emma1
     
    Started by thecashguys, Today, 10:18 AM
    0 responses
    6 views
    0 likes
    Last Post thecashguys  
    Started by pjsmith, Today, 09:58 AM
    0 responses
    8 views
    0 likes
    Last Post pjsmith
    by pjsmith
     
    Started by bebbus, Today, 09:13 AM
    0 responses
    6 views
    0 likes
    Last Post bebbus
    by bebbus
     
    Started by roblogic, Today, 08:04 AM
    0 responses
    7 views
    0 likes
    Last Post roblogic  
    Working...
    X