![]() |
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
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Dec 2010
Posts: 8
Thanks: 0
Thanked 0 times in 0 posts
|
Hello,
(1) I've done the following : Add(new Plot(new Pen(Color.Red, 1), PlotStyle.Line, "hh")); Plots[0].Pen.DashStyle = DashStyle.Dash; (2) How could I have the PLOT() just to plot from the last N bars like what I've done with : DrawLine("c02", true, 60, hh+TickSize*20, 0, hh+TickSize*20, Color.Silver, DashStyle.Dash, 1); Thanks. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hello denhu fazu,
You can work with Count in relation to CurrentBar for this. if (Count - CurrentBar <= 60) Plot0.Set(Close[0]);
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#3 | |
|
Senior Member
|
Quote:
Code:
Values[0].Reset(N); |
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Thanks for the additional tip, Koganam.
Ryan M
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why does Vol indicator Not plot first 20 bars? | zacharydw00 | Version 7 Beta General Questions & Bug Reports | 5 | 11-01-2010 09:43 AM |
| Bars information in custom plot | supernatural | Version 7 Beta General Questions & Bug Reports | 4 | 09-05-2010 12:45 PM |
| Buy/Sell volume - can I plot two bars? | Day Trading Fool | Indicator Development | 1 | 07-12-2010 04:46 PM |
| accessing plot value of previous bars | shooter | General Programming | 2 | 04-20-2009 11:17 PM |
| How to plot text (outside of bars) | richard | Indicator Development | 1 | 06-07-2006 08:31 PM |