Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy Builder parsing out key price levels?
Collapse
X
-
Strategy Builder parsing out key price levels?
I am building a strategy for the mym that buys and sells at key price levels, but since the dow moves up and down so many hundreds of points it makes sense to somehow parse out the price and then ignore the first two digits. For example if the dow is now at 29713 maybe I want to have a stop 5 points below 29793 and take profit at 29780, but I don't want to have a giant list of prices for every hundred or thousand points, just parse out the last 3 digits and have 4 or 5 key levels to put take profit or stop. Is there any way the strategy builder can do this or can you point me to the code that can accomplish this? In other words parse out the price and then put the stop or take profit above or below that price but one piece of code works for all prices? -
Hello terminatorT1000,
Thank you for the post.
If you are looking to offset from a price the builder could do that, you can use the builders arithmetic functions to add or subtract a number of ticks from a given price. When you are making a condition you would see the Offset listed and from within the offset area you can define the type of offset and amount.
The stops and targets page could not be used in this way if you wanted to calculate a price yourself, you can however use a fixed offset from the stops and targets page like 8 ticks which would be calculated based on the entry price.
To otherwise parse or check a part of the whole number would require manual coding.
I look forward to being of further assistance.
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
20 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
119 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
63 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
45 views
0 likes
|
Last Post
|

Comment