Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Adding to a position
Collapse
X
-
Adding to a position
If lets say im short with 2 cars and add 1, now have a total position size of 3 cars. Now lets say I go to close 1 car, id like to close the add and not the original. Anyway to do that? Ninja seems to automatically close the original position before closing the more recent adds. Thanks.Tags: None
-
Originally posted by YoungOne View PostIf lets say im short with 2 cars and add 1, now have a total position size of 3 cars. Now lets say I go to close 1 car, id like to close the add and not the original. Anyway to do that? Ninja seems to automatically close the original position before closing the more recent adds. Thanks.
Thank you for your post.
Unfortunately this is not possible.
Please see this link as to why FIFO is used to optimize your orders: http://www.ninjatrader-support.com/H...imization.htmlRay S.NinjaTrader Customer Service
-
Adding to a Strategy...
I have a similar question..
Is it possible, in the Strategy wizard to add a second contract to my Long(or Short) position if market turned against me for a predetermined nr of ticks?
If is not possible within the Wizard, what line of code should I add in the unlocked strategy?
Thanks, Michael.
Comment
-
Originally posted by mich58 View PostI have a similar question..
Is it possible, in the Strategy wizard to add a second contract to my Long(or Short) position if market turned against me for a predetermined nr of ticks?
If is not possible within the Wizard, what line of code should I add in the unlocked strategy?
Thanks, Michael.
You can add ATM strategies into your NinjaScript Strategy with a reverse at close which may help: http://www.ninjatrader-support.com/H...egyCreate.htmlRay S.NinjaTrader Customer Service
Comment
-
Thank You for the reply.
Reversing position will affect the cost of the transaction. I don't want to reverse. I just want to add a second contract to the exiting one.
Let me rephrase the initial question...If I am in a trade with one contract and I want to add a second contract when a condition is met, what statement would I use?
Here is an example:
if (Position.MarketPosition == MarketPosition.Long
&& CrossAbove(EMA(5), EMA(14), 1))
{
""statement for the second contract""
}
Comment
-
Yes, correct - http://www.ninjatrader-support.com/H...Direction.htmlBertrandNinjaTrader Customer Service
Comment
-
the size of the entries is not looked at right? it is only the number of times the position is added onto.
also
if a long position of say n entries is built up will a EnterShort() result in all n of the long positions being exited and a short position being put on?
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by f.saeidi, Today, 10:19 AM
|
0 responses
2 views
0 likes
|
Last Post
by f.saeidi
Today, 10:19 AM
|
||
Started by kujista, Today, 06:23 AM
|
4 responses
15 views
0 likes
|
Last Post Today, 09:55 AM | ||
Started by traderqz, Yesterday, 09:06 AM
|
2 responses
16 views
0 likes
|
Last Post
by traderqz
Today, 09:48 AM
|
||
Started by traderqz, Today, 12:06 AM
|
3 responses
6 views
0 likes
|
Last Post Today, 09:41 AM | ||
Started by RideMe, 04-07-2024, 04:54 PM
|
5 responses
28 views
0 likes
|
Last Post Today, 08:48 AM |
Comment