You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ask anything you want about mplfinance usage, project philosophy and/or priorities, or anything else related to mplfinance.
How do I create a buy indicator using mplfinance that displays an arrow under a candle where the short and long term moving averages meet?
The text was updated successfully, but these errors were encountered:
mplfinance presently does not contain any code to find and indicate where moving averages are meeting or crossing.
You will need to access the moving average data, and write some code yourself to find where they meet, and then use mpf.make_addplot(...type='scatter'...) to plot markers where you want them.
There are two ways to access the moving average data:
Call mpf.plot() twice. The first time, as above, but using the return_calculated_values kwarg. This will give you the moving averages that mplfinance calculated. You can then use that data to find where they cross, and then call mpf.plot() again with the additional mpf.make_addplot(...type='scatter'...) to plot markers to highlight where the moving averages meet.
Calculate the moving averages yourself, find where they meet, and then call mpf.plot() with the appropriate mpf.make_addplot(...type='scatter'...) to highlight where the moving averages meet.
Ask anything you want about mplfinance usage, project philosophy and/or priorities, or anything else related to mplfinance.
![Screenshot 2024-02-24 000308](https://private-user-images.githubusercontent.com/100531800/307478173-cdcc9c84-3b00-4994-90e6-d53e4b4344f1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwMDczMDQsIm5iZiI6MTcyNjAwNzAwNCwicGF0aCI6Ii8xMDA1MzE4MDAvMzA3NDc4MTczLWNkY2M5Yzg0LTNiMDAtNDk5NC05MGU2LWQ1M2U0YjQzNDRmMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMFQyMjIzMjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xNGZlN2QzNmEzMjc4NGI1ZThhYWQ0MTE1MGNkZTExMTY5MzEwNmMyYzFlNWJhNWQ1ZGJlZjRhNzU0ZWUzZDA2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.2AWHT2uPgqEwqqinIjCfANl1xL76b_dkchHh4djJWWQ)
![download](https://private-user-images.githubusercontent.com/100531800/307478210-3d5af874-6923-4668-a098-a04c333761d6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwMDczMDQsIm5iZiI6MTcyNjAwNzAwNCwicGF0aCI6Ii8xMDA1MzE4MDAvMzA3NDc4MjEwLTNkNWFmODc0LTY5MjMtNDY2OC1hMDk4LWEwNGMzMzM3NjFkNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMFQyMjIzMjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kNjc4ZDQ4ZTBkNDdiMTA2ODUzNzg4OTFhYzZjZjJhOTJlNjg4OTQ3NDliNzYzMTA3NDQ1YjQ4MTBhMTI3MWIyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.fd2BXA82R-eP53de5Pvc6FTiCRfdkkkZ3-XAhGCQ_Tk)
How do I create a buy indicator using mplfinance that displays an arrow under a candle where the short and long term moving averages meet?
The text was updated successfully, but these errors were encountered: