Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
combining not from same direction not okay
Collapse
X
-
combining not from same direction not okay
is there a way to say if not in a long trade don't enter. i'm alright with my trades adding to one another in the same direction. but, sometimes they add from the other direction. and the stop and profit targets are still there present although the entry cancels out the existing order and the new one. so the stop losses get filled as entries. and, they don't have stop losses or profit target. very dangerous monetarily.Tags: None
-
Hello SteveReiza,
Thank you for your post.
Can you please describe what you mean by "adding from the other direction"?
You can add a check for MarketPosition in your strategy.
To check if strategy is currently not going long:
Please let me know if I can assist further.Code:if (Position.MarketPosition != MarketPosition.Long) //do something
-
thanks for the reply. sweet i think you nailed it. i mean if i'm long already..the other direction meaning a short execution happens. so the same direction i mean longs can add to longs and shorts can add to shorts.
so i'll use that: if (Position.MarketPosition != MarketPosition.Long).
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
50 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
126 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
69 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment