Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Drawings
Collapse
X
-
Drawings
I have strategy with some WPF buttons on chart. One button is supposed to draw arrow on chart but as I understand correctly it's doesn't work bc Dispatcher.InvokeAsync method is working from OnStateChange.
So is there anyway to do drawing using buttons without using ShapDX?Draw methods will not work if they are called from the OnStateChange() method.
Tags: None
-
I think you need to use this:Originally posted by Leeroy_Jenkins View PostI have strategy with some WPF buttons on chart. One button is supposed to draw arrow on chart but as I understand correctly it's doesn't work bc Dispatcher.InvokeAsync method is working from OnStateChange.
TriggerCustomEvent(o2 =>{ Draw.ArrowUp();},0,null);
- Likes 1
-
-
Hello Leeroy_Jenkins,
sbgtrading is correct, any non-data-driven method that needs bar information (such as barAgo values for drawing objects attached to bars, or using series like the Close or Time series) must use TiggerCustomEvent() to first synchronize the series.
Also, below is a link to an example.
I need some guidance. I need to create a script that has 3 plots that are public and they plot either a 1 or 0. But I need to create another indicator that has 3 chart buttons that sets these variables. The first indicator needs to get those values from the second indicator depending on the button clicks. Because of usingChelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
23 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
120 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
63 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
41 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
45 views
0 likes
|
Last Post
|
Comment