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 Felix Reichert, 04-26-2024, 02:12 PM
|
11 responses
72 views
0 likes
|
Last Post Today, 03:18 PM | ||
Started by junkone, 04-28-2024, 02:19 PM
|
7 responses
80 views
1 like
|
Last Post
by junkone
Today, 03:15 PM
|
||
Started by pechtri, 06-22-2023, 02:31 AM
|
11 responses
136 views
0 likes
|
Last Post
by Nyman
Today, 02:59 PM
|
||
Started by ageeholdings, 05-01-2024, 05:22 AM
|
4 responses
27 views
0 likes
|
Last Post
by ageeholdings
Today, 02:59 PM
|
||
Started by hdge4u, 04-29-2024, 12:23 PM
|
4 responses
23 views
0 likes
|
Last Post Today, 02:54 PM |
Comment