Edit: Also, if it is supported and it does work as I guessed above, will it also cancel any SetStopLoss() or SetProfitTarget() orders that might be attached to it?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Position.Close()
Collapse
X
-
Position.Close()
Is the Position.Close() method supported? I only ask because I don't see it in the documentation. If it is supported, does it do what it sounds like and simply close the underlying position? Thanks.
Edit: Also, if it is supported and it does work as I guessed above, will it also cancel any SetStopLoss() or SetProfitTarget() orders that might be attached to it?Last edited by Radical; 06-20-2012, 07:38 PM.Tags: None
-
Thanks Bertrand, I wasn't expecting it to disable the strategy, but that will still be useful. I have another question that's sort of related, so I guess I'll ask it here. If I use "ExitLong()" like this:
ExitLong(1, quantityX, "exit", "entry111");
but the signal name "entry111" doesn't exist, would the above line result in an error, or would it result in nothing happening, and the next line being executed as usual?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
47 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
22 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
15 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
21 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
23 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment