![]() |
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
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Member
Join Date: Jul 2009
Posts: 85
Thanks: 2
Thanked 4 times in 3 posts
|
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.
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
|
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.
Adam P.
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
|
You want
Code:
DrawOnPricePanel = false; |
|
|
|
|
The following user says thank you to koganam for this post: |
|
|
|
#4 |
|
Member
Join Date: Jul 2009
Posts: 85
Thanks: 2
Thanked 4 times in 3 posts
|
worked great thanks....
....... do stuff in price window ........ DrawOnPricePanel = false; ....... do stuff in indicator window ........ DrawOnPricePanel = true; ....... back to doing stuff in price window ........ |
|
|
|
|
|
#5 |
|
Member
Join Date: Apr 2012
Posts: 34
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
|
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.
Adam P.
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Aug 2011
Location: France
Posts: 268
Thanks: 24
Thanked 15 times in 15 posts
|
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.
Last edited by mate41; 09-21-2012 at 10:01 AM.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |