Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Draw customized bars or rectangles
Collapse
X
-
Draw customized bars or rectangles
Can I add data/bar series that is a indicator but has nothing to do with a specific symbol? Or do I have to draw every such bar as a rectangle object? I tried to do rectangles, but the thing is for every data bar there is a corresponding rectangle with a unique tag, that makes ninjatrader frozen probably due to too much drawing objects? If I can assign OHLC value to a bar series that might work but they're read only, right? Thanks.Tags: None
-
Hello dodoei, thanks for writing in.
You can override OnRender using SharpDX to render anything you want to the render target. We have an example here demonstrating the technique:
This is a conversion of the Spread Indicator with Candlesticks. Please contact the original author for any questions or comments.
Please let me know if you have any questions on this material.
Disclaimer:
The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
80 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
40 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
63 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
63 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment