Spaces:
Sleeping
Sleeping
Update app.py
Browse files601 unmodified lines602603604605606607601 unmodified lines)st.plotly_chart(fig_bar7, use_container_width=True)st.markdown("---") # Add a horizontal line as a visual separator# Support and Resistance Levels on Price Chart# Description: Overlay horizontal lines on the underlying asset's price chart at strike prices with significant open interest.601 unmodified lines602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633601 unmodified lines)st.plotly_chart(fig_bar7, use_container_width=True)st.markdown("---") # Add a horizontal line as a visual separator# Price vs. Strike Scatter Plot with OI Sizing# Description: Scatter plot where each point represents an option contract, with the x-axis as strike price, y-axis as option price, and point size proportional to open interest.# Purpose: Visualizes the relationship between option pricing and open interest across strikes.# Implementation: Use strike for the x-axis and lastPrice for the y-axis. Set the size of each point based on openInterest. Differentiate calls and puts using color or markersst.write("*Tips: in Price vs. Strike Scatter Plot with Days Left Sizing, Larger points indicate higher open interest, helping to identify popular strike prices.*")fig_bar7_2 = px.scatter(filtered_ticker_df,x="strike",y="lastPrice",size="daysleft",color="Type",title=f"Price vs. Strike Scatter Plot for {selectedTicker}",labels={"x": "Strike Price", "y": "Option Price"},color_discrete_map={"CALL": "green", "PUT": "red"},)fig_bar7_2.update_layout(xaxis_title="Strike Price",yaxis_title="Option Price",autosize=True,height=600,)st.plotly_chart(fig_bar7_2, use_container_width=True)st.markdown("---") # Add a horizontal line as a visual separator# Support and Resistance Levels on Price Chart# Description: Overlay horizontal lines on the underlying asset's price chart at strike prices with significant open interest.
app.py+26