Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Auto trail 1 step breakeven Stop Loss
Collapse
X
-
Hello Uregon,
A good starting point would be to view both of the samples in the following forum post:
These samples demonstrate both concepts you are asking about individually.
For what you are asking you would need to combine both concepts.
To keep trailing until the break even would require checking the trailing condition in addition to the opposite of the breakeven condition. In the break even sample it shows how to check if the price is greater than the average price before doing a break even. Your trailing condition would need to make sure the price is less than the average price to work. Once the price moves past the break even price that would stop the trailing condition from working.
Those samples also demonstrate a few core concepts such as how to calculate prices for orders, re submitting orders to keep them alive, trailing/breakeven and using variables to control which Sets are currently being used.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
93 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
152 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
80 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
53 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
65 views
0 likes
|
Last Post
|

Comment