Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Is there a way to use a market order, but prevent buying at the HIGHEST point?

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

    Is there a way to use a market order, but prevent buying at the HIGHEST point?

    Hi All,

    I have a strategy that runs on the 15M chart, it often buys at the highest point of the candle and I'm trying to see if there's a way to avoid it but still ensuring that the trade will execute?
    I want to buy only if I can get a price of the bottom 50% of the candle instead. Example is attached.

    In addition:
    - is there a way to add intra-bar actions? for example, if the price drops but the candle isn't closed yet - exit? if certain open loss is hit - exit?
    Attached Files
    Last edited by darkgreen; 08-24-2020, 09:02 AM.

    #2
    Hello darkgreen,

    When using Calculate.OnPriceChange you could calculate 50% from the high to the low and submit a market order when that price is reached using a custom condition.

    Below is a link to the help guide on the Calculate property.
    https://ninjatrader.com/support/help.../calculate.htm

    See the post below about historical intra-bar granularity as well.
    https://ninjatrader.com/support/foru...377#post773377
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by lorem, Yesterday, 09:18 AM
    5 responses
    19 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by WHICKED, Today, 12:56 PM
    2 responses
    15 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Started by Felix Reichert, Today, 02:12 PM
    0 responses
    1 view
    0 likes
    Last Post Felix Reichert  
    Started by Tim-c, Today, 02:10 PM
    0 responses
    1 view
    0 likes
    Last Post Tim-c
    by Tim-c
     
    Started by cre8able, Today, 01:16 PM
    2 responses
    9 views
    0 likes
    Last Post cre8able  
    Working...
    X