So is it possible? Can you close a position in a strategy and keep the strategy enabled so that it doesn't open the same position i closed?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Can you close a position in a strategy and keep the strategy enabled?
Collapse
X
-
Can you close a position in a strategy and keep the strategy enabled?
Can you close a position in a strategy and keep the strategy enabled?, so for example I have a running strategy with an open position that i want to close but every time I close it my strategy gets disabled. and so when I open my strategy back again it opens back the position i originally closed which isn't what i want to happen as i want my strategy open but the position closed so it's open for new trades.
So is it possible? Can you close a position in a strategy and keep the strategy enabled so that it doesn't open the same position i closed?
-
So is it possible? Can you close a position in a strategy and keep the strategy enabled so that it doesn't open the same position i closed?
This would be a good feature ..so that you can manually close a position while still keeping the strategy enabled... not sure if this is a setting feature anywhere..
-
you write too chaotically.
write the sequence of your actions to the goal point by point.
what do you mean I closed the position and the strategy turned off?
it's like saying that there is a car with the engine on and when I close the door, the engine turns off.
positions are opened/closed under certain conditions.
You most likely do not meet these conditions.
Comment
-
I think OP means when his strategy enters a position, but then OP manually
exits that position, OP finds that the Strategy automatically becomes disabled.
OP doesn't like that.
Therefore, in other words, I think OP is asking,
How to defeat the 'strategy automatically becomes disabled' feature when OP
manually exits the position(s) that are opened by his Strategy.
-=o=-
As far as I know, this very specific feature cannot be disabled.
At least, not directly.
However,
It can probably be defeated by using an Indicator or Addon and the Account
API to enter the position.
What I mean is, if closing the Strategy's position manually is that important,
then the Strategy needs to manage that close. Therefore, for ex, you need to
add a 'Close' button to the toolbar, and make the code for the 'Close' button
be handled by the strategy.
Moral of the story:
If Strategy enters a position, then that Strategy needs to close that position.
If you want any 'manual' ability added to this automation, you have to insert
that logic into the Strategy yourself -- otherwise, you need to find another way
(eg, the Account API) and don't use a Strategy (use an Indicator or AddOn).Last edited by bltdavid; 07-29-2022, 10:55 PM.
- Likes 1
Comment
-
Originally posted by bltdavid View PostI think OP means when his strategy enters a position, but then OP manually
exits that position, OP finds that the Strategy automatically becomes disabled.
OP doesn't like that.
Therefore, in other words, I think OP is asking,
How to defeat the 'strategy automatically becomes disabled' feature when OP
manually exits the position(s) that are opened by his Strategy.
-=o=-
As far as I know, this very specific feature cannot be disabled.
At least, not directly.
However,
It can probably be defeated by using an Indicator or Addon and the Account
API to enter the position.
What I mean is, if closing the Strategy's position manually is that important,
then the Strategy needs to manage that close. Therefore, for ex, you need to
add a 'Close' button to the toolbar, and make the code for the 'Close' button
be handled by the strategy.
Moral of the story:
If Strategy enters a position, then that Strategy needs to close that position.
If you want any 'manual' ability added to this automation, you have to insert
that logic into the Strategy yourself -- otherwise, you need to find another way
(eg, the Account API) and don't use a Strategy (use an Indicator or AddOn).
Just drag your order into the current price, the strategy will not disable. Simply avoid using the close button and you will be fine.Last edited by Dice2022; 07-31-2022, 12:35 AM.
- Likes 1
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day
by Option Whisperer
Started by Option Whisperer, Today, 09:55 AM
|
0 responses
4 views
0 likes
|
Last Post Today, 09:55 AM | ||
Started by geddyisodin, 04-25-2024, 05:20 AM
|
8 responses
58 views
0 likes
|
Last Post Yesterday, 10:45 AM | ||
Started by halgo_boulder, 04-20-2024, 08:44 AM
|
2 responses
22 views
0 likes
|
Last Post Today, 09:41 AM | ||
Started by mishhh, 05-25-2010, 08:54 AM
|
19 responses
6,189 views
0 likes
|
Last Post
by rene69851
Today, 09:29 AM
|
||
Started by gwenael, Today, 09:29 AM
|
0 responses
6 views
0 likes
|
Last Post
by gwenael
Today, 09:29 AM
|
Comment