Max Daily Loss Limit API

Discussion in 'Interactive Brokers' started by keroppi, Jan 22, 2023.

  1. keroppi

    keroppi

    I need an API that sets a Max Daily Loss Limit so that I will be closed out of all open positions if the loss limit is exceeded and I am locked out from trading any further for the trading day

    I know it is possible to create a Python API for it and I am willing to pay for it too

    I know this function exists with DAS trader but even if I am locked out from DAS trader I would still be able to make trades on IBKR (which defeats the purpose).
     
  2. lmao. fool
     
    spy likes this.
  3. Businessman

    Businessman

    Ultimately you control your trading account, you can always override software and carry on trading.

    If you are trading in isolation there is no risk manager to enforce a daily loss limit.

    If you cant stop yourself when losing it is a sign you aren't emotionally cut out for the style of trading you are doing. I'm not cut out for discretionary trading myself, i have to algo trade, with a fixed number of well defined signals.

    It is hard, after a few losers in a row, the temptation is to 'fire up your emotions' and try to win it all back in one go. This sometimes works, but eventually leads to a very big losing day.
     
    Last edited: Jan 22, 2023
    Nobert likes this.
  4. keroppi

    keroppi

    Many prop firms have this function

    Would really appreciate if anyone with knowledge on the API can advise whether this can be done.
     
  5. Businessman

    Businessman

    You can write custom software to auto liquidate you, but custom software can not really stop you from trading more if your mind is still set on it.

    A prop firm will have admin rights to each trader's account to set a loss limit you cannot change, but you, trading by yourself, will know the password that changes or deletes any loss limit you have set.

    IB don't have this kind of feature on the server side anyway, not that i am aware of. But some other execution providers do.

    For example, I trade with AMP futures, they have set a daily 75% loss limit set on all accounts which customers cannot override. I can set earlier loss limits myself, like 10% or 1K. But i can always delete my own set loss limits on any given day because i know my password and then carry on trading.

    Maybe i could ask AMP to set a custom loss limit on my account and they could do it with their admin rights over my account. Then i cant override it. But probably not, they probably don't want to get involved in that kind of stuff. They are a low cost broker not a prop firm. But some introducing brokers might be prepared to offer that service.
     
    Last edited: Jan 23, 2023
  6. rajnivp

    rajnivp

    Yes possible to do it using python, i've done something similar for different platform.
     
  7. keroppi

    keroppi

    Do you know roughly how much it might cost to program this? I am happy to engage a developer who can assist with this
     
  8. rajnivp

    rajnivp

    Depends on how you want to get locked out, there are different ways for that, you can mail me here rajni@polybyte.io to discuss more.
     
  9. keroppi

    keroppi

    I attempted to email you, but I received an error message: 'Your message couldn't be delivered to rajni@polybyte.io because the remote server is misconfigured.'

    I have sent you a private message on Elite Trader. Please check your inbox
     
  10. schizo

    schizo

    You can do this easily by using Sierra Chart as your front end.

    Can You Set Daily Loss Limit?
    https://www.sierrachart.com/SupportBoard.php?ThreadID=53153
     
    #10     Jan 29, 2023