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:
    http://www.ninjatrader.com/support/f...ead.php?t=3751

    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:
        http://www.ninjatrader-support.com/H...tStopLoss.html
        DenNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by georgeinharmony, Today, 12:06 AM
        2 responses
        12 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by Prisalice, Yesterday, 07:07 AM
        2 responses
        16 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Futurestrader00, Yesterday, 12:04 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Blairski, Yesterday, 11:26 PM
        0 responses
        10 views
        0 likes
        Last Post Blairski  
        Started by aligator, Yesterday, 02:38 PM
        0 responses
        10 views
        0 likes
        Last Post aligator  
        Working...
        X