NexusFi: Find Your Edge


Home Menu

 





static margin on the right side of a chart


Discussion in NinjaTrader

Updated
    1. trending_up 1,033 views
    2. thumb_up 0 thanks given
    3. group 4 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
firecan's Avatar
 firecan 
sevilla
 
Experience: Intermediate
Platform: Ninja Trader
Trading: futures
Posts: 29 since Nov 2010
Thanks Given: 9
Thanks Received: 3

Hi all, I am trying to force a static margin on the right side of a chart to have an indicator plot both on the main chart and, separately, on the right margin of the chart based on a different time scale.

I wanted to ask if this is possible to achieve and if there are any indicators that you may be aware of that have this functionality, so that I can have as a reference to write my own? Thanks in advance


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Iran Airspace Collapses 18 Points to 15.5% While Hormuz …
Prediction Markets & Event Contracts
February NFP Preview -- Why This Mornings Jobs Number Co …
Traders Hideout
Pakistan Mediator in Tehran as Hormuz Normalization Coll …
Prediction Markets & Event Contracts
Kalshi Sets $4.13B All-Time Weekly Record as Polymarket …
Prediction Markets & Event Contracts
Wood Mackenzie Drops $200 Oil Forecast -- Airspace Expir …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
Algo automated / semi-automated trading anyone?
6 thanks
2026 Fire Horse
5 thanks
  #2 (permalink)
 sg72 
Orange County, CA, USA
 
Experience: Intermediate
Platform: NinjaTrader, Fidelity ATP
Trading: ES/NQ/RTY, Equity ETFs, Options
Posts: 66 since Sep 2018
Thanks Given: 45
Thanks Received: 53


firecan View Post
Hi all, I am trying to force a static margin on the right side of a chart to have an indicator plot both on the main chart and, separately, on the right margin of the chart based on a different time scale.

I wanted to ask if this is possible to achieve and if there are any indicators that you may be aware of that have this functionality, so that I can have as a reference to write my own? Thanks in advance

I don't quite understand what you mean by "based on a different time scale", but what you're asking regarding drawing on the right margin can be done, although you'll need to do some custom rendering using OnRender & SharpDX. The standard plot functionality (invoked using AddPlot) will give you the standard plots that line up with price bars. Then you can use custom rendering on the right side margin. Should be pretty straight forward to do short horizontal line stub(s) on the right margin. You can look at the code for NT's builtin Pivots indicator as an example. If you want to do something fancier like actual plots with changing levels, that would require some extra work, but definitely doable.


Reply With Quote
  #3 (permalink)
 Neologic 
Tulsa, OK
 
Experience: Intermediate
Platform: NinjaTrader, Bookmap
Trading: Futures
Posts: 22 since Dec 2022
Thanks Given: 4
Thanks Received: 27



sg72 View Post
I don't quite understand what you mean by "based on a different time scale", but what you're asking regarding drawing on the right margin can be done, although you'll need to do some custom rendering using OnRender & SharpDX. The standard plot functionality (invoked using AddPlot) will give you the standard plots that line up with price bars. Then you can use custom rendering on the right side margin. Should be pretty straight forward to do short horizontal line stub(s) on the right margin. You can look at the code for NT's builtin Pivots indicator as an example. If you want to do something fancier like actual plots with changing levels, that would require some extra work, but definitely doable.

Why not just use the indicator on 2 charts resized right next to each other? I think that would save you a lot of time and hassle.


Reply With Quote




Last Updated on July 6, 2024


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts