Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Q: How to backtesting Micro-Futures #313

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

Closed
KingKnecht opened this issue Apr 23, 2021 · 4 comments
Closed

Q: How to backtesting Micro-Futures #313

KingKnecht opened this issue Apr 23, 2021 · 4 comments
Labels
question Not a bug, but a FAQ entry

Comments

@KingKnecht
Copy link

When trading Micro-Futures

  1. there is a fixed commission say 0.77€/contract. As I understand it's not possible to have fixed commission with this framework?
  2. one tick (0.25) in price is worth 1.25€. Is there a way to simulate this?

Thx

@kernc
Copy link
Owner

kernc commented Apr 24, 2021

  1. there is a fixed commission say 0.77€/contract. As I understand it's not possible to have fixed commission with this framework?

Indeed, duplicate of #113. Something simple adversarial as this might work:

commission = ceil(0.77 / data.Close.mean() * 1e3) / 1e3
  1. one tick (0.25) in price is worth 1.25€. Is there a way to simulate this?

I don't quite get it. One tick (1/4) in price is worth 1.25€? So four ticks (4/4) signify a move of 5€? Can you show a sample of your data?

@kernc kernc added the question Not a bug, but a FAQ entry label Apr 24, 2021
@KingKnecht
Copy link
Author

KingKnecht commented Apr 24, 2021

I don't quite get it. One tick (1/4) in price is worth 1.25€? So four ticks (4/4) signify a move of 5€? Can you show a sample of your data?

Exactly.
image

See here:
CME Group

@KingKnecht
Copy link
Author

Here are same trading examples. Red lined example is 2 ticks ( tick size 0.25) which is then 2.50€.
image

@kernc
Copy link
Owner

kernc commented Apr 25, 2021

If you get 5€ per every unit of price, seems to me simply multiplying data by 5 should do it.

@kernc kernc closed this as completed Apr 25, 2021
Repository owner locked and limited conversation to collaborators Apr 25, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
question Not a bug, but a FAQ entry
Projects
None yet
Development

No branches or pull requests

2 participants