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 03-03-2009, 10:20 AM   #1
yellowTrader
Senior Member
 
Join Date: Jan 2009
Posts: 173
Thanks: 0
Thanked 1 time in 1 post
Default Transparent colors

Hello,
I was wondering if creating lines with transparent colors is possible with ninja script?
Also do you happen to have codes to draw fib retracment for a particular range in your archives? (i.e. time range like 9:40am to 10:20am).
Thanks.
yellowTrader is offline  
Reply With Quote
Old 03-03-2009, 10:24 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Use Color.Transparent.

Use DrawFibonacciRetracements() along with GetBar() to get the barsAgo to pass in for your specific points in time.
NinjaTrader_Josh is offline  
Reply With Quote
Old 03-03-2009, 10:43 AM   #3
yellowTrader
Senior Member
 
Join Date: Jan 2009
Posts: 173
Thanks: 0
Thanked 1 time in 1 post
Default

If I'm not mistaken the Syntex to draw a vertical line is as it is below. How can I fit the "Color.Transparent " within this syntex?

DrawVerticalLine("My vertical line" + CurrentBar, 0, Color.PaleTurquoise, DashStyle.Dot, 1);
yellowTrader is offline  
Reply With Quote
Old 03-03-2009, 10:47 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Replace Color.PaleTurquoise with Color.Transparent. I am not sure why you would want to draw a transparent line though. Nothing will show up.
NinjaTrader_Josh is offline  
Reply With Quote
Old 03-03-2009, 10:54 AM   #5
yellowTrader
Senior Member
 
Join Date: Jan 2009
Posts: 173
Thanks: 0
Thanked 1 time in 1 post
Default

I want to keep the color but want to make it trasparent so it doesn't cover the price bar underneath. One of the problems I am having with drawing vertical lines is that they cover the price bar underneath.
yellowTrader is offline  
Reply With Quote
Old 03-03-2009, 10:56 AM   #6
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Unfortunately you cannot do that at the moment. Color.Transparent makes the line transparent as in invisible.
NinjaTrader_Josh is offline  
Reply With Quote
Old 03-03-2009, 11:11 AM   #7
yellowTrader
Senior Member
 
Join Date: Jan 2009
Posts: 173
Thanks: 0
Thanked 1 time in 1 post
Default

One more thing.
NT already comes with almost a hundered built in indicators and on top of that I already have added about 30 other indicators myself. So the problem comes in when I have to look through a list of 130 indicators just to find the one I am looking for and since I do this often it has become a headache,
Is there any way I can delete the indicators I don't use or organize them in folders ?
Or maybe you can offer some other way?
yellowTrader is offline  
Reply With Quote
Old 03-03-2009, 11:15 AM   #8
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

You can delete the ones you don't use by going Edit->Indicator and then select one to delete. You cannot delete system indicators though. If you have some indicators you use a lot, you can try naming them in a way where they will be at the top of the alphabetical list. Perhaps use a number at the front of the name.
NinjaTrader_Josh is offline  
Reply With Quote
Old 03-03-2009, 11:18 AM   #9
yellowTrader
Senior Member
 
Join Date: Jan 2009
Posts: 173
Thanks: 0
Thanked 1 time in 1 post
Default

I have already done the number trick but was looking for a better way.
And what do you mean by system indicators? It seems all the built in indicators that come with NT are sytem indicators. right? And how can I tell?
yellowTrader is offline  
Reply With Quote
Old 03-03-2009, 11:22 AM   #10
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

NT provided indicators are system indicators. You can tell because they have a different icon. They are the dark gray ones when you try to go to Edit -> Indicators.
NinjaTrader_Josh 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
More colors for l linking funk101 Suggestions And Feedback 3 04-05-2011 08:46 AM
Semi-transparent windows nintra Suggestions And Feedback 5 11-18-2010 09:34 AM
Changing Colors tquinn Indicator Development 5 03-01-2010 06:20 AM
DataSeries of Colors SystemTrading General Programming 1 01-23-2009 12:03 PM
Custom Plot colors & Thresholds & Price marker colors higler General Programming 5 06-22-2007 07:47 AM


All times are GMT -6. The time now is 10:55 AM.