![]() |
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 |
|
Senior Member
Join Date: Jan 2009
Posts: 173
Thanks: 0
Thanked 1 time in 1 post
|
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. |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Use Color.Transparent.
Use DrawFibonacciRetracements() along with GetBar() to get the barsAgo to pass in for your specific points in time.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jan 2009
Posts: 173
Thanks: 0
Thanked 1 time in 1 post
|
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); |
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Replace Color.PaleTurquoise with Color.Transparent. I am not sure why you would want to draw a transparent line though. Nothing will show up.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jan 2009
Posts: 173
Thanks: 0
Thanked 1 time in 1 post
|
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.
|
|
|
|
|
|
#6 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Unfortunately you cannot do that at the moment. Color.Transparent makes the line transparent as in invisible.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Jan 2009
Posts: 173
Thanks: 0
Thanked 1 time in 1 post
|
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? |
|
|
|
|
|
#8 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
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.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#9 |
|
Senior Member
Join Date: Jan 2009
Posts: 173
Thanks: 0
Thanked 1 time in 1 post
|
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? |
|
|
|
|
|
#10 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
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.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |