NexusFi: Find Your Edge


Home Menu

 





static margin on the right side of a chart


Discussion in NinjaTrader

Updated
    1. trending_up 313 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 1 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?
Quantum physics & Trading dynamics
The Elite Circle
Has anyone taken The Confident Trader course from aheadc …
Trading Reviews and Vendors
MC Advanced Simulated Trading.
MultiCharts
STRATEGY on MC crossEMA
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
  #2 (permalink)
 sg72 
Orange County, CA, USA
 
Experience: Intermediate
Platform: NinjaTrader, Fidelity ATP
Trading: ES/NQ/RTY, Equity ETFs, Options
Posts: 60 since Sep 2018
Thanks Given: 44
Thanks Received: 48


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




Last Updated on June 9, 2024


© 2024 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 - Privacy Policy - Downloads - Top
no new posts