Please tell me how to start.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Is it possible to disable the short position by Add On
Collapse
X
-
Hello lychee,
Welcome to the NinjaTrader forums!
Note, NinjaTrader does not support disabling any intended functionality, such as disabling buttons.
You could create an addon or indicator that adds custom buttons that submit orders, and use logic to prevent orders from being submitted.
Below is a link to an example indicator with custom buttons that submit orders.
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 using
Chelsea B.NinjaTrader Customer Service
-
Thanks for replaying, but I have more questions.
In this video, (between 1:20 ~ 1:30)
He can disable trading if the products are not on the permit list.
Can you tell me how to implement it like that?
Comment
-
Hello lychee,
The script in this video appears to be disabling order buttons in the WPF of a chart based on the instruments in a list and is using unsupported and undocumented code to do so.
This would be very advanced to code in an addon.
Below is a link to a reference sample that demonstrates modifying WPF.
As well as a link to an example that loops through existing charts using undocumented and unsupported code.
Chelsea B.NinjaTrader Customer Service
- Likes 1
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
54 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
25 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
17 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
23 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
24 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|
Comment