You would need to compare what you are making against the original sample to make sure its the same. The image is not the same as the sample.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
understanding how to implement trailing and parabolic stops into my strategy
Collapse
X
-
Okay, thats what I was wondering. Set 3 now looks exactly like set 2 in the example.
I edited set 4...
(From 19)
"If you wanted to do a +1 on the stops price after a break even you would have to edit set 4 to make the StopPrice the value that you wanted as the breakeven price. It uses the averageprice for the break even by default."
I changed the 'averageprice for the breakeven' to 'Current position size' I don't know if thats what I want to do.Last edited by trdninstyle; 10-26-2022, 05:48 PM.
Comment
-
Hello trdninstyle,
Before making changes like that to a new variable think about what variable you are trying to use. Average price is a price, position size is not a price that's a quantity which doesn't make sense in that use case. You need to use a price value for the stops price.
You still need to use the average price but you would have to also use the offset field to select Ticks and then enter a offset from that price.
Comment
-
I still need to use the average price but use offset field to select Ticks. In pic I'm pointing to the offset field to see if that is it. If that is it, I should change it to? Not the -40 of course, the 10 ticks that I want my stop to trigger to breakeven? Correct?
In pic I mention this, the sample set 4 is actually set 5 in mine due to adding another set for my strategy.
I observed the sample in replay and noticed that breakeven doesn't move until after a bar closes. I'll have to adjust that for the tick. A bar can move 30 ticks and not be triggered to b.e.
I kno this is a sample.
Comment
-
Hello trdninstyle,
Yes that is the offset field, it says Offset to the left side of it.
You would need to enter an amount of ticks of offset that you wanted, you mentioned +1 earlier in the thread so you could use 1 if that is the break even price you wanted.
The sample works OnBarClose so that would be expected to see the stop moved only at the bar close. You can also use OnEachTick if you wanted it to update more frequently.
- Likes 1
Comment
-
Comment
-
Hello trdninstyle,
It looks like this forum post is getting pretty far off topic from the original question that was asked in post 1. I would suggest to open a new thread for any new additional questions about the builder that you may have. Our support can try to answer individual questions but we cannot walk you through building an entire strategy one step at a time.
For the question in the image, you wouldn't need to modify set 4 for the break even to work like the sample. That set is checking the close price is greater or equal to the trigger price.
OnEachTick is the calculate mode for the strategy, that can be changed in the strategies default properties or when you apply the strategy.
I would suggest to refer back to the original sample if you are unclear on any of the sets and how they work. The sample is simplified to demonstrate what is needed for a break even and only has what is required. All of that sample is required to see the breakeven work so you can use that to study what each set is doing to learn how that concept works. If you are unsure if making a change will affect the strategy, try making the change and then test the strategy on your end to observe what result that change makes.
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
65 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
139 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
75 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|

Comment