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 funk10101, Yesterday, 09:43 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by TheWhiteDragon, 01-21-2019, 12:44 PM
    5 responses
    551 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by rtwave, 04-12-2024, 09:30 AM
    5 responses
    37 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by funk10101, Today, 12:02 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by GLFX005, Today, 03:23 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Erick  
    Working...
    X