Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    ROBO order example with Trailing SL

    General Discussion
    0
    7
    151
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Pavithra last edited by

      Hi @admin123 @admin @administrators .

      Can you please help me with an example of ROBO order along with Trailing Stop loss.

      If you can provide a sample order format for sending from .net that can help.

      And I just wanted to understand if the Trailing stoploss is working from API??

      1 V 2 Replies Last reply Reply Quote 0
      • 1
        123456789 @Pavithra last edited by

        @Pavithra not working properly

        1 Reply Last reply Reply Quote 0
        • V
          Vignesha @Pavithra last edited by

          @Pavithra I posted a similar question but regarding regular stop loss @admin @SmartAPI-Admin has not answered it. Have you tried normal stop loss and did it work? For me, I'm just running my bot and tracking the data, and using that as a trialing stop-loss, I dont think smartapi support trailing stop loss

          1 Reply Last reply Reply Quote 0
          • M
            Moderator_1 last edited by

            Hello @Pavithra ,

            Apologies for the delayed response.
            Here is an example of ROBO Order:
            {"requestBody":{"variety":"ROBO","tradingsymbol":"NIFTY07DEC2321250CE","symboltoken":"43249","transactiontype":"BUY","exchange":"NFO","ordertype":"LIMIT","producttype":"INTRADAY","duration":"DAY","price":7.6,"squareoff":7.6,"stoploss":1.5,"trailingStopLoss":0.35,"quantity":150}
            If you have any other issue, please share request and response on smartapi@angelbroking.com.

            Regards
            SmartAPI Team

            R 1 Reply Last reply Reply Quote 0
            • M
              Moderator_1 last edited by

              Hello @Pavithra @Vignesha,

              While the key for trailing stoploss exists, we're not providing this facility at the moment. Apologies for the inconvenience. We have noted this requirement and will update you once it is released.

              1 Reply Last reply Reply Quote 0
              • A
                amelia232 last edited by

                Sample Order Format for .NET: Develop a C# order format aligned with the brokerage's API requirements, covering symbol, quantity, initial price, and TSL parameters.

                Integrate with Brokerage API: Utilize .NET to integrate your algorithm with the brokerage's API, enabling order submission and real-time updates.

                Implement Trailing Stop Loss Logic: Incorporate dynamic TSL adjustment based on market fluctuations to optimize gains and minimize losses.

                Test and Debug: Thoroughly test the system in simulated environments, debug issues, and refine the algorithm for optimal performance.

                Monitor and Optimize: Regularly monitor live trading performance, analyze outcomes, and optimize the algorithm to adapt to market changes.

                Understanding and following this plan can help effectively implement a ROBO order system with Trailing Stop Loss functionality in a .NET environment, leveraging brokerage API capabilities for strategic trading.

                1 Reply Last reply Reply Quote 0
                • R
                  Rakhi @Moderator_1 last edited by

                  @Moderator_1 said in ROBO order example with Trailing SL:

                  {"variety":"ROBO","tradingsymbol":"NIFTY07DEC2321250CE","symboltoken":"43249","transactiontype":"BUY","exchange":"NFO","ordertype":"LIMIT","producttype":"INTRADAY","duration":"DAY","price":7.6,"squareoff":7.6,"stoploss":1.5,"trailingStopLoss":0.35,"quantity":150}

                  In this payload, have you mentioned both; price and squareoff are mentioned as 7.6 for any specific reason?

                  please elaborate.

                  Thanks

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post