• 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

Entering stop loss individual positions

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

    Entering stop loss individual positions

    Hello,
    I want to modify my automated strategy so that it does the following.

    Enter two long ES positions both at an initial stop loss of 9 points.

    If the market goes higher by 9 points, I want the first position to continue to have 9 points of stop loss, but want the second position's to stop loss to move to 5 points above my enter prices.

    Is it possible to do so? I am trying to have different stop losses for the different contracts that I am trading as a part of the same trade.

    Very much appreciate your help in advance,
    Thanks!

    #2
    Hello pandyav,

    Thank you for your note.

    Yes, you would need to use two separate SetStopLoss() with unique signal names for both entry orders and the StopLoss order but you can modify them in the OnBarUpdate method with the sample below -
    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 D Trader, Today, 01:41 PM
    0 responses
    6 views
    0 likes
    Last Post D Trader  
    Started by rexmie888, Today, 04:00 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by terminatorT1000, Today, 01:23 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by Tradarr, Today, 12:25 PM
    0 responses
    6 views
    0 likes
    Last Post Tradarr
    by Tradarr
     
    Started by Bionian, Today, 10:10 AM
    1 response
    11 views
    0 likes
    Last Post Emma1
    by Emma1
     
    Working...
    X