Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Print()
Collapse
X
-
1) You would need to DrawLine() from the current bar to one bar ago:
Make sure you have enough bars in your DataSeries to plot this correctly: http://www.ninjatrader.com/support/f...ead.php?t=3170Code:DrawLine("tag0", 0, Close[0], 1, Close[0], Color.Blue);
2) Please review our Help Guide article on Formatting Numbers for more information on this topic:
MatthewNinjaTrader Product Management
Comment
-
BrettNinjaTrader Product Management
Comment
-
Draw line in some distance of bar's center
Hello. In script I draw lines as levels of buy, sell and stop. There are green, red and blue short lines. They are began from current bar center to next bar center. I use this script to analyze history and as adviser in live chart. The problem is with history displaying. Even when I set margin to 0 in chart parameters, it jump to 1. And you can see peaces of next bar levels. So, it's not comfortable.
1. Chart shows the level lines, but don't show this bar.
2. With any margin Close price marker shows next bar too. I didn't find opportunity to off it in Chart parameters.
See screen.
How to set some distance from bar center for starting point of the level line. And to show close price marker for bar that I see, not for next bar chart doesn't display. I don't want to see the future
Last edited by alexstox; 06-30-2012, 08:02 AM.
Comment
-
Hello,
Thanks for the post.
Unfortunately this would take overriding Plot which would add complexity to your code and would require writing your own custom plotting to offset this.
If you go to control center->tools->edit ninjascript->indicator->CustomPlotSample you can see an example on how to get started with this but it is 100% not supported unfortunately you would be on your own to get in there and play.
-BrettBrettNinjaTrader Product Management
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
580 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
335 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
102 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
552 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment