If I hit Sell it closes the Long OK.
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
Strategy Disabled by Chart Trader Close Button
Collapse
X
-
Hello kenz987,
No that is expected for the close button, in general manual actions are not suggested while working with NinjaScript strategies because it will not be aware of the changes. The close specifically will terminate the script. You can have the strategy create its own buttons which you could then submit a strategy based close with and that would not disable it.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
-
Hello kenz987,
This is not a flaw, that is how strategies are intended to work.
I might want to enter orders manually w/ Chart Trader and have a running strategy to Trail a Stop
Strategies are really intended only for trading in your place without manual interaction. If you want to make a tool that specifically compliments manual trading you could use an Indicator for that purpose with the Addon framework.
An indicator could observe an account directly and orders submitted to that account, in turn it could do actions based on that information like submitting targets.
A strategy can also be used in that way by adding custom buttons which submit strategy based orders instead of manual orders keeping it active. Manual closing of positions will interrupt a strategy and it will not observe manual entries to submit targets.
I look forward to being of further assistance.
JesseNinjaTrader Customer Service
Comment
-
RE: Flaw . . . Since the Close button on ChartTrader is prohibited while running a Strategy, then likewise the Buy Sell etc buttons should be prohibited. Why not gray them out and make it obvious that mixing the two methods is not allowed??? Thank you for the time you spent on this, and the links on how it should be done. Ken
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by judysamnt7, 03-13-2023, 09:11 AM
|
4 responses
57 views
0 likes
|
Last Post
by DynamicTest
Today, 08:25 PM
|
||
Started by ScottWalsh, Today, 06:52 PM
|
4 responses
36 views
0 likes
|
Last Post
by ScottWalsh
Today, 07:40 PM
|
||
Started by olisav57, Today, 07:39 PM
|
0 responses
7 views
0 likes
|
Last Post
by olisav57
Today, 07:39 PM
|
||
Started by trilliantrader, Today, 03:01 PM
|
2 responses
19 views
0 likes
|
Last Post
by helpwanted
Today, 07:25 PM
|
||
Started by cre8able, Today, 07:24 PM
|
0 responses
9 views
0 likes
|
Last Post
by cre8able
Today, 07:24 PM
|
Comment