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.

    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)

        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.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            72 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            43 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            25 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            28 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            59 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X