Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

exit strategy

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

    exit strategy

    hi, i am wondering if i can use ninja script to set a exit strategy like when profit > 3% and trailing stop = 1%? which means the trailing stop will only take effect when profit for this trade is >3%

    what the code would be look like? can it be done within the strategy builder?? many thx.

    #2
    light7801, unfortunately coding something like this would not be possible within the strategy builder. In addition, creating trailing stops in NinjaScript can be somewhat difficult, depending on the complexity. There is a reference sample titled "Modifying the price of stop loss and profit target orders" that will be of assistance. I also found a thread that discusses implementing a trail stop that seems very similar to what you're trying to do.
    AustinNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by georgeinharmony, Today, 12:06 AM
    2 responses
    12 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by Prisalice, Yesterday, 07:07 AM
    2 responses
    16 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Futurestrader00, Yesterday, 12:04 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Blairski, Yesterday, 11:26 PM
    0 responses
    10 views
    0 likes
    Last Post Blairski  
    Started by aligator, Yesterday, 02:38 PM
    0 responses
    10 views
    0 likes
    Last Post aligator  
    Working...
    X