Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model wrong #8

Open
pavybez opened this issue Mar 27, 2021 · 11 comments
Open

Model wrong #8

pavybez opened this issue Mar 27, 2021 · 11 comments

Comments

@pavybez
Copy link

pavybez commented Mar 27, 2021

Nice implementation but AS model is wrong. You need to multiply the vol% in config with current price to get sigma.

@hello2all
Copy link
Owner

Thank you for pointing out, could you give a more detailed explaination?

@pavybez
Copy link
Author

pavybez commented Mar 27, 2021

Lets say you configure sigma as 0.03 that means that volatility is 3% of current spot price. Use that value to calculate spreads.

@hello2all
Copy link
Owner

Ah, I see. I'll look into it. Will update here when it is fixed

@hello2all
Copy link
Owner

In the meantime, feel free to send a pull request if there is any fixes or improvements you'd like to add.

@pavybez
Copy link
Author

pavybez commented Mar 27, 2021

A couple more suggestions please:

  1. Get the mark price ".BXBT" as well cause sometimes on Bitmex there is a huge gap between mid price and mark price and incorporate it into the model.
  2. Compute volatility online as mark price changes. See here: https://core.ac.uk/download/pdf/52391988.pdf and use the fact that variance is proportional to time.
  3. Compute OBV signal cause on Bitmex, you will notice that when bid or ask size grows out of proportion it moves in the other direction significantly.
  4. Incorporate max inventory position and quote only on one side if current inventory (long or short) exceeds max inventory.
  5. Have a mechanism to close positions if they hit a stop loss criteria.

If you do these you strategy will become better. Good luck.

@hello2all
Copy link
Owner

Thank you, these are very valuable inputs. I'll add them into the product plan. Looking forward to your suggestions & critics when these are done

@hello2all
Copy link
Owner

Noted, will look into it

@ahao1995
Copy link

ahao1995 commented Apr 3, 2021

sorry to bother you.
I don't understand this issue.
you mean to calculate sigma with leverage? @pavybez @hello2all

@pavybez
Copy link
Author

pavybez commented Apr 3, 2021 via email

@ahao1995
Copy link

ahao1995 commented Apr 3, 2021

thank you~

@ahao1995
Copy link

ahao1995 commented Apr 7, 2021

So sorry to bother you again. I am not major in finance, the knowledge base is a little bit poor.
Now I know why I should convert sigma in % to usdt, but I dont know how to do it? There are some method to calculate sigma in %, but not mention how to convert it, mabe mutiply by mean value or orther else? If any paper mention it or any methods, please tell me.
thanks!
@pavybez

Repository owner deleted a comment from rookiecdn Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@pavybez @hello2all @ahao1995 and others