ROBO order example with Trailing SL


  • 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??


  • @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


  • 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.


  • 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.


  • 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


  • @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


  • @Pavithra not working properly