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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
633 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
364 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 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
567 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
568 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|
Comment