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
Bar colour paint
Collapse
X
-
-
Hello ScottieDog,
Thank you for your response.
Please try using BarColorSeries rather than BarColor: http://www.ninjatrader.com/support/h...olorseries.htm
Please let me know if this does not resolve the matter.
Comment
-
Thanks. Made the change but still the same issue, it did not fix it. I changed the code to the following::
Code:if (direction == 1 && (Open[CurrentBar - index] > Close[CurrentBar - index])) { drawPen.Color = Color.Red ; BarColorSeries[0] = Color.Red; myTag += 1 ;
Comment
-
Hello ScottieDog,
Thank you for the update.
Going back to Chelsea's idea, have you attempted to Print() the data to the output window to verify that there are values historically?
You can find information on Print() at the following link: http://www.ninjatrader.com/support/h.../nt7/print.htm
The values will be sent to the Output Window (Tools --> Output Window).
Comment
-
Originally posted by ScottieDog View PostThat's right, it's an indicator applied to panel 2 of a chart. It plots bar paint historically inside panel 2 but does not on the candles in panel 1
Comment
-
I showed the full cs file. Is there anything else I need to provide?Attached FilesLast edited by ScottieDog; 06-24-2014, 02:52 AM.
Comment
-
Originally posted by NinjaTrader_PatrickH View PostHello ScottieDog,
Thank you for the update.
Going back to Chelsea's idea, have you attempted to Print() the data to the output window to verify that there are values historically?
You can find information on Print() at the following link: http://www.ninjatrader.com/support/h.../nt7/print.htm
The values will be sent to the Output Window (Tools --> Output Window).
The indicator is storing the values historically, that´s for sure - I don´t understand why the price chart does not pick up what the indicator has stored, as it is the indicator that paints the bars in real-time.
Comment
-
Hello ScottieDog,
Please review the following link for information on printing and debugging your strategy: http://www.ninjatrader.com/support/f...ead.php?t=3418
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by TheTradingMantis, 10-31-2017, 03:18 PM
|
5 responses
1,250 views
0 likes
|
Last Post
by TheAngryCube
Today, 04:06 PM
|
||
Started by Padan, Today, 02:02 AM
|
9 responses
23 views
0 likes
|
Last Post Today, 03:27 PM | ||
Started by spottysallrite, Today, 11:31 AM
|
7 responses
22 views
0 likes
|
Last Post Today, 03:26 PM | ||
Started by nandhumca, Today, 03:15 PM
|
1 response
4 views
0 likes
|
Last Post Today, 03:23 PM | ||
Started by PopovDS, 03-11-2024, 12:49 PM
|
3 responses
17 views
0 likes
|
Last Post
by PopovDS
Today, 03:16 PM
|
Comment