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 Human#102, Yesterday, 09:54 AM
|
2 responses
7 views
0 likes
|
Last Post
by Human#102
Today, 03:01 AM
|
||
Started by Patlpp, 08-16-2021, 03:10 PM
|
10 responses
498 views
0 likes
|
Last Post
by Joerg
Today, 02:47 AM
|
||
Started by AdamDJ8, 05-07-2024, 09:18 PM
|
2 responses
19 views
0 likes
|
Last Post
by -=Edge=-
Today, 02:24 AM
|
||
Started by StockTrader88, 03-06-2021, 08:58 AM
|
46 responses
4,102 views
3 likes
|
Last Post
by tradgrad
Today, 02:19 AM
|
||
Started by usasugardefender, Today, 01:42 AM
|
0 responses
1 view
0 likes
|
Last Post Today, 01:42 AM |
Comment