Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
rendering bitmap on chart window
Collapse
X
-
rendering bitmap on chart window
Hi, I am now rendering a bitmap image on chart for my indicator on left bottom corner. problem is, it goes up when I add another indicator in additional panel. is there anyway I can still be able to render the bitmap image regardless additional panel added due to additional indicators added to the chart? if yes, can you please advise syntax for that?Tags: None
-
Hello asmmbillah, thanks for writing in.
We have an example that I attached here. It is able to render a bitmap to the main panel and stay there when a new panel is drawn. Could you reference this and let me know if you have any questions on it?
I look forward to hearing of your results.Attached Files
-
thanks for your reply and sample. currently I am following the its done in your sample. but with that whenever you add additional indicators in new panels, it moves up as well. please see the screenshots. Its relative to the panel at the moment. But what I am trying to achieve, is regardless of adding more indicators in the chart, the bitmap needs to stay where it was initially. I hope that clarifies. thanks in advance.
Comment
-
Hello asmmbillah, thanks for your reply.
The render target for the indicator is clipped to the panel size, so this would take a more advanced approach to render relative to the window size. This would involve getting the size of the WPF window and drawing the rectangle based on that data. I attached a basic example demonstrating accessing the window size. If you have questions on this please let me know.
Attached Files
Comment
-
thanks for your sample. I think, this is the one will help. but with the chartWindow print, it is very difficult to get an idea where the points are. But when I am trying to convert them with chartWindow, I have no idea whether is it pointing the exact points which it used to be or not. I have tried printing the value, but with prints, it is not going anywhere. currently I am using like below:
float startPoint = 100;
float endPint = chartWindow.Height - 300;
And when additional panel is added, then its bitmap image is hiding behind the panel. Therefore back to square one. I hope, that clarifies.
thanks in advance.Last edited by asmmbillah; 10-27-2020, 03:16 PM.
Comment
-
Hello asmmbillah, thanks for your reply.
Unfortunately, I will not be able to debug this issue. It will take trial and error debugging by printing values to the output window and testing repeatedly to work out the exact desired result of a render. Just note that the render target size will always be the size of the panel, so the position must be adjusted relative to the size of the panel.
Best regards,
-ChrisL
Comment
-
thanks for your reply. probably I could not make myself clear. i don't want you to debug it for me. My point was, rendered bitmap is getting hidden behind additional panel. Probably you did not see my edited message at the end. I wanted to keep the bitmap image on the same place regardless additional panel added on the chart due to addition of other indicators. I hope that clarified it further.
Comment
-
thanks for your reply. but is there anyway I could render it at above all? in attached screenshot 1, it is drawing the rectanngle, but in screenshot 2 it is hiding behind additional panel. is there anyway in nt8 to render it so that it will not hide behind additional panel or not possible. thanks in advance.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
578 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment