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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        51 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        31 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        99 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        177 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        170 views
        0 likes
        Last Post CarlTrading  
        Working...
        X