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

spread trading costs #20

Open
mg64ve opened this issue Oct 20, 2018 · 5 comments
Open

spread trading costs #20

mg64ve opened this issue Oct 20, 2018 · 5 comments

Comments

@mg64ve
Copy link

mg64ve commented Oct 20, 2018

Hi,

nice library! I have a question, is finmarketpy considering spread trading costs?

Kindly let me know.
Thanks.

Regards.

@ShihHauTan
Copy link
Contributor

Hi, yes you can add transaction costs in your backtesting model. Under the load_parameters function, you can define br.spot_tc_bp = 0.5, for example, to add the transaction cost into the trading.

@mg64ve
Copy link
Author

mg64ve commented Oct 23, 2018

Thanks ShihHauTan, what does 0.5 stand for? Is it PIPS or percentage?
How are trading costs calculated?

@mg64ve
Copy link
Author

mg64ve commented Jan 9, 2019

@ShihHauTan one more question: walk-forward testing for machine learning models, is it implementable in finmarketpy ?

@saeedamen
Copy link
Contributor

I think that is probably something you can implement in finmarketpy (but it isn't there at the moment)

@mg64ve
Copy link
Author

mg64ve commented Jan 9, 2019

Thanks @ShihHauTan , sorry for so many questions but, before dedicating a lot of time and finally find that is not be feasible, I'd prefer to ask.
What I want to do is to build a machine learning model within in-samples dataset and then test it in ot-of-samples dataset.
Do you think it is feasible with a simple loop?
Do you have an example of simple machine learning strategy?

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

3 participants