NinjaTrader Support Forum  

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 04-11-2010, 03:18 PM   #1
rtj4201
Senior Member
 
Join Date: Jan 2009
Posts: 333
Thanks: 0
Thanked 0 times in 0 posts
Default Trendline Angle

Is there currently an Indicator that will plot a trendline with a specified angle? I believe TradeStation does this?

Either free or by one of the script consultants?
rtj4201 is offline  
Reply With Quote
Old 04-11-2010, 09:08 PM   #2
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,

You can calculate a desired angle and use DrawLine() with the x and y positions:
http://www.ninjatrader-support.com/H.../DrawLine.html
NinjaTrader_Ben is offline  
Reply With Quote
Old 04-11-2010, 09:32 PM   #3
rtj4201
Senior Member
 
Join Date: Jan 2009
Posts: 333
Thanks: 0
Thanked 0 times in 0 posts
Default

I was thinking in terms of using the graphing tools and dragging and dropping a trendline with the ability to rotate it until I got a specific angle based on some input from the chart.
rtj4201 is offline  
Reply With Quote
Old 04-12-2010, 06:41 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

This is unfortunately not directly possible, however you could work with the Gann Fan tool and use the predefined angles.
NinjaTrader_Bertrand 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
SMA angle degree ? Duval NinjaScript File Sharing Discussion 3 10-16-2009 04:22 PM
Angle, 1/2 angle, 1/4 angle latkinso Indicator Development 2 07-16-2009 02:46 PM
angle of indicaor stephenszpak Indicator Development 8 06-08-2008 02:56 PM
Calc an angle? Burga1 Indicator Development 1 01-29-2008 09:52 AM
Slppe/Angle of indicator AO76 Indicator Development 6 07-09-2007 10:22 PM


All times are GMT -6. The time now is 11:27 AM.