You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Volatility Trading: Trading The Fear Index VIX
Volatility Trading: Trading The Fear Index VIX
The session began with the host and guest speaker providing an agenda for the webinar, which aimed to enhance participants' understanding of volatility in financial markets. They started by defining volatility and its association with the VIX, also known as the "fear index." The speaker delved into the different types of VIX and VIX-based derivatives, shedding light on their significance in trading. The session also included a practical approach to trading the VIX and concluded with a Q&A session to address any queries from the audience.
To illustrate the concept of volatility, the host used Tesla as an example of a highly volatile stock, explaining how its daily returns fluctuate between -20% to +20%. This level of volatility makes it a risky asset to handle. The host emphasized that merely looking at the price graph of an asset does not provide a clear idea of its volatility. Instead, it is the daily returns that offer a better indication of an asset's volatility.
The video further explored the application of volatility beyond options trading and its usefulness in making decisions about purchasing assets as a whole. The speaker categorized volatility based on the magnitude of an asset's fluctuations, ranging from high to low volatility. A comparison between Tesla and the S&P 500 was made, with the S&P 500 being considerably lower in volatility. Various methods of measuring volatility were discussed, including standard deviation and beta, which provide historical values of volatility. The concept of implied volatility was introduced, representing the market's expectation of an asset's future movements without specifying the direction of those movements.
The webinar then focused on explaining the calculation of the VIX, or volatility index, and its utilization of implied volatility from different types of index options to gauge the potential for sharp changes. The VIX is commonly referred to as the "fear index" and is graphed in relation to the S&P 500. While the VIX typically aims to stay low, unexpected events can cause it to spike, leading to increased fear in the market. The actual calculation of the VIX is conducted by the CBOE, providing traders with the figures they need to track the VIX's journey and its relationship with the underlying index. Overall, the VIX serves as an essential tool for traders seeking to mitigate risk in the market.
The speaker further discussed the relationship between the VIX and the S&P 500, emphasizing that the VIX reflects the market's expectation of volatility in the index's future and how it reacts during times of uncertainty when the S&P 500 experiences declines. The speaker cited examples such as the US-China trade war and the COVID-19 pandemic to illustrate the correlation between the VIX and the S&P 500. While the VIX strives to remain low, unexpected events can lead to a sharp increase in volatility. However, as traders process new information and uncertainty diminishes, volatility also decreases.
The concept of the fear index or VIX was introduced as a measure of traders' fear regarding negative news impacting the market. It was highlighted that the VIX is not limited to the S&P 500 but can be applied to other geographical areas, such as the Australian Stock Exchange, Eurozone stocks, and the Hang Seng Index, as well as other asset classes like commodities and currencies. The need for the VIX arises because traders may have expectations of market volatility, but it is not the sole factor in determining trading decisions since options Greeks also play a role. Therefore, the VIX serves as a tool for traders to trade options based on market volatility. Although the VIX itself does not have a trading instrument, derivatives such as futures and options enable the estimation of future volatility, facilitating trading strategies.
The different types of VIX futures available for trading were discussed, including standard, near month, next month, far month expiries, and weekly expiries. The video highlighted that while VIX futures can be expensive, there are mini-futures available at one-tenth of the value, providing a more accessible option for traders. Additionally, VIX ETFs (Exchange-Traded Funds) were introduced as an alternative to trading VIX futures. These ETFs derive their value from VIX futures and offer different options based on traders' preferences. Short-term VIX ETFs, such as VIXY, track near month and next month futures, while medium-term VIX ETFs, like VIXM, track medium-term futures. Inverse VIX ETFs, such as SVXY, were also mentioned, as they move in the opposite direction of VIX futures, increasing in value when futures decline. Traders can choose from these various types of VIX futures and ETFs based on their market outlook and trading strategies.
Moving on, the video explored other VIX-based derivatives, including VIX ETFs and VIX ETNs (Exchange-Traded Notes). VIX ETFs were explained to have underlying VIX futures, providing exposure to volatility in the market. On the other hand, VIX ETNs were highlighted as not having an underlying asset. The speaker mentioned the popular VXX as an example of a VIX ETN. It was emphasized that trading VIX-based derivatives comes with risks, and it is crucial for traders to understand these risks before engaging in such trading activities. Testing and backtesting strategies in a paper trading environment were recommended before trading with real capital. ETNs, in particular, carry issuer risk, meaning that if the company issuing the ETNs fails to fulfill its obligations, investors' capital could be at risk. Additionally, VIX futures were noted to have a contango effect that introduces certain risks and considerations for traders.
The speaker delved into the topic of VIX futures convergence as they approach their expiry date. They explained that as the expiration date nears, VIX futures prices tend to converge. It was stressed that being on the right side of the trade before this convergence is crucial for traders involved in VIX futures trading. The video then introduced a simple VIX-based strategy that involves using the VIX to hedge a portfolio during declining times by going long on VIX futures. This strategy was tested and found to yield three times higher returns between 2011 and 2021 when combined with a portfolio of the S&P 500. The importance of backtesting ideas and practicing them in a paper trading environment was emphasized as a means to gain confidence before implementing them in real trading scenarios.
The webinar hosts shared information about a course they have developed called "Volatility Trading Strategies for Beginners." The course focuses on teaching traders various methods of measuring volatility, including ATR (Average True Range), standard deviation, VIX, and beta. They emphasized the significance of equipping oneself with the right tools and knowledge to trade without fear of volatility. The hosts mentioned that the course is currently available at a 67% discount for a limited time. Additionally, attendees of the webinar were offered an additional 10% discount on the course using the coupon code VTS10. The hosts also took the opportunity to address some questions from the audience, including inquiries about the focus on the US market when analyzing the VIX and whether the VIX acts as a leading or lagging indicator of price movements.
The speaker further explained the near-instantaneous reaction of the VIX to the S&P 500. While the specific VIX range was not discussed, it was noted that the 30-day volatility is annualized and falls within a range of 0 to 100. The speaker highlighted different phases of the VIX, such as the low to medium phase ranging from 10 to 20 and the medium phase from 20 to 25. The speaker acknowledged that herding, or the tendency of market participants to act collectively, can impact the VIX. The video also mentioned the availability of futures options for India VIX, although liquidity in those options is limited due to high capital requirements.
During the Q&A session, the video addressed several questions related to trading volatility and the VIX. One question inquired about the possibility of trading VIX-based derivatives while being based in India. The response indicated that while it is an emerging practice, some trading platforms do allow for trading VIX-based derivatives in India. Another question raised the idea of including sentiment of news as an additional parameter in option pricing models. The speaker explained that the VIX belongs to a different asset class and does not use the same models as other options. However, the video acknowledged that sentiment analysis can play a role in understanding market dynamics. Additionally, the video briefly mentioned UVIX and SVIX as underlying assets that can be treated similarly to other assets when considering trading strategies.
The discussion then turned to the rules of a combined portfolio strategy, which was mentioned earlier in the video. The speaker explained the criteria for entry and exit rules in this strategy. The entry rule focuses on the behavior of the S&P 500, where if it is declining, traders can reserve capital to go long on the VIX. It was noted that the VIX generally rises when the S&P 500 falls. On the other hand, the exit rule considers the behavior of the S&P 500 to determine whether it has transitioned out of a bear market and if the overall economy is performing well, indicating a bull market. Traders were advised to evaluate the conditions of the market before making decisions on entering or exiting trades.
The webinar provided detailed insights into volatility trading, with a particular emphasis on the VIX as a key indicator. It covered topics such as understanding volatility, measuring and categorizing volatility, the calculation of the VIX, different types of VIX-based derivatives, and strategies for trading volatility. The hosts also offered a course on volatility trading strategies for beginners, encouraging traders to equip themselves with the necessary knowledge and tools to navigate the market with confidence. The webinar concluded with an interactive Q&A session, addressing various questions from the audience and providing further clarity on the topics discussed.
Big Data And The Future Of Retail Investing
Big Data And The Future Of Retail Investing
Financial markets generate enormous amounts of data each day. In this webinar, the speaker will discuss the importance of working with it in the context of investing and trading. He will also set forth on how we can harness it to suit different investment styles. In the process, he will cover how you can cultivate the knowledge and skills needed to thrive and prosper in this field.
00:00 - Introduction
04:00 - Disclaimer
05:44 - Agenda
11:04 - Data
14:31 - Big Data
20:01 - The dawn of data analytics
23:29 - Current trading and investment landscape
23:36 - Classical data analysis approach
27:43 - Modern data analysis
31:29 - Why and how is analytics used in financial markets
37:00 - Types of data
43:58 - Challenges for the retail investors
52:38 - Q&A
Pairs Trading in Brazil and Short Straddles in the US Markets [Algo Trading Projects]
Pairs Trading in Brazil and Short Straddles in the US Markets [Algo Trading Projects]
The webinar begins with the host introducing Dr. Luis Guidas, an EPAT alumni, who presents his project on pairs trading in the Brazilian stock markets. Dr. Guidas is an experienced software developer in the payment card industry and a faculty member teaching compilers and programming languages at the Universidade Federal Fluminense. He has worked extensively on cryptographic algorithms, security communication protocols, and secure electronic transactions. After completing the EPAT program in July 2021, he is currently the head of quantitative analysis at oCam Brazil.
Dr. Guidas starts by introducing the concept of statistical arbitrage, which involves using statistical models to find asset pairs that neutralize each other's risk. He explains how co-integrated pairs can be used to create a stationary time series with a constant mean and variance. To illustrate this, he uses the example of two ETFs that track the same index, which are almost perfectly co-integrated and create a horizontal spread with a constant mean and variance. He mentions that this process involves a training period and a test period to back-test the strategy.
Next, Dr. Guidas delves into the process of pairs trading and how they utilize a Bollinger band trading strategy. They select tickers and sectors, find quantitative pairs, and calculate the hedge ratio to create their spread. For each pair, they calculate the spread and employ a mean-reverting trading strategy, buying when the spread is below the mean and selling when it is above the mean. He also discusses the use of stop-loss in mean-reverting algorithms and highlights that as the price deviates further from the mean, the probability of it returning to the mean increases.
The speaker introduces a strategy called stop time, which involves exiting a spread trade after a certain number of days if it doesn't close, helping to prevent losses. They provide an example of a Bollinger Band strategy for pairs trading in Brazil, showcasing its profitability over a one-year period. However, due to limited data, they mention the bias that may arise from using only companies existing in the current time period. To address this, they incorporated another training period from 2018 to 2020, which resulted in a higher number of pairs due to the emergence of new companies and sectors.
Dr. Guidas shares insights into their experience with pairs trading in Brazil and discusses their methodology. They simplify the analysis of the spread and determine the ideal simple moving average period length by examining the spread's half-life. They also highlight the challenges faced while trading in the Brazilian stock market, particularly its liquidity, which limits the number of viable pairs after analyzing the top 100 companies. The speaker provides performance metrics but acknowledges the need for improvement and suggests approaches such as hyper-parameter tuning, stationarity checks, and merging small sectors. They recommend reading literature on the topic, specifically mentioning the books by Dr. Chang and Dr. Hippish.
During the Q&A session, Dr. Grace answers questions from the audience regarding the strategies presented in the video. She explains that the period of Bollinger Bands is a hyperparameter that can be dynamically set based on a grid test of the spread's half-life periods. When asked about using Bollinger Bands for straddles and strangles, she suggests seeking insights from derivatives experts as these are structured operations. Dr. Grace also addresses the issue of non-mean reverting trades and suggests making non-reverting series mean-reverting by calculating their first moment. Another question pertains to the correlation between Indice Futuro VINFUT and BOVA11, to which she recommends studying the relationship between the two for trading decisions.
Following that, Dr. Lewis Elton shares his experience with the Quantum Trading EPAD program and how it met his expectations in understanding why technical analysis doesn't always work in trading. He emphasizes the importance of studying and taking courses to gain knowledge and advises against trying to recreate humanity's knowledge alone. The webinar also announces the launch of their first contra course in Portuguese on momentum trading.
Siddharth Bhatia takes the floor to discuss short straddles in the US markets. He explains that a short straddle involves selling a call and put in equal amounts at the money and making a profit if the underlying asset moves less than the sold strike level. While the strategy is touted as an income trading strategy, Bhatia cautions that the potential losses can be much larger than the profits, especially during times of market volatility. He cites instances of firms getting wiped out during periods like the COVID pandemic due to short straddle trades.
The speaker shares their own experience with backtesting a short straddle trading strategy using a mechanical approach. They sold 100 units of at-the-money straddle at the beginning of each DTE (Days to Expiry) period and held the positions until expiry without implementing stop losses or nuanced entry and exit points. They conducted the backtesting using two sets of data, one being delta hedged and the other unhedged, and utilized two different versions with 7 DTE and 60 DTE to cover different time periods. They retrieved the necessary data for backtesting through the RATS API and processed it using Python pandas to obtain buy and sell prices. However, the speaker highlights the challenge of creating the data frame, as each line required individual attention to ensure accuracy.
The speaker proceeds to discuss the results of backtesting short straddle trading strategies in both the Brazilian and US markets. They reveal that the strategy performed poorly in both markets, resulting in significant drawdowns and a low Sharpe ratio. While delta hedging helped reduce the standard deviation of the P&L (Profit and Loss), it did not transform losing trades into profitable ones. The speaker notes that stop-loss orders are crucial in this type of trading and mentions academic papers suggesting the use of entry filters based on the VIX index and the term structure of VIX futures. The short straddle strategy is considered profitable but risky, requiring effective management of losses through various methods.
During the Q&A session, the speaker addresses several viewer questions. One question pertains to why positions for the strategy are not hedged at the end of the day. The speaker explains that the common practice is to hedge once a day at the market close as it helps reduce the standard deviation of P&L and minimize long-term volatility. However, they emphasize that hedging techniques are subject to testing and research. The speaker also touches on topics such as calculating CAGR (Compound Annual Growth Rate), transaction costs, and the advantages of holding positions for seven to ten days instead of daily selling in the short straddle strategy. Additionally, they emphasize the importance of previous experience in manual and non-algorithmic trading, as it prepares traders for market volatility and the acceptance of short-term losses.
The speakers continue to field questions from the audience, addressing queries related to pairs trading in Brazil and short straddles in the US markets. One listener asks whether they should take a long straddle if the VIX is around 20, to which the speaker advises against it, noting that it would usually result in a loss and suggests shorting the index if the VIX is above 20. Another question pertains to reconciling opposing entry strategies when the VIX is above 30. The recommendation is to always be short and disregard the backwardation suggestion. The speakers also receive questions about book recommendations, with one of the speakers highly recommending Eun Sinclair's three books.
The speaker then shares their experience with the Quantum City's ePAD program, highlighting how it helped bridge the gaps in their knowledge about coding and algorithmic trading concepts. They emphasize the importance of studying and becoming a student of the markets. The speaker encourages newcomers to open demo accounts and gain experience of taking losses in the market, emphasizing that mastering a skill requires delving deeper and taking more courses. They emphasize that Quantum City's ePAD program is an excellent starting point for those looking to enhance their understanding of the markets. The speaker echoes Dr. Luis Guidas' advice regarding the significance of studying and continuously learning from the market.
As the webinar draws to a close, the hosts express their gratitude to Dr. Luiz for sharing his valuable insights on pairs trading in Brazil. They also extend their appreciation to the audience for actively participating in the webinar and providing suggestions for future topics. The hosts acknowledge the challenges involved in launching a course in Portuguese but express their excitement about the numerous developments happening within their community. They encourage the audience to share their feedback through a survey, allowing them to gather valuable input and ideas for future sessions.
With warm appreciation, the hosts bid farewell to Dr. Luiz and the audience, expressing their enthusiasm for upcoming webinars and their commitment to providing valuable knowledge and insights to the trading community. They look forward to exploring new topics, sharing expertise, and fostering a thriving learning environment for all participants.
The webinar offered a comprehensive overview of pairs trading in Brazilian stock markets and the challenges associated with short straddle trading strategies in the US markets. The speakers shared their experiences, strategies, and insights, encouraging continuous learning and research to navigate the dynamic landscape of trading effectively.
studying the relationship between the two and using that information for trading decisions.
Certificate In Sentiment Analysis And Alternative Data For Finance - CSAF™ [FREE INFO SESSION]
Certificate In Sentiment Analysis And Alternative Data For Finance - CSAF™ [FREE INFO SESSION]
The webinar hosts begin by introducing the Certificate in Sentiment Analysis and Alternative Data for Finance (CSAF) program. They highlight that the program is led by two experienced faculty members, Professor Gautam Mitra and Professor Christina Alvin Sayer. The program spans over five months and includes a series of lectures aimed at providing both foundational theory and practical use cases presented by guest lecturers who are professionals in the finance industry.
The hosts provide an overview of the program's modules, starting with the first two modules that focus on the basics of sentiment and sentiment data. Modules 3 and 4 delve into alternative data sources and their relevance for financial prediction and modeling, including satellite and email data, as well as text analysis. The course also covers modeling basics, various financial models, and the application of sentiment data to areas such as risk management, portfolio optimization, and automated trading. Additionally, there is a module specifically dedicated to alternative data, emphasizing the role of AI, machine learning, and quantitative models in sentiment analysis.
To further enrich the webinar, two special guests, Amit Arora and Abhijit Desai, who are CSAF alumni, are introduced. They share their experiences of taking the previous version of the course called EPAT NSA. Amit explains how the practical orientation of the course helped him develop his own trading ideas, leading him to dedicate more time to actual trading, which yielded better-than-expected results. Abhijit emphasizes the importance of commitment, dedication, and curiosity in getting the most out of the course.
The webinar also includes discussions with various individuals who have experienced the CSAF program. They share their challenges and successes in understanding and applying sentiment analysis and alternative data in their trading strategies. The speakers address questions from the audience, covering topics such as combining sentiments and volatility trading, the meaning of alternative data, the importance of certification in investing and trading, the inclusion of sentiment analysis in trading strategies, and real-time notification of news in trading.
Throughout the webinar, the speakers stress the significance of structured learning through certification courses like CSAF to develop a comprehensive perspective and approach. They highlight the importance of understanding financial markets and models in effectively applying sentiment analysis and alternative data. The speakers also emphasize the practical application of knowledge, the use of quantitative frameworks, and the value of case studies in showcasing the use of sentiment data.
The hosts express their gratitude to the audience for participating in the webinar and actively engaging with the information about the CSAF program. They encourage viewers to provide their feedback and questions through a survey and thank the speakers and each other for their contributions to the webinar's success. The hosts express their enjoyment in sharing knowledge and their commitment to fostering a learning environment for all participants.
How To Set Up Automated Trading
How To Set Up Automated Trading
During the presentation, the speaker delves into the advantages of automated trading and the reasons why automation is necessary. They highlight that automated trading allows traders to handle a larger number of assets simultaneously and execute trades based on predefined rules. This approach helps reduce the risk of errors and eliminates emotion-driven trading. The speaker emphasizes that automation simplifies the process by automatically placing orders once the specified rules are satisfied, eliminating any time lag. Additionally, they explain that automation frees up traders' time and resources, enabling them to focus on developing better trading strategies.
The speaker addresses a common misconception about automation completely replacing human intervention. They stress the importance of regularly analyzing the performance of sophisticated automated trading systems to make adjustments to the trading strategy when necessary. They emphasize that automation empowers traders to explore other tasks or assets that they might not have attempted manually. The presentation then moves on to discuss the three essential steps in trading: data acquisition, analysis (which can be rule-based or discretionary), and trade execution.
To automate a part of the trading process, the speaker recommends using data and coding to retrieve historical data for preferred assets. They mention that Google Finance has integrated its API into Google Sheets, allowing users to easily retrieve data by specifying parameters such as the ticker symbol, start and end dates, and data type. This collected data can be utilized to create price graphs, perform calculations (e.g., generating custom indicators or calculating percentage changes), and automate the data collection process, streamlining trading strategies.
A demonstration in the video showcases the process of backtesting a trading strategy using the Relative Strength Index (RSI) indicator on past data. The RSI value, ranging from 0 to 100, determines the action taken. If the RSI value is less than 30, indicating that the asset is oversold, it becomes attractive to buyers, prompting them to buy the asset. A value between 30 and 70 suggests no action, while a value above 70 indicates that the asset is overbought, prompting a sell-off. The speaker validates the effectiveness of these rules by automating backtesting on past data, utilizing visual programming on a US equities dataset.
The speaker introduces the Blue Shift platform for automated trading, which offers features such as backtesting, paper trading, and live trading. They highlight that the platform provides visual programming options that do not require coding knowledge. The speaker demonstrates setting up a trading strategy using the RSI indicator and explains the conditions for taking long and short positions. Finally, they present the backtest results, which exhibit a 14% return, a Sharpe ratio of 1.22, and a maximum drawdown of minus 13%. Overall, Blue Shift is praised as a user-friendly platform for creating and testing automated trading strategies.
The speaker moves on to discuss the process of implementing an automated trading strategy in live trading. They recommend starting with paper trading, which utilizes real-time data but not real money, to observe the strategy's performance in the current market environment. The speaker guides the audience through the steps of setting up paper trading and transitioning to live trading, including selecting a broker, determining capital allocation, and confirming orders. They stress the significance of regularly monitoring the strategy's performance and making necessary adjustments. The speaker also mentions that previous sessions covering live trading using other platforms are available on their YouTube channel.
Although not all brokers offer APIs for automated trading, the speaker highlights Interactive Brokers as a platform available in most regions, providing API support. They mention that using an IBridge Py bridge with Interactive Brokers enables trade automation from anywhere globally, including Singapore. The speaker notes that while obtaining data for NSE stocks is possible, it is essential to find the appropriate ticker symbol and use Yahoo Finance to access the necessary historical data.
The speaker explains that minute-level data is not widely available for free and points out that the data requirements become more demanding at that level. To obtain minute-level data, the speaker suggests opening an account with a broker like Interactive Brokers. However, they mention that depending on the geography and chosen broker, a fee may be required. The speaker briefly mentions the trade frequency function and directs the audience to consult the Blue Shift documentation for more information on creating a trading strategy. They also emphasize the importance of setting stop-loss levels when developing a trading strategy.
Moving on, the speaker discusses the significance of setting appropriate stop-loss levels for different types of assets. They recommend using different stop-loss values based on the volatility of the assets, with higher stop losses for assets that experience significant price fluctuations, such as Tesla. The speaker also notes that determining the ideal values for alpha and beta depends on the trader's goals and the desired timeframe to achieve a specific percentage of profit. Additionally, they respond to questions regarding automating trading in Indian markets, monitoring strategies, and creating option strategies using the platform. Lastly, the speaker underscores the importance of remaining vigilant during unexpected market events and determining whether to pause trading or continue based on the strategy's ability to withstand volatility.
The speaker further expands on automation in trading and how it operates. They explain that automation is available for Indian markets through the Blueshift platform, which facilitates backtesting strategies and live trading through partnerships with various brokers. Emphasizing the significance of having predefined rules in trading, the speaker highlights the value of testing these rules through backtesting and paper trading, which uses virtual money to evaluate strategy performance in the current market conditions. The speaker also mentions that machine learning can be applied in trading and is supported by Blueshift for developing trading strategies.
Addressing the possibility of automated trading on mobile devices, the speaker acknowledges that while mobile-based platforms may not be as feature-rich as web-based platforms, automated trading on mobile phones may become more prevalent as the industry moves towards cloud-based solutions. They suggest that beginners start small and gradually expand their knowledge by learning more and establishing a trading rule or strategy. The speaker highlights that Blue Shift, a learning, backtesting, and trading platform, is completely free and can be utilized to experiment with trading strategies. They also respond to questions regarding the platform's features and mention plans to add more brokers in the future. Finally, the speaker acknowledges a query about auto-trading Bitcoin on any platform.
Regarding broker support for automated trading, the speaker clarifies that not all brokers offer this functionality, and users should verify if their chosen platform supports it. They explain that the industry is increasingly shifting towards automated trading, with the majority of orders being executed with the assistance of automated trading systems. In terms of combining machine learning, neural networks, and AI for algorithmic trading, the speaker describes the process of training and testing data on a machine learning model and leveraging the predicted output for algorithmic trading. Lastly, they address a question from a working professional, noting that automated trading can assist professionals in managing trading activities while minimizing screen time, allowing them to focus on their job's demands.
The speaker reiterates that automating a trading strategy is feasible for working professionals, but it is crucial to periodically review the performance of the automated system as market conditions can change. They suggest that while it is possible to create a trading strategy without learning Python or any coding language using various platforms, advanced strategies may require proficiency in Python or other programming languages. The speaker reassures the audience that learning Python is not as challenging as it may seem and can provide an added advantage. They stress the importance of regularly evaluating performance to modify the strategy accordingly.
Finally, the speaker invites the audience to fill out a survey for any unanswered questions and encourages them to take advantage of a limited-time offer, providing a 70% discount and an additional 25% discount for enrolling in all courses. They express gratitude for the support received and assure the audience of their commitment to organizing more webinars in the future. The speaker asks for suggestions on potential topics to plan better sessions that cater to the audience's interests and needs. Concluding the presentation, the speaker extends warm wishes for a happy Holi and expresses appreciation to all attendees for their participation in the session.
Quantitative Data Analysis Of Cryptocurrencies
Quantitative Data Analysis Of Cryptocurrencies
In this informative session on quantitative data analysis for cryptocurrencies, the speaker, Udisha Alook, introduces herself as a quant researcher at Quant Institute, specializing in blockchain, Bitcoin, Ethereum, and Ripple. She highlights the importance of conducting due diligence before investing in cryptocurrencies and outlines the agenda for the session.
The speaker begins by providing an overview of cryptocurrencies, emphasizing that they are digital or virtual currencies secured by cryptography and lack a physical form. She explains that cryptocurrencies ensure security through cryptography, operate in a decentralized manner using blockchain technology, and eliminate the risk of double-spending.
Next, the speaker delves into the main topics to be covered in the session. She mentions that the session will explore the top cryptocurrencies, discuss where to obtain data on cryptocurrencies, and provide insights into trading in the cryptocurrency market. The speaker emphasizes that the central focus will be on analyzing data for the top cryptocurrencies.
Moving forward, the speaker introduces Quantinsti, a quantitative trading firm, and its offerings. She highlights the professional certification program in Algorithmic Trading (EPAT), the certificate in Sentiment Analysis and Alternative Data for Finance (CSAF), and the self-paced courses available under Quantra. Additionally, the speaker introduces BlueShift, a cloud-based platform for strategy development, research, backtesting, paper trading, and live trading.
Returning to the main topic of cryptocurrencies, the speaker discusses the top six cryptocurrencies based on their market capitalization and provides a brief overview of their functionalities. Bitcoin, the first and most widely known cryptocurrency, is mentioned as the only one currently adopted as legal tender by El Salvador. Ethereum, ranked second in terms of market capitalization, is highlighted for introducing smart contract functionality. Ripple, designed as an intermediate mechanism of exchange, is mentioned as the sixth cryptocurrency on the list. The speaker also introduces Binance Coin, which has transitioned to its own blockchain, and Tether and USD Coin, stable coins pegged to the US dollar that offer cryptocurrency functionality with the stability of fiat currencies.
Regarding data sources for cryptocurrencies, the speaker mentions CryptoWatch and CoinAPI as reliable sources of historical crypto data. She also provides a list of major global crypto trading platforms, including Binance, Coinbase, Etoro, Gemini, and Kraken.
Continuing with the session, the speaker compares the prices of various cryptocurrencies and illustrates their performance on a logarithmic scale. Bitcoin emerges as the dominant cryptocurrency in terms of price, followed by Ethereum and Binance Coin. Ripple is noted to have experienced a decline in performance, while stable coins remain stable due to their nature. The speaker further calculates cumulative returns, highlighting that Binance Coin has exhibited the highest returns, followed by Ethereum and Bitcoin. Volatility in the top four cryptocurrencies is described as fluctuating significantly, with spikes occurring during certain periods, whereas stable coins consistently maintain stability.
The video then focuses on analyzing the volatility and associated risks of investing in cryptocurrencies. The speaker observes that cryptocurrency returns display high kurtosis, indicating the likelihood of extreme returns, both positive and negative. This is attributed to momentum-based trading, where investors tend to buy when prices are rising and panic sell when prices decline. Box plots of daily returns are presented to demonstrate the presence of numerous outliers, further supporting the notion that cryptocurrencies entail a significant level of risk. Stable coins, however, are noted to exhibit less volatility.
In the subsequent segment, the speaker examines the impact of removing outliers on the median values of popular cryptocurrencies such as Bitcoin, Ethereum, Binance Coin, Ripple, USD Coin, and USDC. Stable coins are highlighted as designed to maintain a value close to one US dollar, making them particularly attractive for many users. Ripple, on the other hand, is distinguished from other cryptocurrencies due to its unique permission blockchain designed for financial institutions. The ongoing SEC case against Ripple's founders is mentioned as a factor that has caused fluctuations and uncertainty for investors.
Moving on, the speaker groups the factors that influence cryptocurrencies into five major categories. These include the law of supply and demand, which impacts the scarcity and value of cryptocurrencies. The perception of value, driven by market sentiment and investor sentiment, also plays a significant role. Technological advancements, such as updates to blockchain protocols and improvements in scalability, can affect the performance of cryptocurrencies. Government regulations and policies, including legal frameworks and regulatory actions, have a considerable impact on the cryptocurrency market. Finally, market sentiment, shaped by media coverage, political events, and overall market trends, can greatly influence cryptocurrency prices.
The speaker explores the influence of media, political events, regulatory changes, and blockchain modifications on cryptocurrency prices. Positive or negative news coverage is highlighted as having a significant impact on cryptocurrency prices, as it can either encourage or deter people from investing. Endorsements of cryptocurrencies by reputable companies or individuals are also noted to increase their reliability and trustworthiness. Political events and regulatory changes, such as economic crises or government interventions, can influence investors' trust in traditional currency and drive them towards cryptocurrencies. The speaker mentions the high correlation between various cryptocurrencies, especially with Bitcoin as the dominant cryptocurrency. However, stable coins are observed to be uncorrelated with traditional cryptocurrencies, making them a unique asset class.
The video further discusses the process of exchanging cryptocurrencies for fiat currency. It is explained that most exchanges support the trading of major cryptocurrencies such as Bitcoin and Ethereum. Therefore, it is often necessary to exchange altcoins for one of these top cryptocurrencies before converting them into fiat currency. The video also explores trading strategies suitable for cryptocurrencies, including momentum indicator-based strategies and arbitrage, taking advantage of the high volatility in the market. Coding examples using indicators like the Relative Strength Index, Moving Average Convergence Divergence, and the Awesome Oscillator are presented to illustrate momentum-based strategies.
Towards the end of the session, the presenter recaps the main points covered and emphasizes the potential of stable coins for portfolio diversification due to their low volatility and lack of correlation with other cryptocurrencies. Additional resources for learning about algorithmic trading and cryptocurrency are provided, including free books and courses, as well as the Blue Shift research and trading platform. The speaker mentions the Executive Program in Algorithmic Trading, tailored for individuals interested in starting their own algorithmic trading desk or pursuing a career in algorithmic trading with mentorship from industry practitioners. The availability of early bird discounts for the program is also highlighted.
In the concluding portion, the speaker addresses several audience questions related to cryptocurrency and blockchain. The long-term viability of cryptocurrencies without regulatory backing is discussed, with the speaker highlighting that some countries have already passed laws regulating them, treating them as long-term investments. The growing acceptance and development of blockchain technology also contribute to people's comfort with cryptocurrencies. The future of decentralized finance (DeFi) is acknowledged as an evolving space with various concepts and types of arbitrage yet to be explored. The speaker emphasizes that crypto trading goes beyond data mining and technical indicators, underscoring the importance of understanding blockchain technology and its applications.
Furthermore, the potential impact of upcoming US regulations on the crypto market is discussed. The speaker acknowledges that the government could regulate blockchain in the US but highlights the challenge of controlling the decentralized nature of the technology. Therefore, while regulatory decisions may impact cryptocurrency prices, complete control over the market may be difficult to achieve. The minimum capital required for crypto trading and the potential use of cryptocurrencies in real-world transactions are also addressed. Finally, the rise of central bank digital currencies (CBDCs) and their potential impact on the decentralized nature of cryptocurrencies are briefly mentioned.
In the closing remarks, the speakers emphasize the increasing exploration of blockchain technology for solving problems such as identity issuance and supply chain management. They anticipate a high demand for blockchain developers in the future due to ongoing development in the field. The advantage of cryptocurrencies, such as their ability to be traded around the clock, is highlighted. The audience is encouraged to provide feedback and pose any unanswered questions for future discussions.
As the session concludes, the speaker summarizes the key takeaways, emphasizing the need for proper data analysis and quantitative techniques to navigate the high volatility of cryptocurrencies. Technical and quantitative analysis, along with backtesting, are highlighted as essential tools to mitigate risk. The speaker also addresses a question regarding the impact of geopolitical interventions on cryptocurrency markets, noting that government decisions do have an impact, but the decentralized nature of cryptocurrencies may lead people to turn to them in situations where trust in traditional currency or government is low. Lastly, the benefits of stable coins are emphasized, as they offer a more stable and predictable value compared to other cryptocurrencies, making them more suitable for everyday transactions.
In response to a question about the potential impact of upcoming US regulations on the crypto market, the speaker acknowledges the possibility of government regulation but emphasizes the challenges in fully controlling the decentralized nature of cryptocurrencies. While regulations may impact cryptocurrency prices, the speaker suggests that complete control over the market might be difficult to achieve. The rise of central bank digital currencies (CBDCs) is also mentioned, and their potential impact on the decentralized nature of cryptocurrencies is briefly discussed.
In the final part, the speakers discuss the increasing exploration of blockchain technology for solving real-world problems such as identity issuance and supply chain management. They express optimism about the future demand for blockchain developers and the continued growth of the blockchain industry. The advantages of cryptocurrencies, such as their ability to be traded 24/7, are highlighted. The audience is encouraged to provide feedback and share any remaining questions for future sessions.
The session conducted by Udisha Alook provides valuable insights into quantitative data analysis for cryptocurrencies. It emphasizes the importance of due diligence before investing, provides an overview of cryptocurrencies and their functionalities, explores data sources and trading platforms, analyzes price movements and volatility, discusses factors influencing cryptocurrency prices, and addresses audience questions related to regulations, trading strategies, and the future of cryptocurrencies. The session serves as a comprehensive introduction to quantitative analysis in the cryptocurrency market, equipping participants with the knowledge necessary to make informed investment decisions.
Hands-On Introduction To Quantitative Trading | Yale School of Management
Hands-On Introduction To Quantitative Trading | Yale School of Management
In the seminar on introductory quantitative trading, the speaker delves into the creation, evaluation, and deployment of trading algorithms using code examples. The session begins by introducing the concept of quantitative trading, which involves using mathematical and statistical models to identify trading opportunities and execute trades. Various types of quantitative trading strategies are explained, including momentum trading, mean diversion trading systems, mathematical models, high-frequency trading, and news-based trading systems. The speaker emphasizes that algorithms are not only used for trading but also for market-making and taking advantage of price inefficiencies to generate profit.
The basic structure of a quantitative trading system is then explained. It includes data collection, the creation of a trading strategy, backtesting, execution, and risk management. Price, fundamental, economic, and news data are commonly used for trading algorithms. Technical, statistical, and mathematical analysis can be employed to design trading rules for the strategy. Backtesting involves testing the rules on historical data to evaluate their performance. Execution can be manual or automatic, and risk management is crucial for capital allocation and setting risk parameters such as stop loss. The speaker provides live examples of quantitative trading strategies to illustrate these concepts.
The trend-based strategy is highlighted, and technical indicators such as exponential moving average (EMA), parabolic SM, and stochastic oscillator are used to design the algorithm. The Contra platform is introduced, which offers video tutorials, interactive exercises, and practical exposure without requiring software installation. Python modules are imported to assist in creating the algorithm, and data is imported from a CSV file to define trading rules and monitor strategy performance. The TLA Python module is utilized to set the parameters for the technical indicators, simplifying the design process.
The instructor explains how to define trading rules and generate trading signals using technical indicators such as EMA, Stochastic fast, and Stochastic slow oscillators. Five trading conditions are outlined for generating buy signals, and trading rules for short positions are also designed. The next step is to backtest the strategy using a Python notebook to assess its practical performance. The plot of strategy returns demonstrates that the algorithm initially incurred losses but gained momentum from 2018, ultimately generating a profit by the end of the testing period. BlueShift, a platform that enables research, construction, and backtesting of algorithms with ease, is introduced.
A demonstration of backtesting on Bank of America stock using the BlueShift platform follows. The platform provides data maintenance and a simple line of code for importing data into Python. Indicators and trading rules are defined, and trades are executed automatically based on the fulfillment of long and short conditions. The backtest is conducted from January 2020 to October 2021 with a capital of $10,000, and the performance is compared to the S&P 500 benchmark. The results reveal a 113% return on investment. Detailed backtest results can be obtained to analyze monthly returns, trades executed, and margin used, facilitating better trading decisions.
The speaker demonstrates how to access comprehensive backtest results on the BlueShift platform, including visual representations of performance metrics such as algorithm returns and monthly returns heat maps. The positions taken by the algorithm are analyzed, and key metrics such as total profit from long and short sides are examined. Risk parameters and order limits can be configured before deploying the strategy in real-time, either through paper trading or with real capital.
The process of selecting a broker and specifying capital and algorithm parameters for paper trading using the BlueShift trading platform is explained. Users can choose from various options such as Alpaca for US equities, OANDA for forex, and Master Trust for trading in Indian markets. The speaker demonstrates how BlueShift is used to specify the risk matrix with a drawdown limit of 30% and order and size limits of 1,000 and 10,000, respectively. Users have the flexibility to opt for auto-execution or the one-click confirmation method based on their preference. Once the user clicks on confirm, the algorithm starts running, and BlueShift establishes a connection with the Alpaca paper trading fraction. The dashboard continuously updates trading capital, trades, positions, and other relevant information in real-time.
The speaker highlights two products essential for quantitative trading: Conda and BlueShift. Conda is utilized to obtain data from various sources, including stock prices, cryptocurrencies, news, and social media. The course explains how to access fundamental reports or extract social media data into trading systems using APIs. BlueShift, the second product, is used for designing and testing strategies, employing econometric models and time series analysis. The course provides examples and code for various trading strategies such as mean diversion trading strategies, momentum trading strategies, and day trading strategies. Additionally, the course covers "Portfolio Management using Machine Learning Hierarchical Disparity" to facilitate portfolio management and risk control using machine learning methods. BlueShift enables backtesting of trading strategies on a wide range of datasets.
The availability of different datasets for practicing quantitative trading is discussed, encompassing US equities, cryptocurrencies, forex, Indian equities, and property data. Cloud-based and desktop-based deployments are explained, with cloud-based execution being handled by the broker. Desktop-based integration can be achieved using IBridgePy software, which connects to brokers like Interactive Brokers or eTrade. The students attending the session are offered a code for a 60% discount on all courses available on the ContraQuant website. The website offers courses suitable for beginners, intermediate traders, and advanced traders, covering a wide range of concepts such as neural networks, natural language processing (NLP), momentum strategies, options, futures, and pairs trading.
Predict Daily Stock Prices And Automate A Day Trading Strategy
Predict Daily Stock Prices And Automate A Day Trading Strategy
In the introductory webinar, the host introduces the main topic of the session, which is predicting daily stock prices and automating a day trading strategy. The session includes two project presentations. The first presentation is by Renato Otto from the UK, who discusses predicting daily stock prices using a random forest classifier, technical indicators, and sentiment data. Renato Otto is introduced as an experienced individual involved in the development of software and tools for quantitative analysis and systematic identification of market manipulation in the UK energy market.
Renato Otto shares the motivation behind completing the project, explaining that it was an opportunity to consolidate his knowledge in Python programming, data engineering, and machine learning into an end-to-end project. The project aimed to improve his skills and explore the power of machine learning and natural language processing in trading. Additionally, the goal was to create something reusable for others to use in their own analysis or strategy implementations. The project involves nine steps, starting with defining the analysis details in a dictionary and initializing a pipeline. The program then runs to obtain the dataset required for backtesting calculations. The presenter emphasizes the importance of testing the program's usability and ensuring the reliability of the final figures.
The speaker explains the methods involved in backtesting a day trading strategy. They discuss the back-test strategy class, which consists of various methods for data pre-processing, model training and testing, and strategy performance analysis. The output of the backtesting process includes tables and plots that show return on investment, sharp ratio, maximum drawdown, and other relevant parameters. While backtesting helps determine the potential profitability of the strategy, the speaker cautions that it simplifies certain aspects that may not hold true in live trading. The speaker mentions the latest improvement to the program, which involves updating the parameters to reflect real trading conditions, including transaction fees and account size.
During the presentation, the speaker also discusses the challenges faced during the development of the program. One challenge was implementing an interactive menu that prompts users to input data, which required extra thinking and development effort. However, the speaker states that it was worth it as it made the program more user-friendly. Other challenges included finding solutions for performance metrics computation and maintaining a work-life balance. To overcome these challenges, the presenter recommends strategies such as drawing diagrams, writing comments as a stepping stone to code, taking breaks, conducting online searches, and consolidating knowledge. The presenter also highlights the achievements gained through the project, such as consolidating knowledge in quantitative finance and programming skills, gaining confidence in managing a project from start to finish, and demonstrating the power of machine learning in predicting stock prices.
The speaker discusses their plans for future projects after completing the current one. They mention their intention to study new strategies with different assets, expand their knowledge through their blog and interactions with other enthusiasts, research new strategies and machine learning models, and eventually implement profitable strategies in live trading. The speaker shares their contact information for further questions or inquiries about the project. The audience asks several questions, including the number of late nights spent on the project and whether the program can be used for cryptocurrency trading.
Regarding the data used for the project, the creator explains that they trained the model using daily Tesla prices since the inception of the company in 2009. The training process took five months, and the model was tested for a couple of years. In terms of risk reduction, the creator mentions that there isn't much that can be done on a machine learning model to reduce risk, but they assessed a reasonable amount of trades to ensure that most of them were profitable. The creator also answers questions about the time frame for predicting prices and the need for a high-powered PC for training the model.
The speaker explains the process of training a model and discusses the advantages of algorithmic trading over discretionary systems. They mention that it is possible to train a model using a computer without a GPU, although it may take several hours to arrive at a working model. However, they advise against relying on this approach regularly. When discussing the benefits of algorithmic trading, the speaker emphasizes the statistical confidence in most trades being profitable, making it more lucrative compared to discretionary trading. Lastly, the speaker expresses their expectations from the EPAC program, stating that it provided them with the fundamentals to understand algorithmic trading and the necessary tools to choose their specialization.
Next, the second speaker, Usual Agrawal from India, is introduced as a quantitative trader and business owner. Agrawal shares their experience of trading in the Indian markets for the past four years and the challenges they faced while managing their business alongside full-time trading. To overcome these challenges, Agrawal decided to automate their trading setups with the help of the EPAT course and the unconditional support from the Quantum City team. In their presentation, Agrawal showcases their fully automated trading setup called "Intraday Straddles," which combines uncorrelated setups to generate decent returns with minimum drawdowns. They discuss their approach to data collection, backtesting, front testing, deployment, and performance evaluation of their trading strategy.
During the presentation, the speaker dives into the details of the data, systems, and parameters used to backtest their day trading strategy. Their strategy involves creating straddles and strangles for the Nifty and Bank Nifty futures and options data using a one-minute timeframe. The speaker used two years' worth of data from March 2019 to March 2021, which covered both a low volatility period and the COVID-19 pandemic. They explain the different classes utilized for backtesting and the parameters tested, including variations in stop loss levels. Finally, the speaker presents the results of the backtesting process.
The presenter proceeds to discuss the outcomes of their backtesting and front testing of the day trading strategy. During the backtesting phase, they achieved a net return of 3.15 lakhs, equivalent to a 52.9% annual return. The hit ratio was calculated both normally and normalized, with the latter providing a more realistic picture. The sharp ratio was determined to be 3.78, and the equity curve received good support from a three-month simple moving average. However, during the front testing phase, the strategy did not perform as expected, earning only 70,000 rupees in 11 months, which corresponds to a 25% annual return. The equity curve remained flat, indicating that the strategy may not be performing well currently and requires further analysis. The presenter also shares the key challenges faced and lessons learned throughout the project, with major difficulties arising during data collection.
The speaker discusses some of the challenges encountered while developing the day trading strategy. One major obstacle was obtaining reliable intraday options data, which necessitated purchasing it from third-party vendors. Another challenge was the potential sampling bias due to focusing solely on the last two years of data, which might not accurately represent the overall performance of the strategy. Additionally, the speaker notes an overcrowding effect in the market, with many traders employing similar strategies. The speaker explains their decision to develop the strategy independently, allowing for custom adjustments. Finally, ongoing assessments of the strategy and efforts to diversify it for improved efficiency are highlighted.
The speaker addresses audience questions, including whether the program is executed manually or automated using cloud platforms, and how they selected the stocks for selling straddles and the typical stop-loss distance relative to the premium. The strategy applies only to the Nifty index and the Bank Nifty index due to liquidity issues, and the speaker cleans the data through trial and error, rectifying format changes and removing days with data errors.
The speaker answers two additional questions related to their day trading strategy. They discuss the stop loss percentage used for testing and the challenges they faced in programming without a background in computer engineering. They explain how they overcame these challenges with the help of the EPAT program and mentorship from Quadency. Furthermore, the speaker offers advice to aspiring quants and algorithmic traders, emphasizing the importance of exercising caution and implementing proper risk management when applying any trading strategy in practice.
The speaker highlights the significance of diversifying trading strategies and how it can help navigate drawdown phases in one strategy while others continue to perform well. They emphasize the need for thorough testing and spending time with each strategy to learn its nuances and effectively combine them. It is important to note that the information shared during the session is not intended as trading advice.
The host concludes the webinar by expressing gratitude to the speaker, Visual, for sharing their project and experiences. They inform the audience that the session recording will be available on their YouTube channel and that participants will receive an email containing necessary codes and GitHub links related to the discussed strategies. The host looks forward to hosting more interesting sessions in the upcoming months, further enriching the knowledge and understanding of the audience.
The webinar provided valuable insights into predicting daily stock prices and automating day trading strategies. The first presentation by Renato Otto focused on predicting stock prices using a random forest classifier, technical indicators, and sentiment data. The second presentation by Usual Agrawal showcased their fully automated trading setup, "Intraday Straddles," which combined uncorrelated setups to generate returns with minimum drawdowns. Both presenters shared their challenges, achievements, and learnings, offering valuable lessons to the audience. The webinar served as a platform to explore the power of machine learning and natural language processing in trading and provided a glimpse into the exciting world of algorithmic trading.
Implementing Pricing Model and Dynamic Asset Allocation: Algo Trading Project Webinar
Implementing Pricing Model and Dynamic Asset Allocation: Algo Trading Project Webinar
During the webinar, the presenter introduces the first speaker, Evgeny Teshkin, a senior quantitative analyst from Russia. Teshkin presents his project on implementing a pricing model using Kalman filtering adaptive to market regimes. He explains that the project serves as an educational example of how to use quantitative techniques of online machine learning in creating strategies development.
Teshkin emphasizes the advantages of online learning techniques, which enable deeper automation and real-time trading, making it more efficient than traditional model retraining. The main objective of his project is to create trading strategies that improve simple sector investing, with a specific focus on the big tech sector of the USA stock market, including companies like Facebook, Apple, Netflix, Google, Amazon, and Microsoft.
The speaker goes on to discuss the approach he used to implement a pricing model and dynamic asset allocation for his algo trading project. He explains that he employed statistical and quantitative techniques for long-only positions, selecting entry and exit points, and determining undervalued or overvalued prices relative to other stocks in the sector.
To achieve this, Teshkin utilized various models such as linear regression, principal component analysis (PCA), and Kalman filter. These models helped calculate residuals and find optimal coefficients for the statistical linear spread between correlated stocks within the sector. He highlights the importance of relative value and explains that the online learning approach used a look-back window of one year, taking inputs such as stock price and the dentists' index into account.
The speaker delves into the different models he employed to address data analysis problems in his algo trading project. He mentions using techniques such as the extraction of orthonormal non-correlated components of variance, the Kalman filter, and hidden Markov models. He explains how these models were incorporated into his approach and provides resources for further learning. Additionally, he discusses the results of his project and shares some tricks he utilized to increase potentially profitable positions.
Next, the speaker discusses how he managed to beat the market by buying and selling stocks based on simple end-of-day quotes and deltas. He explains that the risks associated with this strategy were overcome by using multiple entries and exits determined by online relative price techniques. He explores the concept of stock relative pricing for determining entries and exits, along with the use of online machine learning to build automated real-time pricing models.
The speaker encourages the audience to explore their project online, offering the opportunity to download the code and contact them for further questions. They also mention that the webinar will be recorded and made available on their YouTube channel, along with the presentation file and relevant links. During the session, the speaker engages with the audience, answering questions about their participation in algo trading competitions and clarifying whether the results presented were from actual trading or just backtesting.
Following the presentation, the webinar presenter addresses several questions from viewers regarding the algo trading project. They cover topics such as the use of linear regression for optimal correlation, the performance of the buy and hold strategy compared to the optimized trading strategy, and the inclusion of hidden states in the statistical model. The presenter provides insightful responses, expanding on the project details and explaining the decision-making behind their approach.
The webinar then moves on to the introduction of the next project, which focuses on dynamic asset allocation using neural networks. The speaker explains that their project aims to build an automated system for the "buy today sell tomorrow" strategy on banking stocks with minimal manual intervention. They discuss the model development, strategy implementation, and risk management aspects of their project, emphasizing the use of deep learning models trained on historical data for nifty bank stocks.
The speaker elaborates on the strategy, which involves combining the outputs from different models to determine the expected return for each stock. Based on these ratios, funds are distributed into respective stocks. The risk management part of the project deals with issues such as transaction cost and automation. The speaker emphasizes the importance of effectively managing risk in the trading algorithm.
Moving on, the speaker provides further insights into the strategy, risk management, and challenges faced during the development of the trading algorithm. They explain the implementation of a convergent architecture for both the probabilistic return model and the return model. The strategy involves calculating the expected return for each stock and dividing it by the return volatility to obtain a ratio. Available funds are then allocated proportionately to stocks with positive ratios, while portfolios are sold proportionately to expected losses. The algorithm is continuously updated, and stop-loss mechanisms are applied to mitigate risk. The speaker acknowledges challenges in automating the updating process and mentions the absence of a market microstructure strategy to determine optimal buying or selling prices.
The speaker proceeds to discuss the results of their backtesting efforts and the selection of a 20-day combination as the most appropriate for their model. They also mention upcoming steps in the project, including the integration of textual news scores for banking stocks and the development of an Android app-based solution for further automation. The audience has the opportunity to ask questions, leading to discussions on topics such as backtesting results and the use of stop-loss mechanisms in the model. The speaker shares that the backtesting returns have been decent, providing approximately 5% patterns over a specific time period. They also mention a beta testing phase that yielded a return close to 10% over the past six months.
In response to an audience question about the implementation of a stop loss, the speaker explains that they have incorporated a five percent stop loss of the portfolio value per investment value for each stock. When a stock's loss reaches five percent of the investment, it is automatically removed from the portfolio to limit the maximum loss to five percent. The speaker further addresses inquiries regarding the performance of dynamic asset allocation compared to a simple buy and hold strategy. They highlight that benchmarking against the Nifty Bank showed reasonable performance, close to five percent returns. The speaker also explains their decision to focus on the banking sector due to its reflection of overall market conditions and mentions that their background in machine learning facilitated their upskilling for the project.
Following the project presentations, a participant shares their positive experience with EPAT, emphasizing its value in terms of theoretical learning and practical implementation. They express appreciation for gaining a mathematical understanding of options and futures pricing and commend the program's support system and dedicated performance manager, who provided valuable guidance. Although the course was challenging, the participant believes it was essential for personal and professional growth. They encourage aspiring traders to explore and expand their knowledge beyond their current strengths, as they will gradually become adept in trading operations.
In the final part, the speakers stress the significance of applying the acquired knowledge in real-life scenarios as quickly as possible. They recommend utilizing the iPad course for daily trading experiments, facilitating continuous learning and growth. The webinar concludes with gratitude extended to the speakers and audience, along with a request for topic suggestions for future webinars.
Applying machine learning in trading by Ishan Shah and Rekhit Pachanekar | Algo Trading Week Day 7
Applying machine learning in trading by Ishan Shah and Rekhit Pachanekar | Algo Trading Week Day 7
Ishan Shah and Rekhit Pachanekar, the presenters of the webinar, begin by introducing themselves and expressing their excitement for the final day of the algo trading week. They announce the winners of the algo trading competition and commend their achievements. They mention that the focus of the day's presentation will be on machine learning and its applications in trading. They also inform the audience that there will be a Q&A session at the end of the presentation.
Rekhit Pachanekar takes the lead in starting the webinar and dives into the basics of machine learning. He uses image recognition as an example to explain how machine learning allows algorithms to learn from data and make decisions without extensive programming. He then discusses the role of machine learning in trading and investment, particularly in creating personalized investment portfolios based on various data points such as salary, profession, and region. Machine learning also helps assign weights to assets in a portfolio and assists in developing trading strategies. Pachanekar highlights the speed and data analysis capabilities of machine learning, which are utilized by hedge funds, pension funds, and mutual funds for investing and trading decisions.
Moving forward, Ishan Shah and Rekhit Pachanekar delve into the seven steps involved in building a machine learning model for trading. They emphasize that even individual retail traders can leverage machine learning technology to create their own trading strategies. The first step they discuss is defining the problem statement, which can range from a general desire for positive returns to more specific goals like determining the right time to invest in a particular stock such as JP Morgan. The second step involves acquiring good quality data, ensuring there are no missing or duplicate values and no outliers. The presenters stress the significance of data quality in constructing an accurate machine learning model.
Shah and Pachanekar proceed to explain the process of selecting input and output variables for a machine learning model in trading. They highlight the output variable, or the target variable, which represents the future return on a stock. They mention that a signal variable is assigned a value of 1 when future returns are predicted to be positive and 0 when they are predicted to be negative. The input variables, or features, must possess predictive power and meet the stationarity requirement, meaning they exhibit a mean and constant variance. They emphasize that variables like open, low, high, and close are not stationary and cannot be used as input features.
Next, the presenters discuss the selection of input features for their machine learning model in trading. They explain the need for stationary input features and achieve this by using percentage-change values for different time periods. They also stress the importance of avoiding correlation among input variables and demonstrate the use of a correlation heat map to identify and eliminate highly correlated features. The final selection of input features includes percentage-change values for different time periods, RSI (Relative Strength Index), and correlation. Before using the model for live trading, they split the dataset into training and testing sets to evaluate its performance.
The importance of ensuring the quality and relevance of data sets used in machine learning models is emphasized by the speakers. They introduce the concept of decision trees and inquire about attendees' personal decision-making processes when it comes to buying stocks or assets, mentioning responses ranging from technical indicators to recommendations from friends. They assert the need to establish a mental model for decision-making based on personal experiences when using such features. They introduce random forests as a way to overcome issues of overfitting and explain the use of Bayesian trees as a foundation for decision trees.
Shah and Pachanekar explain how machine learning algorithms, specifically decision trees, can be utilized to create rules for trading. These rules, incorporating technical indicators like ADX (Average Directional Index) and RSI, enable traders to make decisions based on predefined conditions. To ensure that these rules are not solely based on luck, the presenters introduce the concept of a random forest. They explain that a random forest combines multiple decision trees to create a more generalized and reliable trading strategy. By randomly selecting a subset of features for each tree, the random forest reduces the chances of overfitting and provides more accurate predictions. The presenters discuss various parameters required for the random forest algorithm, including the number of estimators, maximum features, and maximum depth of the tree.
Moving on, the presenters delve into the implementation of a random forest classifier for applying machine learning in trading. They emphasize the importance of controlling the depth of the decision tree and randomly selecting features to avoid overfitting and ensure consistent outputs. The random forest classifier learns rules from input features and expected outputs, which are then used to make predictions on unseen data. They also mention that the performance of the model can be measured using various metrics.
The presenters then discuss the significance of evaluating the effectiveness of a machine learning model before making real-money investments based on its recommendations. They introduce the concept of accuracy, which involves verifying whether the model's predictions align with the actual market outcomes. They highlight that the accuracy of a model typically ranges from 50% to 60% and caution that a high accuracy rate does not guarantee good results. They suggest using a confusion matrix to compare actual versus predicted labels and calculate performance metrics such as precision, recall, and F1 score to assess the model's performance.
In detail, the accuracy of the model is thoroughly discussed, and a poll is conducted to establish its accuracy rate, which is calculated to be 60%. However, when checked label-wise, the accuracy for the long signal drops to 33%. This raises the question of whether an increase in overall accuracy will result in a profitable trading model. The presenters emphasize that accuracy is a crucial factor in determining the effectiveness of a model in predicting the market. They point out that a high overall accuracy does not necessarily lead to profitability and that other factors need to be considered.
Shah and Pachanekar then shift their focus to discussing different metrics used to evaluate the performance of a trading model, including precision, recall, and the F1 score. They note that while recall can help overcome issues with imbalanced data, it can be an unreliable metric when used on its own. Instead, they recommend using a combination of precision and recall to calculate the F1 score, which provides a more comprehensive evaluation of the model's performance. They highlight the importance of backtesting the model to ensure its effectiveness in real-world trading scenarios and caution against overfitting the model.
The presenters address the concerns of overfitting in real-world settings and suggest strategies to handle it based on the specific machine learning model used. They stress the significance of understanding the model's parameters, limiting the number of features, and working on different hyperparameters for each type of machine learning model. They emphasize the importance of using real-world data without manipulation. Additionally, they discuss the applications of machine learning in trading beyond generating signals, such as its potential in risk management. They also touch upon the use of clustering algorithms to identify profitable opportunities in the market.
Ishan Shah and Rekhit Pachanekar conclude the webinar by discussing the advantages of using machine learning in trading, particularly in deciphering complex patterns that may be challenging for humans to identify. They suggest using machine learning as a complementary tool in the alpha identification process. The session ends with the presenters expressing their gratitude to the speakers and participants of the Algo Trading Week, and they invite any unanswered questions to be submitted through the survey.