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 algospoke, Today, 06:40 PM
    0 responses
    9 views
    0 likes
    Last Post algospoke  
    Started by maybeimnotrader, Today, 05:46 PM
    0 responses
    7 views
    0 likes
    Last Post maybeimnotrader  
    Started by quantismo, Today, 05:13 PM
    0 responses
    7 views
    0 likes
    Last Post quantismo  
    Started by AttiM, 02-14-2024, 05:20 PM
    8 responses
    168 views
    0 likes
    Last Post jeronymite  
    Started by cre8able, Today, 04:22 PM
    0 responses
    10 views
    0 likes
    Last Post cre8able  
    Working...
    X