• 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 GARZONJ, Today, 11:22 PM
    0 responses
    1 view
    0 likes
    Last Post GARZONJ
    by GARZONJ
     
    Started by GARZONJ, Today, 09:41 PM
    0 responses
    1 view
    0 likes
    Last Post GARZONJ
    by GARZONJ
     
    Started by mike09, Today, 07:37 PM
    0 responses
    7 views
    0 likes
    Last Post mike09
    by mike09
     
    Started by bebbus, Today, 04:03 PM
    2 responses
    7 views
    0 likes
    Last Post bltdavid  
    Started by Unicorn_Catcher, Today, 04:06 PM
    1 response
    8 views
    0 likes
    Last Post User1104  
    Working...
    X