Skip to content

OHLC Bar Coloring - Not based on Increasing / Decreasing Bars #217

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

Open
crossjbeer opened this issue Jul 16, 2020 · 2 comments
Open

OHLC Bar Coloring - Not based on Increasing / Decreasing Bars #217

crossjbeer opened this issue Jul 16, 2020 · 2 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@crossjbeer
Copy link

I am running a BackTest to simulate equity from a given trading strategy. We are using MPLFinance to plot the OHLC Bars of the stock we are trading. Our project requires OHLC Bars to be colored based on the trade taken at a given index. For example, if the strategy recommends a Buy order at market open, we would like the bar at market open to appear red.

After reading through the documentation, it seems there is substantial support for custom colors on the plots. This customization happens primarily through the make_markretcolors function. However, it seems the bars are always colored according to whether they are increasing or decreasing. I have been so far unable to pinpoint the segment of code I should amend to or modify to change this behavior.

Thank you for any help you can provide, and have a great day.

@crossjbeer crossjbeer added the question Further information is requested label Jul 16, 2020
@DanielGoldfarb
Copy link
Collaborator

duplicate of #205
Please see comment here.

@DanielGoldfarb DanielGoldfarb added the enhancement New feature or request label Jul 16, 2020
@alexpvpmindustry
Copy link
Contributor

@crossjbeer see the last cell in marketcolor_overrides.ipynb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants