Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
integrating addon buttons for entering trades
Collapse
X
-
integrating addon buttons for entering trades
My objective is to have buttons to set up my orders submitted through an atm or fixed stop or target profit. My question is when creating a button such as buy bid on chart trader, is is possible to create this? Is it an indicator, strategy or addonTags: None
-
Hello ballboy11,
Yes that is possible, it depends on what kind of orders you wanted to submit. If you want to submit strategy based orders you would use a strategy and the standard strategy order methods. If you wanted to build a custom tool that supports manual orders you could instead use an indicator and the addon framework.
There is a quick sample that shows adding some general buttons to the chart control that can be used for testing, this could be used from an indicator or strategy. https://ninjatrader.com/support/help...ub=usercontrol
You can also see the following post for more complex examples involving the chart trader or window: https://ninjatrader.com/support/foru...t=1#post499327
If you used an indicator you could see the following section, keep in mind the addon account code should not be used in a strategy for order placement/management. https://ninjatrader.com/support/help...ount_class.htm
One other note here is that if you use any NinjaScript properties like Close[0] in a button handler, you need to use a TriggerCustomEvent to surround that code. https://ninjatrader.com/support/help...=triggercustom
Code://this goes in the button event handler TriggerCustomEvent(o => { // your code in here }, null);
JesseNinjaTrader Customer Service
-
Hello ballboy11,
There is not a specific sample for PnL that I am aware of which puts it in the side bar. The chart trader is just a WPF control so to add anything else you would have to add other WPF controls. If you needed PNL that would likely be a TextBlock or one of the text based controls in WPF.
There is not a specific sample for PnLJesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by traderqz, Today, 12:06 AM
|
10 responses
18 views
0 likes
|
Last Post
by traderqz
Today, 02:49 PM
|
||
Started by algospoke, 04-17-2024, 06:40 PM
|
5 responses
46 views
0 likes
|
Last Post Today, 02:36 PM | ||
Started by arvidvanstaey, Today, 02:19 PM
|
1 response
6 views
0 likes
|
Last Post Today, 02:33 PM | ||
Started by mmckinnm, Today, 01:34 PM
|
3 responses
5 views
0 likes
|
Last Post Today, 02:12 PM | ||
Started by f.saeidi, Today, 01:32 PM
|
2 responses
9 views
0 likes
|
Last Post
by f.saeidi
Today, 02:10 PM
|
Comment