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

Custom exit based off of candle High Low Open and Close

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

    Custom exit based off of candle High Low Open and Close

    Hello,

    I am looking to create an exit which executes depending on how a candle's High Low Open and High play out. For example, let's say the price trend is in an upward run and there is a candle which demonstrates a good amount of rebounding pushback (demonstrated by there being SIGNIFICANT distance between the high and the close).

    Has anyone set something like this up before? I have a feeling this would go beyond the strategy builder.

    Thanks for any help you can provide.

    #2
    Hello Kensonprib, thanks for your post.

    You can make conditions that evaluate multiple bars in the strategy builder. Use the Bars Ago property to access previous bars of a series. I do not know of an exact example that already implements this, but I would first recommend defining what exactly your condition translates to in NinjaScript. What exactly does rebounding pushback mean in terms of the price of candles? You would need to define what a significant distance means in the strategy to base any condition off of it i.e. define an exact number of ticks, points, etc. that you are looking for in a signal.

    Please let me know if I can assist any further.
    Last edited by NinjaTrader_ChrisL; 03-16-2021, 11:59 AM.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by scalp, Today, 01:26 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by ETFVoyageur, Yesterday, 06:05 PM
    2 responses
    27 views
    0 likes
    Last Post ETFVoyageur  
    Started by cmtjoancolmenero, 04-29-2024, 03:40 PM
    9 responses
    32 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by memonic, Today, 01:23 PM
    0 responses
    3 views
    0 likes
    Last Post memonic
    by memonic
     
    Started by bertochi, 04-16-2020, 12:15 PM
    34 responses
    1,157 views
    2 likes
    Last Post notenufftime  
    Working...
    X