Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Print()
Collapse
X
-
1) You would need to DrawLine() from the current bar to one bar ago:
Code: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
-
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.
-Brett
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by fx.practic, 10-15-2013, 12:53 AM
|
5 responses
5,404 views
0 likes
|
Last Post
by Bidder
Today, 12:22 AM
|
||
Started by Shai Samuel, 07-02-2022, 02:46 PM
|
4 responses
95 views
0 likes
|
Last Post
by Bidder
Today, 12:11 AM
|
||
Started by DJ888, Yesterday, 10:57 PM
|
0 responses
8 views
0 likes
|
Last Post
by DJ888
Yesterday, 10:57 PM
|
||
Started by MacDad, 02-25-2024, 11:48 PM
|
7 responses
159 views
0 likes
|
Last Post Yesterday, 10:23 PM | ||
Started by Belfortbucks, Yesterday, 09:29 PM
|
0 responses
8 views
0 likes
|
Last Post
by Belfortbucks
Yesterday, 09:29 PM
|
Comment