Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

syntax

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

    syntax

    Hi,

    I asked if it´s possible to do stoplosses with referring signal names. From NT support I got the answer that this can be done with

    SetStopLoss(string fromEntrySignal, CalculationMode mode, double value, bool simulated)

    But with this can be defined the "ENTRY SIGNAL" not the signal when stoploss is triggered. There´s a difference between both. EG in the syntax for ExitLong(string signalName, string fromEntrySignal) there is the possibilty to do.

    So how can this be done with stoplosses then? (there is NO "string signalName")

    Best
    Tony

    #2
    Tony, the signal name of the SetStopLoss is 'StopLoss', the signal name of the Exit methods could be custom set as you outlined.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Bertrand,
      so where can one refer then to the specific entry with the stoploss? Now there is the text for all stoplosses the same "Stop loss", so how do you know then which stop refers to which stop?

      How can this be done to refer stops to each entry as Matthew answered "Yes, you can define a signal name for your stop losses."

      Comment


        #4
        Hi Tony, to set custom stop loss names you would need to work with the Exit methods then and not with the Set's. Please see for example this overload below, you can set a signal name and a entry to tie this to.

        ExitLongStop(int quantity, double stopPrice, string signalName, string fromEntrySignal)
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Thanks, but does this work as "normal" stoploss on brokers server? And is the "stopPrice" determined as price then or can one work with variables eg SetStopLoss("S2", CalculationMode.Price, stop2, false); where my stop2 is the parabolicSAR.

          Comment


            #6
            Tony, the stopPrice in this method is really a double value, meaning you can pass in any price related value such as your Parabolic SAR. The Exit() methods are not OCO per se like the Set() ones, this is something that needs to be custom coding it.
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by PhillT, 04-19-2024, 02:16 PM
            4 responses
            34 views
            0 likes
            Last Post PhillT
            by PhillT
             
            Started by ageeholdings, 05-01-2024, 05:22 AM
            5 responses
            36 views
            0 likes
            Last Post ageeholdings  
            Started by reynoldsn, Today, 02:34 PM
            0 responses
            11 views
            0 likes
            Last Post reynoldsn  
            Started by nightstalker, Today, 02:05 PM
            0 responses
            18 views
            0 likes
            Last Post nightstalker  
            Started by llanqui, Yesterday, 09:59 AM
            8 responses
            30 views
            0 likes
            Last Post llanqui
            by llanqui
             
            Working...
            X