<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Harshwardhandere on Medium]]></title>
        <description><![CDATA[Stories by Harshwardhandere on Medium]]></description>
        <link>https://medium.com/@harshwardhandere0?source=rss-294bd5855447------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*K0zu8K77wsD77DvS</url>
            <title>Stories by Harshwardhandere on Medium</title>
            <link>https://medium.com/@harshwardhandere0?source=rss-294bd5855447------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 16:41:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@harshwardhandere0/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ Backtesting a Crypto Trading Strategy in Python (No API Needed!)]]></title>
            <link>https://medium.com/@harshwardhandere0/backtesting-a-crypto-trading-strategy-in-python-no-api-needed-671508a0853e?source=rss-294bd5855447------2</link>
            <guid isPermaLink="false">https://medium.com/p/671508a0853e</guid>
            <category><![CDATA[trading-strategy]]></category>
            <category><![CDATA[backtesting-strategy]]></category>
            <category><![CDATA[bitcoin]]></category>
            <dc:creator><![CDATA[Harshwardhandere]]></dc:creator>
            <pubDate>Thu, 20 Feb 2025 12:39:00 GMT</pubDate>
            <atom:updated>2025-02-20T12:39:00.218Z</atom:updated>
            <content:encoded><![CDATA[<p>💡 <strong>Ever wanted to test a trading strategy but faced API restrictions?</strong> I had the same problem while working with Binance data. Instead of relying on APIs, I used <strong>historical CSV data</strong> and built a <strong>simple yet effective backtesting system</strong> in Python!</p><p>📈 <strong>In this post, I’ll walk you through the step-by-step process</strong> of backtesting a trading strategy using historical Binance data, Pandas, and Matplotlib.</p><h3>🚀 Why Backtesting Matters?</h3><p>Before trading real money, <strong>you must validate your strategy</strong> on historical data. Backtesting helps you:</p><p>✅ Understand how your strategy would have performed in the past<br> ✅ Identify potential risks and losses<br> ✅ Optimize parameters for better results</p><p>Without proper backtesting, trading is just <strong>guesswork</strong>!</p><h3>📥 Step 1: Download Historical Crypto Data</h3><p>Since API access can be restricted by location, I downloaded historical Binance data from <a href="https://www.cryptodatadownload.com/">CryptoDataDownload</a>.</p><p>👉 <strong>Go to the website and download the “Binance Spot 1D BTC/USDT” CSV file</strong> (or any other pair you prefer).</p><p>💾 Save the file as BTCUSDT.csv.</p><h3>🛠 Step 2: Load and Preprocess the Data</h3><p>Once the CSV file is downloaded, it must be <strong>loaded and cleaned</strong> before analysis.<br> Some key preprocessing steps include:</p><ul><li>Renaming columns for easier access</li><li>Converting the date column to datetime format</li><li>Sorting the data by date for consistency</li></ul><p>At this stage, the data is <strong>clean and ready for analysis</strong>.</p><h3>📊 Step 3: Implement a Simple Trading Strategy</h3><p>For this project, I used a <strong>Simple Moving Average (SMA) crossover strategy</strong>. This is a widely used method in algorithmic trading:</p><p>✔ <strong>Buy when the 10-day SMA crosses above the 50-day SMA</strong><br> ✔ <strong>Sell when the 10-day SMA crosses below the 50-day SMA</strong></p><p>The SMAs help <strong>identify trends</strong> and reduce noise in price movements.</p><h3>📈 Step 4: Backtest the Strategy</h3><p>To evaluate the performance of this strategy, I simulated trades based on the buy/sell signals and calculated:</p><ul><li><strong>Daily returns</strong> to measure how the price changes each day</li><li><strong>Strategy returns</strong> to assess how well the system performs compared to holding BTC</li><li><strong>Cumulative returns</strong> to visualize long-term profitability</li></ul><p>By comparing these returns with a <strong>simple buy-and-hold approach</strong>, we can determine if the strategy is <strong>better than just holding Bitcoin</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aLEvq3mqY8hB8E2vKjSUyg.png" /></figure><h3>🎯 Step 5: Visualize the Results</h3><p>A clear visualization of <strong>price movements, moving averages, and buy/sell signals</strong> makes it easier to understand market trends.</p><p>I plotted:<br> 📊 <strong>Price Chart</strong> — Showing BTC/USDT price movements<br> 📉 <strong>SMA Lines</strong> — To highlight trend shifts<br> 📍 <strong>Buy/Sell Markers</strong> — To show when the system triggers trades</p><p>This <strong>helps in debugging</strong> the strategy and optimizing it for better performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WsEIh2jFhgiS2NtFpnU-4g.png" /><figcaption>BACKTESTING RESULT BITCOIN</figcaption></figure><h3>🔗 Final Thoughts</h3><p>This <strong>simple backtesting system</strong> helped me <strong>test a trading strategy without API restrictions</strong>. Even though it’s a basic approach, it provides <strong>insights into market behavior</strong> and forms the foundation for more advanced strategies.</p><p>📌 <strong>Next Steps:</strong></p><ul><li>Experiment with different indicators like RSI or Bollinger Bands</li><li>Optimize parameters to improve accuracy</li><li>Use risk management techniques like stop-loss</li></ul><p>💬 <strong>Have you tried backtesting a trading strategy? Let’s discuss in the comments!</strong> 🚀</p><p>GITHUB PROJECT LINK. -</p><p><a href="https://github.com/Harshwardhandere/bitcoin-crypto-backtesting-">https://github.com/Harshwardhandere/bitcoin-crypto-backtesting-</a></p><p>#CryptoTrading #Backtesting #DataScience #Finance #Python</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=671508a0853e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[H Mart E-commerce Store Sales Analysis: Insights from Data]]></title>
            <link>https://medium.com/@harshwardhandere0/h-mart-e-commerce-store-sales-analysis-insights-from-data-a1da4713cd8c?source=rss-294bd5855447------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1da4713cd8c</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[ecommerce-data-analytics]]></category>
            <dc:creator><![CDATA[Harshwardhandere]]></dc:creator>
            <pubDate>Thu, 09 Jan 2025 03:14:18 GMT</pubDate>
            <atom:updated>2025-01-09T03:14:18.827Z</atom:updated>
            <content:encoded><![CDATA[<p>As a data enthusiast, I recently worked on analyzing the sales data of H Mart E-commerce Store to uncover valuable insights into profitability, sales performance, and regional trends. Here’s a concise overview of the findings:</p><h3>Key Metrics at a Glance</h3><ul><li><strong>Total Profit</strong>: ₹8,606</li><li><strong>Total Sales Amount</strong>: ₹59,000</li><li><strong>Total Quantity Sold</strong>: 291 units</li></ul><p>The data provided a wealth of insights into profit distribution, state-wise sales, and category-specific performance.</p><h3>Profit by Sub-Category</h3><p>Analyzing sub-category profits revealed:</p><ul><li><strong>Printers</strong> generated the highest profit (₹10,000+), followed by <strong>Bookcases</strong> and <strong>Sarees</strong>.</li><li><strong>Accessories</strong> and <strong>Tables</strong> showed lower profits, indicating potential areas for optimization.</li></ul><p>This insight is crucial for targeting high-performing products and reevaluating underperforming ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tn8E-A1uxz8pxW68AR_z6Q.png" /><figcaption>POWER BI DASHBOARD OF ECOMMERCE DATA ANALYSIS</figcaption></figure><h3>Category Profit Distribution</h3><p>A look at profit distribution by category revealed that:</p><ul><li><strong>Electronics</strong> drove significant profits, thanks to high-margin products like printers.</li><li>Some categories had negligible or zero profit, highlighting areas needing further attention.</li></ul><h3>State-Wise Sales Trends</h3><p>State-wise sales analysis showed:</p><ul><li><strong>Maharashtra</strong> topped sales at ₹15,000, followed by <strong>Madhya Pradesh</strong> (₹12,000) and <strong>Uttar Pradesh</strong> (₹8,000).</li><li><strong>Delhi</strong> showed lower sales (₹1,000), suggesting the need for stronger regional strategies.</li></ul><h3>Quantity vs. Profit</h3><p>The relationship between quantity sold and profit showed:</p><ul><li>High-margin products like printers outperformed high-volume but low-margin items.</li><li>Balancing margin-driven and volume-driven strategies is essential for long-term success.</li></ul><h3>Key Takeaways</h3><ol><li><strong>Invest in High-Profit Sub-Categories</strong>: Focus on promoting printers and bookcases.</li><li><strong>Optimize Regional Strategies</strong>: Maharashtra and Madhya Pradesh show high potential for growth.</li><li><strong>Address Low-Profit Items</strong>: Revise strategies for accessories and tables to boost profitability.</li><li><strong>Balance Volume and Margin</strong>: Striking this balance is critical for sustainable growth.</li></ol><h3>Why This Matters</h3><p>This analysis underscores the power of data-driven decisions in e-commerce. H Mart can refine inventory, tailor marketing, and improve profitability using insights from this dashboard. For me, this project was a fantastic opportunity to apply data visualization and analysis skills to real-world challenges.</p><p>If you’ve worked on similar projects or have insights, feel free to share your thoughts!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1da4713cd8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hotel Business Analytics: Unlocking Insights Through Data]]></title>
            <link>https://medium.com/@harshwardhandere0/hotel-business-analytics-unlocking-insights-through-data-2ce434dd7249?source=rss-294bd5855447------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ce434dd7249</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-anlytics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Harshwardhandere]]></dc:creator>
            <pubDate>Tue, 31 Dec 2024 14:26:27 GMT</pubDate>
            <atom:updated>2024-12-31T14:26:27.700Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In today’s competitive hospitality industry, the ability to make data-driven decisions can make or break a business. Recognizing this, I set out to analyze hotel booking data to uncover insights into occupancy rates, customer behavior, and revenue trends. The result is a Hotel Business Analytics project that provides actionable insights to optimize operations and increase profitability.</p><h3>Tools and Technologies</h3><p>This project was built using:</p><ul><li><strong>Programming Language:</strong> Python</li><li><strong>Libraries:</strong> Pandas, NumPy, Matplotlib, Seaborn, Scikit-learn</li><li><strong>Data Visualization Tools:</strong> Tableau</li><li><strong>Dataset:</strong> A publicly available dataset from <a href="https://www.kaggle.com/">Kaggle</a>, containing anonymized hotel booking data.</li></ul><h3>Implementation</h3><h4>1. Problem Statement</h4><p>The primary aim was to analyze key performance indicators (KPIs) for hotel bookings and predict trends that could guide decision-making. The project addressed questions like:</p><ul><li>What are the peak booking periods?</li><li>How do cancellations impact revenue?</li><li>Which customer segments are the most profitable?</li></ul><h4>2. Data Preprocessing</h4><ul><li><strong>Data Cleaning:</strong> Addressed missing values and outliers with appropriate techniques.</li><li><strong>Feature Engineering:</strong> Added new features such as “Booking Month” and “Lead Time” to improve the analysis.</li><li><strong>Data Transformation:</strong> Standardized numerical features and encoded categorical variables for machine learning.</li></ul><h4>3. Exploratory Data Analysis (EDA)</h4><ul><li><strong>Occupancy Trends:</strong> Used heatmaps to visualize occupancy rates by month and room type.</li><li><strong>Cancellation Analysis:</strong> Found patterns in cancellations and examined contributing factors like lead time and payment type.</li><li><strong>Revenue Insights:</strong> Analyzed revenue per available room (RevPAR) to identify high-performing periods and customer groups.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JJuzj8Ca0QqvBHjPnL1C_Q.png" /><figcaption><strong>Differnt types of distributions of data</strong></figcaption></figure><h4>4. Predictive Analytics</h4><ul><li><strong>Model Selection:</strong> Tested several models, including Random Forest and Gradient Boosting, to predict booking cancellations.</li><li><strong>Model Performance:</strong> Evaluated models using metrics like accuracy, precision, and recall. Gradient Boosting performed best with an 87% accuracy rate.</li><li><strong>Feature Importance:</strong> Highlighted key predictors of cancellations, such as lead time and deposit type.</li></ul><h3>Results</h3><ul><li><strong>Peak Periods:</strong> Identified July and August as peak months, with occupancy rates 30% higher than the annual average.</li><li><strong>Cancellation Insights:</strong> Found that offering non-refundable bookings reduced cancellations by 40%.</li><li><strong>Revenue Strategies:</strong> Proposed dynamic pricing based on customer segmentation and seasonal demand.</li><li><strong>Predictive Success:</strong> Enabled proactive measures by accurately predicting cancellations.</li></ul><h3>Conclusion and Future Work</h3><p>This project highlights how analytics can improve hotel operations, cut down cancellations, and boost revenue management. The findings provide a solid foundation for informed decision-making in the hospitality sector.</p><h4>Future Enhancements</h4><ul><li>Incorporating real-time data streams for dynamic analysis.</li><li>Expanding the analysis to include customer reviews for sentiment analysis.</li><li>Building a user-friendly web-based application to make the insights more accessible.</li></ul><h3>Interactive Access</h3><p>You can explore the full project on <a href="https://colab.research.google.com/drive/1Y2xLS5CETsrvHKD2Y8rSd7MiVZz8ra_n?usp=drive_link">Google Colab.</a></p><h3>About Me</h3><p>I’m a budding data scientist passionate about using data to solve real-world problems. This project is part of my growing portfolio, showcasing my expertise in data analysis and predictive modeling. If you’d like to see more of my work, check out my <a href="https://medium.com/@username">Medium profile</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ce434dd7249" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>