![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
|
Hi Josh / Ray
Please advise on the tool to be used for drawing parallel lines on the charts. I would like to use this tool to draw a parallel line in parallel to a trend line, drawn using the trendline indicator. Thanks, |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
http://www.ninjatrader-support.com/H.../DrawLine.html
Use that. Just make sure the two lines have the same slope and then you'll have parallel lines.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
|
Can some one help me to develope a code for drawing a parallel line to an existing line in the chart?
Appreciate your help. Thanks, |
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
You will need to determine the slope of the trendline indicator's line and then do some math to draw your own line. Unfortunately I cannot provide exact code for you due to bandwidth reasons.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Certified NinjaScript Consultant
Join Date: Oct 2007
Location: Northern Illinois
Posts: 256
Thanks: 0
Thanked 3 times in 3 posts
|
Is there any way to query an existing graphical object (such as a line) to get the endpoints of the line?
MT4 lets you do this with "GetObjectData()" or something similar. Thanks, Ben |
|
|
|
|
|
#6 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
There could be ways to do it in C#, but unfortunately we cannot offer support for that level of programming.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Turning off Avg. & MACD lines | jeremymgp | Charting | 1 | 08-11-2007 04:41 AM |
| Draw Horizontal Lines | Richard Von | Indicator Development | 11 | 08-02-2007 12:23 PM |
| Extending drawn lines | LG | Charting | 9 | 04-22-2007 09:32 PM |
| Horizontal Lines | guym | Suggestions And Feedback | 2 | 12-07-2006 08:32 AM |
| more lines in the DOM | jeff1 | Suggestions And Feedback | 4 | 10-21-2006 02:20 PM |