Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop Loss display

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

    Stop Loss display

    When coding a stop loss in my ninjascript strategy, does the stop loss show in the market before it excutes? can other trades see my stop loss before it excutes?
    Does it show the same as when a sto loss using ATM strategy?

    #2
    Hello, thanks for writing in. A resting stop loss is visible to the market because it's at the exchange. The SetStopLoss has an overload where you can turn it into a simulated stop:

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

    This will keep the stop local to your PC and send a market order once the stop price is hit.

    Comment


      #3
      Hi Chris, thank for the reply

      My stoploss is like this:
      Code:
      if (Position.GetUnrealizedProfitLoss(PerformanceUnit.Currency, Close[0]) < -500)
      {
      ExitLong(100, "MaxLoss L", "");
      ​}
      Is this visible to the market?
      and if yes, what do I need to add in that line of code to make simulated?

      And beside being hidden from the market, is simulated stoploss different in any other way than normal stoploss?

      Comment


        #4
        Hello, thanks for the follow up. ExitLong() submits a market order so this is not going to be resting at the exchange. A normal stop loss (SetStopLoss()) rests at the exchange, so its included in the Level 2 data that others can view. Simulated stop losses are local to your PC, then when the price is reached a market order is sent out.

        Comment


          #5
          Beside resting at the exchange or not, what are other advantages of using ExitLong() or using (SetStopLoss()) ?

          Comment


            #6
            Hello, thanks for the follow up. There are no advantages, it is up to you what you want to use.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Yesterday, 05:17 AM
            0 responses
            65 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            139 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            75 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            45 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            50 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X