NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

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

Reply
 
Thread Tools Display Modes
Old 10-28-2011, 09:57 PM   #1
tulanch
Member
 
Join Date: Jul 2009
Posts: 85
Thanks: 2
Thanked 4 times in 3 posts
Default dynamic horizontal line(s)

I have an oscillator type indicator. I want to draw a horizontal line at the most recent maximum value (call this MAXLINE) and then a horizontal line at the most recent minimum value ( call this MINLINE).

If the occilator then cycles back up towards the top, but does not hit the existing maximum line (MAXLINE), but insteads turns back down, I want to dynamically move the MAXLINE to that new more recent high value. I want to continue this logic for both MAXLINE and MINLINE.

I can get this to work in the price payne... I fully understand the logic invovled to determine if the value is the max or the min and draw horizonallines (sort of a support and resistence concept)...

How do I do this in the indicator payne?

Overlay true/false has no bering on DrawHorizontalLine...

It appears DrawHorizontalLine always draws in the price window...

It appears I can not access Add (new Line (Color , value, name)) - no luck looking for examples of this...

It appears the use of Plot would not create the desired horizontal line affect I am looking for as prior lines would be within the Plot array....more of a stair step output instead of a simple Left side to Right side horizontal line...

I can do this using chart tools easy enough... but really want to do this programically

Looking for ideas, suggestions, just point and I'll dig...
Last edited by tulanch; 10-28-2011 at 10:00 PM.
tulanch is offline  
Reply With Quote
Old 10-29-2011, 10:19 AM   #2
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

tulanch,

I am happy to assist you.

It appears someone else wanted something similar in this forum : http://www.ninjatrader.com/support/f...p/t-34629.html

DrawOnPricePanel : http://www.ninjatrader.com/support/h...pricepanel.htm

Please let me know I may assist further.
NinjaTrader_AdamP is offline  
Reply With Quote
Old 10-29-2011, 03:06 PM   #3
koganam
Senior Member
 
Join Date: Feb 2008
Location: Durham, North Carolina, USA
Posts: 3,201
Thanks: 24
Thanked 1,227 times in 998 posts
Send a message via Skype™ to koganam
Default

You want

Code:
DrawOnPricePanel = false;
koganam is offline  
Reply With Quote
The following user says thank you to koganam for this post:
Old 10-29-2011, 05:09 PM   #4
tulanch
Member
 
Join Date: Jul 2009
Posts: 85
Thanks: 2
Thanked 4 times in 3 posts
Default

worked great thanks....


.......
do stuff in price window
........
DrawOnPricePanel = false;
.......
do stuff in indicator window
........
DrawOnPricePanel = true;
.......
back to doing stuff in price window
........
tulanch is offline  
Reply With Quote
Old 09-17-2012, 02:55 PM   #5
isto313
Member
 
Join Date: Apr 2012
Posts: 34
Thanks: 0
Thanked 0 times in 0 posts
Default Support and Res

Hello,

I was wondering if there was a indicators that calculates support/ resistance lines and adds them to the charts for you...

I've notice that there are other chart software can do that for you and wanted to see if NT can do the same.
Thanks
isto313 is offline  
Reply With Quote
Old 09-17-2012, 02:57 PM   #6
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

isto,

Yes, indicators such as these are available here : http://www.ninjatrader.com/support/f...ks.php?catid=4

I would suggest browsing to find one that suites you best. Some of them are called Session Pivots, etc.
NinjaTrader_AdamP is offline  
Reply With Quote
Old 09-21-2012, 09:36 AM   #7
mate41
Senior Member
 
Join Date: Aug 2011
Location: France
Posts: 268
Thanks: 24
Thanked 15 times in 15 posts
Default

Take a look at this indicator available on the free nt-indicators "DynamicSR". Maybe it can help.
PS: i don't know where it came from but here it is.
Attached Files
File Type: zip DynamicSR.zip (5.4 KB, 13 views)
Last edited by mate41; 09-21-2012 at 10:01 AM.
mate41 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
Plot Horizontal Line ? Torso Strategy Development 2 09-17-2010 11:52 AM
horizontal line help shan777 Charting 1 03-09-2010 04:45 PM
Horizontal Line Inputs Baseheadz Suggestions And Feedback 3 06-09-2009 01:08 PM
Horizontal Draw Line mohdfraz General Programming 7 01-09-2009 12:15 PM
value of a horizontal line junkone Charting 1 11-29-2008 04:45 AM


All times are GMT -6. The time now is 11:15 PM.