<?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 Attiq ur Rahman  on Medium]]></title>
        <description><![CDATA[Stories by Attiq ur Rahman  on Medium]]></description>
        <link>https://medium.com/@Attixawan?source=rss-6259d27481f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4lpIhNzLLJCUhucgCQDbKA.jpeg</url>
            <title>Stories by Attiq ur Rahman  on Medium</title>
            <link>https://medium.com/@Attixawan?source=rss-6259d27481f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 08:40:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Attixawan/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[Portfolio Optimization Using Graph Attention Neural Networks.]]></title>
            <link>https://medium.com/@Attixawan/portfolio-optimization-using-graph-attention-neural-networks-25ce89fd6be8?source=rss-6259d27481f------2</link>
            <guid isPermaLink="false">https://medium.com/p/25ce89fd6be8</guid>
            <category><![CDATA[graph-attention-networks]]></category>
            <category><![CDATA[pakistan-stock-exchange]]></category>
            <category><![CDATA[portfolio-optimization]]></category>
            <category><![CDATA[portfolio]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Attiq ur Rahman ]]></dc:creator>
            <pubDate>Sat, 30 Aug 2025 07:01:31 GMT</pubDate>
            <atom:updated>2025-08-30T07:01:31.080Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s fast-paced financial world, portfolio optimization is both an art and a science. Investors constantly face the challenge of balancing returns with risk, particularly in volatile and complex markets like the Pakistan Stock Exchange (PSX). Traditional approaches — such as Harry Markowitz’s Modern Portfolio Theory — laid the foundation for managing this trade-off. But these models assume neat, linear relationships and stable markets, assumptions that rarely hold true in real life.</p><p>This is where artificial intelligence, and specifically <strong>Graph Attention Neural Networks (GATs)</strong>, come into play. In my recent research, I developed a <strong>Decision Support System (DSS)</strong> that combines <strong>Graph Attention Networks</strong> with <strong>Bidirectional Long Short-Term Memory (BiLSTM)</strong> models to build smarter, more resilient portfolios.</p><h3>Why Traditional Models Fall Short</h3><p>Classic portfolio models rely on static correlations and normally distributed returns. But markets are <strong>non-linear, noisy, and interconnected</strong>. In emerging markets like Pakistan, these issues are amplified by limited data, higher volatility, and structural inefficiencies.</p><p>This means investors need models that can:</p><ul><li>Learn <strong>temporal patterns</strong> in stock prices (e.g., momentum, mean reversion).</li><li>Understand <strong>relationships between assets</strong>, not just treat them independently.</li><li>Adapt to <strong>shifting market dynamics</strong> in real time.</li></ul><h3>Enter Graph Attention Networks (GATs)</h3><p>Think of the stock market as a <strong>network</strong>: each stock is a node, and the connections between them (edges) represent correlations in returns. Some relationships are strong, others weak, and they change over time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wgc2meOResh15m9NhKnLsg.png" /><figcaption>Graph Representation of Stocks</figcaption></figure><p>Graph Attention Networks (GATs) excel in this setting. They use <strong>attention mechanisms</strong> to weigh which connections matter most at any given moment. This allows the model to focus on the most influential relationships between stocks — similar to how investors pay more attention to sector leaders during market shifts.</p><p>By combining GATs with <strong>BiLSTM networks</strong>, which capture forward-and-backward temporal patterns, our framework learns both the <strong>structure of the market</strong> and the <strong>evolution of stock returns</strong>.</p><h3>Methodology in Simple Terms</h3><p>Here’s how the system works step by step:</p><ol><li><strong>Data Preparation</strong> — Daily stock data from PSX (2011–2024) was converted into weekly returns to reduce noise.</li><li><strong>Graph Construction</strong> — Stocks were connected based on correlations (above 0.7), forming a market graph.</li><li><strong>GAT Layer</strong> — This layer updated each stock’s representation by learning from its most relevant neighbors.</li><li><strong>BiLSTM Layer</strong> — Sequential patterns in these graph-enriched representations were captured.</li><li><strong>Prediction &amp; Selection</strong> — The model predicted future returns and selected the most promising stocks.</li><li><strong>Portfolio Optimization</strong> — Using risk-parity weighting and correlation-aware diversification, the system allocated capital efficiently.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/261/1*OOrVfM3H445ZF88lRV9ExA.png" /><figcaption>Model</figcaption></figure><h3>Results That Matter</h3><p>The hybrid <strong>BiLSTM-GAT model</strong> significantly outperformed traditional benchmarks like the Markowitz model. Using real PSX data, the portfolio achieved:</p><ul><li><strong>41.84% annualized return</strong></li><li><strong>Sharpe ratio of 1.71</strong> (excellent risk-adjusted performance)</li><li><strong>Sortino ratio of 3.23</strong> (strong downside protection)</li><li><strong>Maximum drawdown of just -9.35%</strong> (limited losses in downturns)</li></ul><p>The allocations were well-diversified, spanning sectors like energy, cement, textiles, technology, and banking, ensuring no single asset dominated the portfolio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*wgFC5OD2xGlGAruf5fiENQ.png" /><figcaption>Portfolio Allocation by Model</figcaption></figure><h3>Why This Matters</h3><p>This research demonstrates that <strong>deep learning + graph-based models</strong> can transform how portfolios are managed, especially in emerging markets. By learning both <strong>time dynamics</strong> and <strong>network connections</strong>, investors can achieve higher returns with lower risk.</p><p>Such models open the door to intelligent, adaptive decision support systems for asset managers, financial advisors, and even individual investors who want to go beyond static models.</p><h3>Final Thoughts</h3><p>The integration of Graph Attention Networks with BiLSTM represents a powerful step forward in <strong>quantitative finance</strong>. While challenges remain — such as data limitations and computational costs — the results suggest a clear path toward <strong>AI-driven portfolio optimization</strong> that is both practical and impactful.</p><p>As markets evolve, so too must our tools. And in this journey, mathematics and machine learning together are proving to be the most valuable assets of all.</p><p>This was short blog from my research work. You can get complete explanation and model with code+dataset from me.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25ce89fd6be8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scalping Strategy for Crypto Trading]]></title>
            <link>https://medium.com/@Attixawan/scalping-strategy-for-crypto-trading-c1cf39b93729?source=rss-6259d27481f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1cf39b93729</guid>
            <category><![CDATA[scalping-trading]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Attiq ur Rahman ]]></dc:creator>
            <pubDate>Fri, 15 Sep 2023 17:41:59 GMT</pubDate>
            <atom:updated>2023-09-15T17:41:59.478Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v7fdXz3qEbWRlc7bMP-S7g.png" /><figcaption>Image by Author</figcaption></figure><p>Scalping is a short-term trading strategy that aims to profit from small price movements in an asset over a very short period, often seconds or minutes. While scalping can be applied to various financial markets, including cryptocurrencies, it’s essential to understand that it’s a high-risk and high-reward strategy that requires significant experience, discipline, and quick decision-making</p><p>Here’s how a scalping strategy can be applied to cryptocurrency trading:</p><h3><strong>Choose the Right Cryptocurrency Pairs:</strong></h3><ul><li>Focus on highly liquid cryptocurrency pairs with tight spreads. Popular pairs like BTC/USD or ETH/USD are usually good choices.</li></ul><h3><strong>Analyze Short-Term Price Movements:</strong></h3><ul><li>Scalpers typically use technical analysis with short timeframes, such as 1-minute or 5-minute charts, to identify short-term trends, support and resistance levels, and momentum indicators like RSI or MACD.</li></ul><h3><strong>Set Clear Entry and Exit Rules:</strong></h3><ul><li>Define precise entry and exit points based on your analysis. Scalpers often use limit orders to enter and exit positions at specific price levels.</li></ul><h3><strong>Manage Risk:</strong></h3><ul><li>Scalping can be risky due to the rapid pace of trading. Use stop-loss orders to limit potential losses and take-profit orders to secure profits.</li></ul><h3><strong>Position Sizing:</strong></h3><ul><li>Calculate your position size based on your risk tolerance and the size of your trading account. Keep your position sizes small to manage risk.</li></ul><h3><strong>Scalp During High Volatility Times:</strong></h3><ul><li>Cryptocurrency markets can experience periods of high volatility, which can create opportunities for scalpers. Be aware of major news events and market hours.</li></ul><h3>Monitor the Market Closely:</h3><ul><li>Scalpers need to stay focused on the market and be prepared to make quick decisions. It’s often an intense trading style that requires full attention.</li></ul><h3>Keep Transaction Costs in Mind:</h3><ul><li>Frequent trading can lead to higher transaction costs (e.g., trading fees and spreads). Factor these costs into your profit calculations.</li></ul><h3>Practice and Continuously Improve:</h3><ul><li>Scalping requires practice and experience to develop a feel for the market. Keep a trading journal, analyze your trades, and learn from both successes and failures.</li></ul><h3>Emotion Control:</h3><ul><li>Emotions can lead to impulsive decisions. Scalpers need to remain calm and disciplined to stick to their trading plan.</li></ul><h3>Be Prepared for Losses:</h3><ul><li>Scalping can result in a series of small losses. Be mentally prepared for this and ensure your risk management strategy can handle a string of losing trades.</li></ul><p>Remember that cryptocurrency markets are highly speculative and can be unpredictable. Scalping is not suitable for everyone, and many traders find it challenging due to its fast-paced nature. It’s essential to thoroughly backrest your strategy and start with a demo account or small positions to gain experience before risking substantial capital. Additionally, consider consulting with a financial advisor or experienced traders to refine your scalping strategy and minimize risks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1cf39b93729" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[دیوار کے اس پار]]></title>
            <link>https://medium.com/@Attixawan/%D8%AF%DB%8C%D9%88%D8%A7%D8%B1-%DA%A9%DB%92-%D8%A7%D8%B3-%D9%BE%D8%A7%D8%B1-78ff267dbf2?source=rss-6259d27481f------2</link>
            <guid isPermaLink="false">https://medium.com/p/78ff267dbf2</guid>
            <category><![CDATA[short-story]]></category>
            <dc:creator><![CDATA[Attiq ur Rahman ]]></dc:creator>
            <pubDate>Wed, 21 Jun 2023 02:56:04 GMT</pubDate>
            <atom:updated>2023-06-21T02:56:34.524Z</atom:updated>
            <content:encoded><![CDATA[<p>ممنوع کی دنیا!!!</p><p>‏ان کتابوں کو پڑھیں جن پر پابندی لگ چکی ہے۔<br>ان لوگوں سے ملیں جن کو معاشرہ برا کہتا ہے۔<br>ان جگہوں پر جائیں جہاں جانا منع ہے۔<br>ان دیواروں کو ہٹا کر دیکھیں جن کے پار جانا معاشرے کے اصولوں کے خلاف ہے ۔<br>وہ سارے ذائقے ایک بار ضرور چکھیں جو شجر ممنوعہ قرار دیئے جا چکے ہیں۔<br>یہ چیزیں آپکو مضبوط بنائیں گی، معاشرے کے بنے بنائے راستوں سے ہٹائیں گی، آپکو ایسے تجربات سے آگاہ کریں گی جن کے متعلق معاشرہ آپکو نہیں آگاہ کر سکتا۔معاشرے کی نام نہاد حدود اور رسوم و قیود کے پار کسی نئےجہان کے اسرار آپ پر <br>کسی بھید کی طرح کھلیں گے.</p><p>عتیق الرحمن</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78ff267dbf2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[آوارہ گردی]]></title>
            <link>https://medium.com/@Attixawan/%D8%AA%D8%AD%D8%B1%DB%8C%D8%B1-503cf6949223?source=rss-6259d27481f------2</link>
            <guid isPermaLink="false">https://medium.com/p/503cf6949223</guid>
            <category><![CDATA[short-story]]></category>
            <category><![CDATA[urdu-poetry]]></category>
            <category><![CDATA[stories]]></category>
            <dc:creator><![CDATA[Attiq ur Rahman ]]></dc:creator>
            <pubDate>Tue, 06 Jun 2023 16:02:55 GMT</pubDate>
            <atom:updated>2023-09-15T11:35:09.903Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>آوارہ گردی</strong></p><p>دِن کے 24 گھنٹوں میں سے کچھ لمحے آوارہ گردی کیلئے بھی نکالیں۔ جس میں باہر گھومیں اور اپنی ذات کو ایک طرف کرکہ جو کچھ حال میں ہورہا ہو اس پہ دھیان دیں۔</p><p>آپکو بہت سے لوگ دکھائ دینگے مستی کرتے ہوئے، پریشانی میں ڈوبے ہوئے، بیماری میں رُلتے ہوئے، حالات کے مارے ہوئے، زندگی سے لطف اندوز ہوتے آپکو ہر طرح کے انسان دکھینگے۔</p><p>اُن لمحوں میں آپ اُن کے چہروں کے تاثرات دیکھیں انہیں محسوس کریں، کوشش کریں پریشان حال کی پریشانی کو سُن کر اسکا دُکھ کم کریں، ہنسی مزاق کرتے ہوئے لوگوں کے ساتھ مُسکرائیں۔</p><p>آپ جاننا شروع کرینگے کہ یہ زندگی کتنی خوبصورت ہے۔ آپ دوسروں کو زندگی جیتا دیکھ اُن سے زندگی گزارنے کا فن سیکھینگے۔</p><p>اگر آپ اُداس ہیں تو آپ جانینگے کہ محض آپ ہی اُداس نہیں۔ اور اگر آپ خوش ہیں تو آپ دیکھینگے کہ یہ خوشیاں کتنی انمول ہیں۔</p><p>عتیق الرحمن</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=503cf6949223" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cryptocurrency Investment 1.0: A Step-by-Step Guide for Beginners]]></title>
            <link>https://medium.com/@Attixawan/cryptocurrency-investment-1-0-a-step-by-step-guide-for-beginners-c16d3ca1eb6f?source=rss-6259d27481f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c16d3ca1eb6f</guid>
            <dc:creator><![CDATA[Attiq ur Rahman ]]></dc:creator>
            <pubDate>Thu, 06 Apr 2023 06:55:42 GMT</pubDate>
            <atom:updated>2023-04-06T06:55:42.945Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*79aotsWhinp39P2yck6hHw.jpeg" /></figure><p>Cryptocurrency has become a popular investment choice for many people in recent years. It is a digital currency that uses cryptography to secure and verify transactions and to control the creation of new units. The decentralized nature of cryptocurrency means that it is not controlled by any central authority like a government or bank, and its value is determined by market demand and supply. In this article, we will provide a step-by-step guide for beginners to invest in cryptocurrency</p><p><strong>Step-01: Educate Yourself</strong></p><p>Before investing in cryptocurrency, it is essential to educate yourself on the subject. Learn about what cryptocurrency is, how it works, and the various types of cryptocurrencies available. You can read books, watch videos, attend seminars, or take online courses to learn more about the topic.</p><p><strong>Step 2: Choose a Cryptocurrency Exchange:</strong></p><p>Once you have an understanding of cryptocurrency, the next step is to choose a cryptocurrency exchange. A cryptocurrency exchange is a platform where you can buy, sell and trade cryptocurrencies. Some of the popular cryptocurrency exchanges include Coinbase, Binance, Kraken, and Gemini. Choose an exchange that is reputable, secure, and has a user-friendly interface. I will recommend you Binance. After choosing a platform create and verify your account on that platform.</p><p><strong>Step 4: Fund Your Account:</strong></p><p>After creating an account and verifying your identity, you can fund your account. Most cryptocurrency exchanges allow you to fund your account using fiat currency such as USD, EUR, or GBP. You can also fund your account using cryptocurrencies like Bitcoin or Ethereum. Choose a payment method that is convenient for you and has low transaction fees.</p><p><strong>Now there are many ways of investment. you can buy a currency and store it into your wallet. You can also do trading I will explain here two method of trading. Let’s Discuss:</strong></p><p><strong>Spot Trading:</strong></p><p>Spot trading is the most common form of trading in cryptocurrency. In spot trading, traders buy and sell cryptocurrencies at the current market price. The trades are settled immediately, and the ownership of the cryptocurrency is transferred to the buyer. Spot trading is popular among beginners because it is easy to understand and requires minimal technical knowledge.</p><p>To trade cryptocurrency on a spot exchange, you need to deposit funds into your account, select the cryptocurrency you want to trade, and place an order at the current market price or at a specific price. When your order is filled, the cryptocurrency will be credited to your account, and the corresponding funds will be debited.</p><p><strong>Futures Trading:</strong></p><p>Futures trading is a more complex form of trading in cryptocurrency. In futures trading, traders speculate on the price of cryptocurrencies at a future date. Futures contracts are agreements to buy or sell a specific amount of cryptocurrency at a future price and date. The price of futures contracts is determined by the market demand and supply of the underlying asset.</p><p>Futures trading allows traders to leverage their positions by trading with margin. This means that traders can trade with more funds than they have in their accounts. However, margin trading is risky and can result in significant losses if the market moves against your position.</p><p>To trade cryptocurrency futures, you need to deposit funds into your margin account, select the futures contract you want to trade, and place an order at the current market price or at a specific price. When your order is filled, you will need to maintain the required margin to keep your position open. If the market moves in your favor, you can close your position and make a profit. However, if the market moves against your position, you may be required to deposit additional funds to maintain your margin, or your position may be liquidated.</p><p><strong>Spot vs. Futures Trading:</strong></p><p>Spot trading and futures trading are different forms of trading in cryptocurrency with their own advantages and disadvantages. Spot trading is simple, straightforward, and requires minimal technical knowledge. It is suitable for beginners who want to buy and hold cryptocurrency for the long term.</p><p>Futures trading, on the other hand, is more complex and requires advanced technical knowledge. It allows traders to leverage their positions and potentially make significant profits. However, it is also more risky and requires careful risk management to avoid significant losses.</p><p><strong>In conclusion,</strong> whether you choose spot trading or futures trading depends on your investment goals, risk appetite, and trading experience. It is important to educate yourself on both forms of trading, understand the risks involved, and choose a reputable exchange to trade on.</p><p><strong>For Beginners its very tough to analyze which currency should he invest in. You can ask me in comments for signals and also contact me for choosing right currency at right time.</strong></p><p>Thanks you!</p><p><strong>Attiq ur Rahman.</strong></p><p>atiqawanhn@gmail.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c16d3ca1eb6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Beyond the Degree: Skills Employers Value Most”]]></title>
            <link>https://medium.com/@Attixawan/beyond-the-degree-skills-employers-value-most-6da376bd413?source=rss-6259d27481f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6da376bd413</guid>
            <category><![CDATA[skills-you-need-the-most]]></category>
            <category><![CDATA[employability-skills]]></category>
            <category><![CDATA[softskillsimprovement]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[skills-development]]></category>
            <dc:creator><![CDATA[Attiq ur Rahman ]]></dc:creator>
            <pubDate>Mon, 27 Mar 2023 12:30:49 GMT</pubDate>
            <atom:updated>2023-03-27T12:30:49.774Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong>:</p><p>In today’s competitive job market, having a university degree is no longer enough to guarantee employment. Employers are looking for candidates who possess a range of skills that go beyond academic qualifications. Developing these skills is crucial to enhancing your employability and securing the job of your dreams. In this blog post, we will explore some of the key skills that employers value and how you can develop them beyond your university degree. Let’s start our debate on soft skills first.</p><p><strong>Soft Skills</strong>:</p><p>Soft skills are the personal qualities and attributes that enable individuals to work effectively with others. These skills are highly valued by employers as they are crucial for building relationships with colleagues, clients, and stakeholders. Some most valuable soft skills are describe in the following picture. We’ll discuss each of them in this read.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ThBD4XEOVV7LI_zxyL8gHA.png" /><figcaption><em>Image by Author</em></figcaption></figure><p><strong>Problem-solving and critical thinking:</strong></p><p>Employers look for individuals who can identify problems, analyze data, and develop innovative solutions. Basic principal of solving a problem is shown below but all the problems doesn&#39;t follow this chart. We’ll explore more on each skills in by one in our next readings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*qFNZqnBQ_5FuAsSXhK59IQ.png" /></figure><p><strong>Communication:</strong></p><p>Strong communication skills, including verbal and written communication, are highly valued by employers. This includes the ability to present ideas clearly and persuasively, listen actively, and collaborate effectively.</p><p><strong>Adaptability and flexibility:</strong></p><p>Employers value individuals who can adapt to changing circumstances, be flexible in their approach to work, and thrive in fast-paced environments.</p><p><strong>Teamwork and collaboration:</strong></p><p>Employers look for individuals who can work effectively in a team, communicate clearly, and contribute to the team’s success.</p><p><strong>Leadership:</strong></p><p>Leadership skills, including the ability to inspire and motivate others, delegate tasks effectively, and make difficult decisions, are highly valued by employers.</p><p><strong>Professional Development:</strong></p><p>Continuous learning and professional development are crucial for enhancing your employability. It shows that you are committed to developing your skills and keeping up-to-date with the latest industry trends. See following chart describing steps to be a professional</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Tf_iwlywYyAG5G7qGcnbA.png" /><figcaption>Image by Author</figcaption></figure><p>To develop professionally, you can take courses, attend workshops, or conferences. Additionally, networking events can provide an opportunity to meet other professionals in your field, learn from their experiences and expand your professional network.</p><p><strong>Conclusion:</strong></p><p>Developing the skills that employers value requires more than just obtaining a university degree. Soft skills, work experience, and professional development are all crucial components of enhancing your employability. By taking part in extracurricular activities, gaining work experience, and investing in professional development, you can develop a well-rounded skill set that will make you stand out in the job market. Remember that developing these skills is a continuous process that requires commitment and dedication, but the rewards are well worth it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6da376bd413" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Forecasting future values of cryptocurrency(Bitcoin) with Monte Carlo Simulations]]></title>
            <link>https://medium.com/@Attixawan/forecasting-future-values-of-cryptocurrency-bitcoin-with-monte-carlo-simulations-eb0bcc281ece?source=rss-6259d27481f------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb0bcc281ece</guid>
            <category><![CDATA[monte-carlo-simulation]]></category>
            <category><![CDATA[simulation]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[cryptocurrency-investment]]></category>
            <dc:creator><![CDATA[Attiq ur Rahman ]]></dc:creator>
            <pubDate>Mon, 20 Mar 2023 20:12:18 GMT</pubDate>
            <atom:updated>2023-03-20T20:12:18.085Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*enGei177zBP92H-6gL2HRg.png" /><figcaption>Image by Author via Canva Pro Account</figcaption></figure><p>In this article we will see that how can we use Monte Carlo simulation technique to analyze the future trend of any cryptocurrency. First of all let’s learn some basics of cryptocurrency and Monte Carlo simulation and then we will move into a practical step-by-step implementation.</p><h3><strong>What is cryptocurrency?</strong></h3><p>Cryptocurrency is a digital currency which secured by cryptography based on decentralized network. Which means that this is not controlled by any government or authority. Blockchain technology is uses for secure transaction and managing the record of each and every transaction and even trade. There are many digital currencies some famous of them are BTC, ETH, BNB, USDT,BUSD, GALA, and many more.</p><h3><strong>What is Mont Carlo Simulation?</strong></h3><p>Monte Carlo simulation is a method used to analyze system behavior. In this method random inputs are generated from probability distribution. With these set of generated inputs probability of different outcomes is estimated. Following are key steps in this method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mXra-ePwUe98D-0WUhp1-g.png" /><figcaption>Image by Author via Canva Pro</figcaption></figure><h3><strong>Bitcoin price Forecast with Monte Carlo Simulation:</strong></h3><p>Our objective is to predict how the Bitcoin prices can evolve in the future. For this purpose we took previous four weeks data of Bitcoin on daily basis including following information:</p><p>Open value</p><p>Highest value</p><p>Lowest value</p><p>Closed value</p><p>I collected this data from my Binance account shown in following table:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*4Uj0Hp1h1YCKOug241-D0g.png" /><figcaption>Image by Author via Binance API</figcaption></figure><p>I took values from February 19, 2023 to March 19, 2023. Put the data into Excel sheet and calculate daily return (close value-open value). After this we calculate Mean and Standard deviation for daily return and for open and close prices. Keep in mid that our goal is to analyze Bitcoin value for next week.</p><p>After calculating mean and standard deviation we use RAND() function in excel to generate any random possibility Following Formula is used in Excel to approximate expected daily return for next week.</p><p>=Norm.inv(rand(),mean, std)</p><p>In place of mean and std you have to write average and standard deviation of daily return.</p><p>Now its time to calculate values for next week. Note that closed price of previous day is open price for next day so we have value of 19 March open price(i.e. value of closed price of 18 march). Daily expected return is randomly generated by simulation. Add this return to open price to get close price. Repeat this process for next values.</p><p>I got following values in a scenario</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*duZ4Aee7rbTvmpoHQqKDmA.png" /><figcaption>Image by Author via excel sheet</figcaption></figure><h3><strong>Results:</strong></h3><p>After repeating simulation again and again i draw the result using water chart with low and high values. Following chart is displayed by excel on my data.</p><p>Note: These are 5 weeks data including 4 previous weeks and one next week. Each candle shows value for one day. Last 7 candles are our forecasting for next week.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*OhkBXh78aIVHGiJHUTncbQ.png" /><figcaption>Image by Author via excel chart</figcaption></figure><p>Now lets have a look on Bitcoin real chart on my Binance account:</p><p>Note: This is the original graph of BTC taken fron Binance. Showing data for almost 6 months. we have to compare our graph with this on last 5 weeks specifically for upcoming week.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nbEkO8-HZQiUd-YNBnKIlQ.png" /><figcaption>Image by Author via Binance API</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*I0yuZ9sHmdeP6f6lCxiALQ.png" /><figcaption>Image by Author via Binance API</figcaption></figure><p>we must repeat a large number of simulations to get a fair approximate. Although we can’t get accurate forecasting. But we can analyze the results of different simulations:</p><p>I hope you guys understand the initial concept. We will go for a complex problems taking three to five currencies. And analyzing our Cryptocurrency portfolio to analyze how much should we invest in each coin to get a desired profit. Follow me for more content. Thanks</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb0bcc281ece" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>