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

Stop loss + Profit Target

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

    Stop loss + Profit Target

    Hello,

    I am working on a intra day strategy, for example ieach time that there is a doji I go long,

    I need:

    1. A stop loss 2 ticks bellow the doji.
    2. my profit target in ticks = the size in ticks of the doji, (if the doji is 6 ticks , my profit target is 6 ticks etc)

    Thank you.

    Diego.-
    Last edited by alemandiego; 09-24-2018, 01:54 PM.

    #2
    Hello alemandiego,

    Thanks for your first post!

    Before getting into how the strategy can be written, I highly encourage watching the Strategy Builder 301 tutorial if you have not done so as it will show you how the Strategy Builder can be used to create strategies like the one you describe.

    Strategy Builder 301 - https://www.youtube.com/watch?v=HCyt90GAs9k

    I'm unsure what you mean by the size of the doji if a doji is considered to be when the open and close are virtually equal. If you are considering the High-Low or the Open-Close, you could consider using either of these price levels to define the profit target.

    You may use the Strategy Builder to create a strategy that enters when the close and the open are equal (a doji,) and you may use SetStopLoss to set your stop loss 2 ticks from your entry. Your profit Target could be placed with one of the ExitLong methods like ExitLongLimit() if it is going to be set to a variable price. In the Strategy Builder, orders must be submitted with each iteration of the strategy logic to keep the order alive.

    I've included a link to the Strategy Builder 301 tutorial as well as the documentation on the Managed Approach which is used by the Builder.

    Managed Approach - https://ninjatrader.com/support/help...d_approach.htm

    Please let us know if you have any additional questions.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bortz, 11-06-2023, 08:04 AM
    47 responses
    1,605 views
    0 likes
    Last Post aligator  
    Started by jaybedreamin, Today, 05:56 PM
    0 responses
    8 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    18 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    4 views
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    13 views
    0 likes
    Last Post Javierw.ok  
    Working...
    X