Go Back   NinjaTrader Support Forum > NinjaTrader 8 > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

NinjaTrader
Reply
 
Thread Tools Display Modes
Old 09-20-2017, 10:23 AM   #1
Zeos6
Senior Member
 
Join Date: Jan 2011
Posts: 552
Thanks: 15
Thanked 41 times in 36 posts
Default Drawing on Multiple Panels

Hi,

Is it possible to draw onto the main price panel and to also draw on a separate panel using the same indicator? I have an indicator that performs some calculations. I would like to display those results on the main price panel. However, I also calculate some secondary results. I would like to show those on a different panel. Is this possible? Thank you.
Zeos6 is offline  
Reply With Quote
Old 09-20-2017, 10:57 AM   #2
NinjaTrader_Jim
NinjaTrader Customer Service
 
NinjaTrader_Jim's Avatar
 
Join Date: Nov 2016
Location: Denver, CO
Posts: 1,110
Thanks: 65
Thanked 265 times in 256 posts
Default

Hello Zeos6,

Thanks for your inquiry.

The supported technique would be to use 2 separate indicators. However, some clients have had luck by explicitly setting DrawOnPricePanel before they draw their Draw Objects.

Here is a rough example of how this can be done with Drawing Objects:
Code:
protected override void OnStateChange()
{
	if (State == State.SetDefaults)
	{
		IsOverlay									= false;
		DrawOnPricePanel							= false;				
	}
...
Code:
if(CurrentBar < 3) return;
DrawOnPricePanel = true;
Draw.Dot(this, CurrentBar.ToString(), true, 3, Close[0], Brushes.Blue);
DrawOnPricePanel = false;
Draw.Dot(this, CurrentBar.ToString(), true, 3, Open[0], Brushes.Blue);
Please let me know if I may be of further assistance.
NinjaTrader_Jim is offline  
Reply With Quote
Old 09-20-2017, 12:26 PM   #3
eDanny
Vendor
 
eDanny's Avatar
 
Join Date: Jul 2008
Location: East Rochester, NY
Posts: 1,218
Thanks: 15
Thanked 156 times in 127 posts
Default

I thought, from way back, that this would be supported in NT8. What happened?
eDanny
NinjaTrader Ecosystem Vendor - Integrity Traders
eDanny is offline  
Reply With Quote
Old 09-20-2017, 12:57 PM   #4
NinjaTrader_Jim
NinjaTrader Customer Service
 
NinjaTrader_Jim's Avatar
 
Join Date: Nov 2016
Location: Denver, CO
Posts: 1,110
Thanks: 65
Thanked 265 times in 256 posts
Default

Hello eDanny,

As far as I know, this has been something that had worked in NinjaTrader 7 but was not officially supported and thus was not documented in the Help Guide. The Help Guide for NinjaTrader 8 does not describe explicitly describe being able to do this so it would still fall under the "unsupported" category.

I am aware of one issue where doing such had caused unreliable results in NinjaTrader 8, but there is not an open feature request tracking interest to officially supporting this.

If you would like, I can submit a feature request and make sure votes are counted for you and Zeos6 so this can be documented and officially supported.

For now though, it should be minded that there might be some unexpected behavior when doing such.
NinjaTrader_Jim is offline  
Reply With Quote
Old 09-21-2017, 06:46 AM   #5
Zeos6
Senior Member
 
Join Date: Jan 2011
Posts: 552
Thanks: 15
Thanked 41 times in 36 posts
Default

Thanks for the clarification and the work around Jim. I will give it a try.
As to the feature request for this, YES. Please put it in. I too find it odd that this is not yet supported.
Zeos6 is offline  
Reply With Quote
Old 09-25-2017, 11:43 AM   #6
NinjaTrader_Jim
NinjaTrader Customer Service
 
NinjaTrader_Jim's Avatar
 
Join Date: Nov 2016
Location: Denver, CO
Posts: 1,110
Thanks: 65
Thanked 265 times in 256 posts
Default

Hello,

The ticket number for the feature request is SFT-2701. When it is implemented, you can reference this ticket number in the Release Notes of the version of NinjaTrader that includes this feature.

Release Notes for NinjaTrader 8 can be found here: https://ninjatrader.com/support/help...ease_notes.htm

Feature requests are fulfilled based on our development team's schedule and priorities and we cannot provide a time frame for it to become available.
Last edited by NinjaTrader_Jim; 09-25-2017 at 11:47 AM.
NinjaTrader_Jim is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
drawing on multiple panels from within an indicator soulfx Version 8 Beta 13 12-10-2015 01:20 PM
strategy drawing to 2 panels? NutFlush General Development 4 07-22-2013 03:45 AM
Drawing Objects on Multiple Panels kenb2004 Strategy Development 8 02-15-2011 02:30 PM
indicator drawing in two panels telbentel General Development 1 12-14-2010 02:26 PM
Strategy that includes multiple display panels and multiple time frame data burrmann Strategy Development 1 08-03-2010 04:53 AM


All times are GMT -6. The time now is 12:43 PM.

Futures, foreign currency and options trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.

CFTC Rules 4.41 - Hypothetical or Simulated performance results have certain limitations, unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

This website is hosted and operated by NinjaTrader, LLC (“NT”), a software development company which owns and supports all proprietary technology relating to and including the NinjaTrader trading platform. NT is an affiliated company to NinjaTrader Brokerage (“NTB”), which is a NFA registered introducing broker (NFA #0339976) providing brokerage services to traders of futures and foreign exchange products. This website is intended for educational and informational purposes only and should not be viewed as a solicitation or recommendation of any product, service or trading strategy. No offer or solicitation to buy or sell securities, securities derivative or futures products of any kind, or any type of trading or investment advice, recommendation or strategy, is made, given, or in any manner endorsed by any NT affiliate and the information made available on this Web site is not an offer or solicitation of any kind. Specific questions related to a brokerage account should be sent to your broker directly. The content and opinions expressed on this website are those of the authors and do not necessarily reflect the official policy or position of NT or any of its affiliates. 

Vendors along with their websites, products and services, collectively referred to as (“Vendor Content”), are independent persons or companies that are in no manner affiliated with NT or any if its affiliates. NT or any of its affiliates are not responsible for, do not approve, recommend or endorse any Vendor Content referenced on this website and it’s your sole responsibility to evaluate Vendor Content. Please be aware that any performance information provided by a vendor should be considered hypothetical and must contain the disclosures required by NFA Rule 2-29(c). If you are interested in learning more about, or investigating the quality of, any such Vendor Content you must contact the vendor, provider or seller of such Vendor Content. No person employed by, or associated with, NT or any of its affiliates is authorized to provide any information about any such Vendor Content.