Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
1 to 1 Stop and Target Based off InsideBar from previous Candle
Collapse
X
-
1 to 1 Stop and Target Based off InsideBar from previous Candle
I am new to the strategy builder and struggling to figure out how to set a 1 to 1 take profit based off my Stop which is based off the the previous candles high or low with a one tick offset. My strategy is simple, time based, Trades on the RTY, 5 minute candles, InsideBar for entry. If price break out of the Inside Bars range by one tick it enter in that direction. and then sets the stop on the oppositie end of the Inside bar. I just cant figure out how to set the Take Profit, again based off the Stop. So if the stop is minus 15 ticks, my Take Profit will be plus 15 ticks. Any information to help is appreciated! Thank you in advance!
Tags: None
-
Hello Day_Storay1,
Welcome to the NinjaTrader forums!
In the Strategy Builder you will need to use a custom series to do math with the Offset.
If the stop price is being calculated as the open of an up / green bar, the Close with the offset subtracting the Open would be the distance in price from the close to the open.
Save this distance to a variable, and you can use the offset from the Close adding this variable as the price for the limit order (profit target).
Below is a link to a forum post discussing using offsets to do math.
with regard to the attached image: Line A is an indicator Line B is the m period MAX of line A Line C is an average of this indicator A Line D is another average of this indicator A is it possible, possibly using the strategy builder, but without adding a temporary variable, to set on the condition: line C crosses below line D
As well as a link to a forum post showing how to save a price to a variable and supply this to an order as the price.
Chelsea B.NinjaTrader Customer Service
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
39 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
124 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
64 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
41 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