Thank You
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Stop loss
Collapse
X
-
forexx, please take a look at the reference sample that goes over exactly what you're looking for - Halting a Strategy Once User Defined Conditions Are MetAustinNinjaTrader Customer Service
-
forexx, you can use the MarketPosition property to determine whether or not you are in a position and act accordingly:
Code:if (Position.MarketPosition != MarketPosition.Flat) { // you are in a position, do nothing return; } else // you are not in a position { // put trading code here }
AustinNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ageeholdings, Today, 07:43 AM
|
0 responses
7 views
0 likes
|
Last Post
by ageeholdings
Today, 07:43 AM
|
||
Started by pibrew, Today, 06:37 AM
|
0 responses
4 views
0 likes
|
Last Post
by pibrew
Today, 06:37 AM
|
||
Started by rbeckmann05, Yesterday, 06:48 PM
|
1 response
14 views
0 likes
|
Last Post
by bltdavid
Today, 05:43 AM
|
||
Started by llanqui, Today, 03:53 AM
|
0 responses
6 views
0 likes
|
Last Post
by llanqui
Today, 03:53 AM
|
||
Started by burtoninlondon, Today, 12:38 AM
|
0 responses
12 views
0 likes
|
Last Post Today, 12:38 AM |
Comment