Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

An example for SetStopLoss

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

    An example for SetStopLoss

    Hi support,

    I havea customstrategy, when the strategy is executed
    it will short "eruusd" the default value 50000
    I then make
    I make a "setstoploss"
    then when another criteria happen I cover 30000.
    ExitShort(
    30000);

    but the stop loss is stil on 50000!
    how can I change the stop loss to 30000 ?
    Thanks in advance
    Crunchy
    Last edited by crunchy; 05-08-2010, 07:37 PM.

    #2
    Hello,

    This link explains how to scale out of a position:


    Let me know if you have questions.
    DenNinjaTrader Customer Service

    Comment


      #3
      thanks,
      But I would like to have my stoploss on fixet position, not moving up with the prise

      Thanks
      Crunchy

      Comment


        #4
        Hello,

        Depending on what you mean exactly, just put your SetStopLoss() statement in the Initialization() block. That is discussed here:
        DenNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        567 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        330 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        547 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        548 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X