I've been looking to switch over to NT due to the ability to develop and customize my own plan. I have looked in a few places, however I can't seem to get/find a solid answer for an idea I want to implement. Ideally, I want to add a button to the chart where when I press it, it creates 2 stop limit orders (With specific custom ATM Strategy) at a specified price defined within the code. I tried to follow some videos and such that do similar things, however the price limit would update along with the current price. Can anyone tell me if this is even a possible thing, and if so, can I get pointed in the right direction on maybe similar projects/help guides as I have not been able to find this.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Question regarding best way to accomplish
Collapse
X
-
Question regarding best way to accomplish
Hello!
I've been looking to switch over to NT due to the ability to develop and customize my own plan. I have looked in a few places, however I can't seem to get/find a solid answer for an idea I want to implement. Ideally, I want to add a button to the chart where when I press it, it creates 2 stop limit orders (With specific custom ATM Strategy) at a specified price defined within the code. I tried to follow some videos and such that do similar things, however the price limit would update along with the current price. Can anyone tell me if this is even a possible thing, and if so, can I get pointed in the right direction on maybe similar projects/help guides as I have not been able to find this.Tags: None
-
-
Originally posted by tackaway View PostHello!
I've been looking to switch over to NT due to the ability to develop and customize my own plan. I have looked in a few places, however I can't seem to get/find a solid answer for an idea I want to implement. Ideally, I want to add a button to the chart where when I press it, it creates 2 stop limit orders (With specific custom ATM Strategy) at a specified price defined within the code. I tried to follow some videos and such that do similar things, however the price limit would update along with the current price. Can anyone tell me if this is even a possible thing, and if so, can I get pointed in the right direction on maybe similar projects/help guides as I have not been able to find this.
here check this out OCO button will do that override the order type to stop limit - you got to be pretty ok at basic development in c#
Comment
-
Hello tackaway,
Thank you for writing in.
The following reference sample demonstrates different kinds of buttons that you could add to a chart:
WIth that sample in mind, you could add logic into the button click event that submits the orders you have described. This example from our free User App Share demonstrates the use of buttons that submit orders under certain conditions:
For orders generated by a strategy, you can tie them to an ATM strategy using the ATM strategy methods. We also have an overview of using ATM strategies in NinjaScript. I have linked both sections in the help guide below:- https://ninjatrader.com/support/help...strategies.htm
- https://ninjatrader.com/support/help...gy_methods.htm
Please let me know if I can be of further assistance.
The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
Emily C.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by gyilaoliver, Today, 08:28 AM
|
3 responses
11 views
0 likes
|
Last Post
|
||
Started by Darkslide_Tom, 03-23-2025, 11:08 PM
|
3 responses
17 views
0 likes
|
Last Post
|
||
Started by rtwave, 03-13-2025, 04:09 PM
|
4 responses
29 views
0 likes
|
Last Post
|
||
Started by MiCe1999, 12-01-2024, 09:01 PM
|
4 responses
45 views
0 likes
|
Last Post
![]() |
||
Started by coopgrafik, Today, 07:57 AM
|
1 response
7 views
0 likes
|
Last Post
|
Comment