![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Junior Member
Join Date: Feb 2012
Posts: 28
Thanks: 1
Thanked 2 times in 2 posts
|
Hi
Is there a way to show a Plot's PriceMarker but not show the Plot line. thanks |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,858
Thanks: 162
Thanked 579 times in 570 posts
|
Hello,
You can set the Plot color to the same color as the background of the chart. This will hide the plot from the chart, but there should be the numeric value and outline of the price marker on the right panel.
Matthew
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2012
Posts: 28
Thanks: 1
Thanked 2 times in 2 posts
|
thx Mathew
yes that does as you say, thx for that. however is it poss to get some color onto that marker ? perhaps by the FormatPriceMarker override ? |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Feb 2012
Posts: 28
Thanks: 1
Thanked 2 times in 2 posts
|
here is the answer for me.
use PlotStyle.Hash when adding the Plot use the following two statements in the OnBarUpdate override. Values[0].Set(yournumber); Values[0].Set(1,0); the second statement overwrites the prior bar plot value with a zero value, so you should see a horizontal line at the zero level. you will get a single plot marker on the current bar at your level and you will still get a colored price marker (using the Hash style means that the markers are not connected to each other, so you get the single plot at your number while all the other plots become zero - if you use the Line style then you would get a vertical line from zero to your number on the current bar, as Ninja connects the zero to your number) hope this helps someone
Last edited by I_Quant; 04-10-2012 at 02:22 AM.
|
|
|
|
|
The following user says thank you to I_Quant for this post: |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I cannot get this line plot and show in databox | randomwalker | General Programming | 6 | 04-26-2012 08:28 AM |
| Need to be able to plot lines programmatically, have them show up in all timeframes | DancesWithBears | Indicator Development | 1 | 03-18-2011 01:21 PM |
| Gaps in Line Plot | netjms | Indicator Development | 1 | 08-14-2010 01:52 PM |
| Plot horizontal line | ssg10 | General Programming | 1 | 05-13-2009 05:54 AM |
| Line Plot | velocity | General Programming | 10 | 05-07-2009 05:59 AM |