I want rectangle to Plot at every new bar. in a Renko bar chart!
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
Rectangle NOT Plotting
Collapse
X
-
Hello,
It looks like the values you are using would not be valid,
Looking at the line of code:
Code:DrawRectangle("Test", false, 1, 0, 0, 1, Color.Blue, Color.Black, 3);
This is currently set to draw 1 bar ago at value between 1 and 0, was this intended?
If so you would need to turn on the autoscale by changing the false to true and then chart will scale to show this.
Otherwise you would need to put in a price value for the two y values it asks for and you should see it drawn.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
-
Thanks, it did draw something. but It drew Rectangles in Main Data Series.
This is what I get: http://screencast.com/t/NRAQoh3M0e
THis is my goal. to draw it like this: http://screencast.com/t/lFJRiZJ4A
Also how do I change the color of it depending if lets say Close[0] > EMA(10)....etc
Comment
-
Hello,
Based on the image, there is an easier approach using the BackColor property.
There is a example that actually looks almost identical to what you are after here: http://www.ninjatrader.com/support/h...tsub=BackColor
The BackColor property would in turn be much more efficient than drawing a rectangle for every bar.
If you did want to instead use a rectangle, you need to use the DrawOnPricePanel property http://www.ninjatrader.com/support/h...awonpricepanel
For the color change, please see the first link there is a good example on how the color is changed based on a condition.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by CortexZenUSA, Today, 12:53 AM
|
0 responses
1 view
0 likes
|
Last Post
by CortexZenUSA
Today, 12:53 AM
|
||
Started by CortexZenUSA, Today, 12:46 AM
|
0 responses
1 view
0 likes
|
Last Post
by CortexZenUSA
Today, 12:46 AM
|
||
Started by usazencortex, Today, 12:43 AM
|
0 responses
2 views
0 likes
|
Last Post
by usazencortex
Today, 12:43 AM
|
||
Started by sidlercom80, 10-28-2023, 08:49 AM
|
168 responses
2,265 views
0 likes
|
Last Post
by sidlercom80
Today, 12:05 AM
|
||
Started by Barry Milan, Yesterday, 10:35 PM
|
3 responses
11 views
0 likes
|
Last Post Yesterday, 11:58 PM |
Comment