I want to use custom shape by using a png to overlay over my chart. Is that possible?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Add own png diamond.
Collapse
X
-
Add own png diamond.
How can i load my own png diamond shape instead of using the draw.diamond code?
I want to use custom shape by using a png to overlay over my chart. Is that possible?Tags: None
-
Hello priceisking,
The default drawing tools would not have an option to change the graphic they draw, this is all done through code and is not an image.
If you do want to draw an image you can, however, this is something you would need to Render using OnRender rather than having a drawing object. you can find a sample of drawing an image in the following link: https://ninjatrader.com/support/foru...chart?t=107504
Alternatively, you can take a look at the code for the drawing tools to see how they generate shapes which you could replicate in your scripts OnRender.
I look forward to being of further assistance.
- Likes 1
-
Thank you so much. Will look into this. Also, any way to increase the size of the diamond or arrows? I don't see size option in the documentation. Document states that it will autosize but i want it to be bigger from the default size.
Comment
-
Hello priceisking,
In this case, there is not a way to change the size, this is based on the chart scaling and compression. When using OnRender you can instead decide to render at any size you wish so that would generally be the way around this situation.
I look forward to being of further assistance.
- Likes 1
Comment
-
Ok great. Thanks. Will take a look at OnRender. If you have any other examples of OnRender being used, please send me link. Thank you again.
Comment
-
Hello priceisking,
The best example is the SampleCustomRender indicator that comes with the platform however you can also view any of the drawing tools as they all use OnRender, specifically the shape tools.
The helpguide is also a good resource:
There are a few indicators which use this concept as well like the pivots and zig zag.
I look forward to being of further assistance.
- Likes 1
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
669 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
378 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
111 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
575 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
580 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment