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

Trailing stop question

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

    Trailing stop question

    Hello,

    I have what I think is a simple question on how to use trialing stop in a script. I run a simple scalping (short) strategy where an event happens and I take a short position. Right now I take 5 pips profit. I get a high percentage at this target but I notice on quite a few trades I could ride quite a bit more.

    Can I use a trailing stop order instead of stop loss and take profit? I really want to be able to stop out at 10 pips loss and take minimum of 5 pips profit but but keep going as long as the position keeps improving. How would I structure something like this in Ninja Trade scripting. I already have a strategy but would like to replace stop loss/ take profit with something like I described. Hope it makes sense. Any help is appreciated.

    #2
    Hello,

    In order to scale out you will need to scale in first. Then you can set a stoploss for half of the position and a trailing stop for the other half. Note: you can't convert the stoploss to a trailing stop.

    Please review this link on scaling out:

    DenNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kevinenergy, 02-17-2023, 12:42 PM
    118 responses
    2,778 views
    1 like
    Last Post kevinenergy  
    Started by briansaul, Today, 05:31 AM
    0 responses
    7 views
    0 likes
    Last Post briansaul  
    Started by fwendolynlpxz, Today, 05:19 AM
    0 responses
    4 views
    0 likes
    Last Post fwendolynlpxz  
    Started by traderqz, Yesterday, 12:06 AM
    11 responses
    28 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by PaulMohn, Today, 03:49 AM
    0 responses
    8 views
    0 likes
    Last Post PaulMohn  
    Working...
    X