Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Builder parsing out key price levels?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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?

    #2
    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.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by pilotfo, Today, 12:50 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by DTSSTS, Today, 11:35 AM
    2 responses
    10 views
    0 likes
    Last Post DTSSTS
    by DTSSTS
     
    Started by sinpeople, Today, 07:20 AM
    2 responses
    5 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Frank1000, Today, 03:05 AM
    5 responses
    12 views
    0 likes
    Last Post Frank1000  
    Started by fscabrera03, Yesterday, 01:18 PM
    2 responses
    25 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X