• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Creating moving stop loss to lock in the profits

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

    Creating moving stop loss to lock in the profits

    Hello, I am trying to implement risk mgt for my automated strategy. Have two things I'd like to achieve:
    - If I am long and if the trade moves in my favor by 6 ticks in the ES, I want my stoploss to move to breakeven.
    - Again, if I am long and if the trade moves in my favor by another 6 ticks (that's a total of 12 ticks of favorable move), I want my stop loss to move to 6 ticks above my entry price. This is to lock in the profits if the market turns against me.

    Can someone please help me how this can be achieved in NT?
    Very much appreciate your help in advance.

    #2
    Hi Pandyav,

    Thank you for your post.

    You can use two different methods that we have available.

    If you are familiar with ATM strategies you can incorporate an ATM strategy into your Automated Strategy. I suggest taking a look at the example we have built into NinjaTrader, Tools -> Edit NinjaScript -> Strategy -> SampleAtmStrategy

    The second method would be modfying a stoploss and profit target dynamically. The link below is a reference sample on this is achieved in NinjaScript -
    http://www.ninjatrader.com/support/f...ead.php?t=3222

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by localappleseed, Today, 09:59 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Jermaine  
    Started by catinabag, Today, 08:51 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by Nothing323, Today, 09:07 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Tyler  
    Started by ballboy11, Today, 08:17 AM
    0 responses
    5 views
    0 likes
    Last Post ballboy11  
    Started by cutzpr, Today, 08:26 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jim  
    Working...
    X