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 Profit Loss/Leash

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

    Stop Profit Loss/Leash

    Hi Everyone, I hope you're well


    I want to create a strategy, but I don’t know how to use the strategy builder, I’m sorry I’m still new to NinjaTrader.
    I’m a trader who doesn’t know how long the price will keep moving towards the favored direction after it hits the profit target.

    So, I want the strategy to:
    Instead of closing the trade once the initial target is met, it should wait and create a new stop loss or let’s call it at this instance a stop “profit” loss. For example, it will create the Stop Profit Loss at 5 pips behind the first target. -The trader wants to be able and easily adjust on that 5 pips “stop profit loss” within the same single strategy, like one time its 3 pips and sometimes its 10 or anything, depending on the trade setup.
    Secondly, the trade is only closed by the Stop Profit Loss trigger, which is after losing 5 pips from my initial target. However, and most importantly. If the price is indeed keeping on moving towards my favored direction and gaining more pips: -The Stop Profit Loss must also keep following the new price. For example, *Now the first target profit has been met, then the Stop Profit Loss was automatically created at 5 pips, then the price progressed 6 more pips to my favor, the Stop Profit Loss will also automatically follow by 6 pips, which means, that the Stop Profit Loss Is sitting at 1 pip ahead of the initial target.*
    Finally, the mostly most important! ^In that same example above^ *The price gains 3 more pips, now the Stop Profit Loss automatically is sitting 4 pips ahead of my initial target ---I hope we’re still clear--- Then, however, the price starts setting back here and there and loses 3 pips…*
    Now what is required from the Stop Profit Loss is to STAY STILL, KEEP ITS POSITION AT 4 PIPS AHEAD OF THE INITIAL TARGET. Even if the price *gains 1 pip back, SPL STAY! the price gains the second, SPL STAY! price gains back the 3rd pip, STAY! Now the SPL could start to follow the newly gained pips because the price has stretched back the total 5pips.
    Think of it as a leash that is 5pips tall. Meaning the holder/SPL shouldn’t move if the dog/price is just playing back within that range of 5pips.
    Then again, the trade will only be closed after losing 5pips from the newest price gained in this one.
    Lol, I hope I was explaining clearly

    Best regards,
    I appreciate all your efforts and time!


    #2
    I have tried using the Strategy Builder but I didn't understand it comprehend. Is it even possible to get such a strategy created in the markets?

    Comment


      #3
      Hello Mohsen,

      Thank you for your post.

      At a glance, this looks like it would be too complicated of logic to be handled within the strategy builder. The when to stay or move the stop that you describe is fairly complicated and you mentioned also wanting it to be adjustable depending on the trade setup which would likely require calculations too complex for the builder, which can only handle basic arithmetic through offsets.

      Just to be clear, in platform support, we do not create/write strategies, we do not provide debugging services. We also cannot provide programming education services. If you would like the strategy created for you, we can provide references to 3rd party programmers who could meet your needs.

      If you are interested in learning NinjaScript and coding something like this yourself, I would be happy to provide resources to help you begin creating this; however, using the Strategy Builder would be the first recommended step.

      Please let us know if we may be of further assistance to you.
      Kate W.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by kujista, Today, 06:23 AM
      4 responses
      13 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by traderqz, Yesterday, 09:06 AM
      2 responses
      15 views
      0 likes
      Last Post traderqz  
      Started by traderqz, Today, 12:06 AM
      3 responses
      6 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by RideMe, 04-07-2024, 04:54 PM
      5 responses
      28 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by f.saeidi, Today, 08:13 AM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X