SharpDX.Color cb; cb = new ColorBGRA(0, 255, 0, 255);. SharpDX.Direct2D1.Brush cbrush = new SharpDX.Direct2D1.SolidColorBrush(RenderTarget, cb);
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Update bar color dynamically
Collapse
X
-
Update bar color dynamically
Does the 'TransformBrush' check for brush overrides at the indicator level? If I'm writing candlestyle code that wishes to 'fix' or change the color of the candles dynamically via a volume parameter, would the following be the right way of going about it?
Code:Tags: None
-
Is it possible for you to comment on both? What's the difference between changing color in OnRender() and OnBarUpdate? Is it possible to use OnBarUpdate() for a custom Chartstyle? Similarly, for a custom indicator, what benefits is there for one to make use of OnRender()? Is it possible to incorporate an indicator within a custom ChartStyle?
Comment
-
Hello bkinvent,
Thanks for your post.
Please do not duplicate posts and continue your conversation here: http://ninjatrader.com/support/forum...ad.php?t=75762
Thank-you.Paul H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by MaupinFinche, Today, 05:08 AM
|
0 responses
2 views
0 likes
|
Last Post
by MaupinFinche
Today, 05:08 AM
|
||
Started by Enkidu, Yesterday, 06:40 AM
|
9 responses
34 views
0 likes
|
Last Post
by Enkidu
Yesterday, 01:11 PM
|
||
Started by Mestor, 03-10-2023, 01:50 AM
|
12 responses
307 views
0 likes
|
Last Post
by z.franck
Today, 04:29 AM
|
||
Started by AgriTrdr, 07-16-2023, 12:54 PM
|
32 responses
267 views
0 likes
|
Last Post
by f.saeidi
Yesterday, 06:49 AM
|
||
Started by Mestor, Today, 03:15 AM
|
0 responses
2 views
0 likes
|
Last Post
by Mestor
Today, 03:15 AM
|
Comment