Short Selling in Trading
₹6300/-₹25199/-
75% OFF
Get for ₹5670 with Course Bundle
- Live Trading
- Learning Track
- Prerequisites
- Syllabus
- About author
- Testimonials
- Faqs
Live Trading
- Code and backtest long short portfolio strategy.
- Calculate the expected returns of an asset.
- Build a screener to monitor different stocks
- Explain the relative series and use it to compare different stocks
- Define different models such as momentum, breakout, swings and floor and ceiling.
- Evaluate portfolio performance using different metrics such as gain to pain ratio, Girt ratio etc.
- Paper trade and live trade your strategies without any installations or downloads

Skills Covered
Long Short Portfolio
- Relative Series
- Crossover Model
- Breakout Model
- Floor and Ceiling
- Stop Loss and Position Sizing
Underlying Math
- Returns
- Exponential Moving Average
- Girt Ratio
- Gain to Pain Ratio
- Standard Deviation
Python programming
- Pandas
- NumPy
- DateTime
- Data Importing
- Data Visualization

learning track 2
This course is a part of the Learning Track: Technical Analysis Using Quantitative Methods
Course Fees
Full Learning Track
These courses are specially curated to help you with end-to-end learning of the subject.
Course Features
- Community
Faculty Support on Community
- Interactive Coding Exercises
Interactive Coding Practice
- Trade & Learn Together
Trade and Learn Together
- Get Certified
Get Certified
Prerequisites
It is expected that you have some financial markets experience and understand terms like sell, buy, entry, exit positions etc. If you want to be able to code strategies in Python, then experience to store, visualise and manage data using Pandas and DataFrame is required. These skills are covered in our course 'Python for Trading'.
Syllabus
- IntroductionIn this section, you will get an introduction to the author of the course. You will be guided through the course structure and the various concepts you will learn in the course. Finally, you understand the various features that are available to you on the Quantra Portal.About the Author6m 5sAbout the Course2m 12sQuantra Features and Guidance3m 48sIntroduction to Short Selling28m 3s
Short Selling
In this section, you will understand the concept of short selling and how it is used in trading. You will also learn about the long-short strategy and the necessity of maintaining your inventory of stocks to short.Short Selling1m 54sWhat is Short Selling?2mNeed of Short Selling2mLong-Short Strategy1m 57sStock Performance2mLong-Short Portfolio2mA Lagging Indicator2mStaying Ahead of the Crowd2mMain Points of Long-Short Strategy2mTest on Short Selling14mRelative Series
This section covers the concept of relative series and its uses in creating a long-short portfolio. The section also explains the process of creating a relative series in a stepwise manner and then rebasing the series.Factors Affecting a Stock10mWhich Factors?2mRelative Series1m 43sUses of Relative Series2mExchange Index2mPerformance of Stock2mCalculating Relative Series2m 35sFactors of Relative Series2mAdjustment Factor2mRelative Series Calculation2mHow to Use Jupyter Notebook?2m 5sCompute the Relative Series10mFrequently Asked Questions10mConcatenate Data5mCalculate Adjustment Factor5mCalculate Relative Series5mRebase the Relative Series5m- Stock Return CalculationIn this section, you will learn how to calculate the returns of a stock using 2 well-known methods. We compute the arithmetic and logarithmic returns of a stock. We will also understand the use of logarithmic returns and why we use it.Return Calculation10mCalculate the Arithmetic Returns5mCalculate the Cumulative Arithmetic Returns5mCalculate the Logarithmic Returns5mCumulative Logarithmic Returns2mAdditional Reading10mTest on Relative Series and Stock Return Calculation16m
- Regime DefinitionIn this section, you will learn about the three popular regime definitions. You will also learn the drawbacks of using valuations while shorting stocks.Regime Definition3m 25sValuations for Shorting2mDescribe a Regime2mDifferent Regime Methods2mCrossover Method2mDrawbacks of Valuations2m
- Regime Change DetectionIn this section, you will learn how to detect a change in the regime using the breakout and the crossover models. You will also learn how to code these two models.Breakout/ Breakdown Model1m 57sBreakout Buy2mBreakout Sell2mAdvantages of Breakout Model2mRegime Change- Breakout/Breakdown Model10mCalculate the Rolling High5mCalculate the Rolling Low5mCalculate the Regime- Breakout5mRegime Breakdown5mCrossover Model1m 27sCrossover Buy2mCrossover Sell2mDisadvantages of Crossover Model2mRegime Change-Crossover Model10mCalculate Rolling Mean5mCalculate Exponential Mean5mDetect Crossover Regime5m
- Floor and CeilingIn this section, you will learn how to identify the swing highs and lows and then understand how to iteratively remove local highs and lows to identify the peaks and bottoms of a stock price.Floor and Ceiling2m 14sFloor and Ceiling Uses2mBull Market Pause2mBear Market Begins2mBull Market Begins2mSwings1m 23sAlternate Swings2mSwing Highs and Lows2mPeaks2mDistance of Price2mSwings10mCreate the Swing Highs5mCreate Unified Column5mFloor and Ceiling10mCalculate the Rolling Standard Deviation5mGet the Swing High5mOptional: Lagless Swing Detection10m
- Regime MethodsIn the section, you will learn to compare the performance of different regimes discussed in the previous sections.Compare Regime Methods1m 54sBest Method2mRegime Method Duration2mCompare the Regimes10mCall the Regime Function5mTest on Regime Definition, Regime Change Detection and Regime Methods14m
- Stock ClassificationIn this section, you will learn to classify stocks into bulls and bears.Classify Stocks to Bulls or Bears1m 7sStock Screener Steps2mComponents of Log2mFlow Diagram for Classification of Stocks2mClassification of Stocks10mGet the Latest Regime5mTest on Floor, Ceiling and Stock Classification14m
- Strategy CreationIn this section, you will understand the logic behind the long-short strategy and create a strategy.Overview of Strategy Creation1m 14sGain Expectancy2mParts of Gain Expectancy2mStrategy2m 36sProperties of Regime Definition Method2mBest Method for Stop Loss Criterion2mStrategy Logic1m 35sStrategy Flow Diagram for Regime Change2mStrategy Creation5mStrategy Optimization5mExit Position2mCreate a Signal Function5mCalculate the Stop- Loss Value5m
- Live Trading on BlueshiftThis section will walk you through the steps involved in taking your trading strategy live. You will learn about backtesting and live trading platform, Blueshift. You will learn about code structure, various functions used to create a strategy and finally, paper or live trade on Blueshift.Uninterrupted Learning Journey with Quantra2mSection Overview2m 19sLive Trading Overview2m 41sVectorised vs Event Driven2mProcess in Live Trading2mReal-Time Data Source2mBlueshift Code Structure2m 57sImportant API Methods10mSchedule Strategy Logic2mFetch Historical Data2mPlace Orders2mBacktest and Live Trade on Blueshift4m 5sAdditional Reading10mBlueshift Data FAQs10m
- Live Trading TemplateBlueshift Live Trading TemplatePaper/Live Trading Short Selling Strategy10mFAQs for Live Trading on Blueshift10m
- Stop Loss and Position SizingIn this section, you will learn the different metrics used to measure how good or bad a strategy is. You will also learn about position sizing and stop loss to further solidify our learnings.Performance Metrics2m 51sTail Ratio2mOptimisation3m 57sMean Reversion Strategies2mTrend Following Strategies2mDrawdown2mRisk Associated With Strategies2mStop Loss and Position Sizing2mDrawbacks of Equal Weight Algorithms2mEquity At Risk2mPosition Sizing - I5mGain Expectancy5mEqual Weight Method5mConstant Equity at Risk Method5mMeasure of Robustness5mPosition Sizing - II5mCalculate the Drawdown5mCalculate the Grit Index5mTest on Strategy Creation, Stop Loss and Position Sizing14m
- World Stock ScreenerLearn to build a global signal engine with multiple techniques across multiple markets and asset classes. Free and easy-to-use data is used for relevant and actionable ideas.World Stock Screener Notebook2m
- Run Codes Locally on Your MachineLearn to install the Python environment in your local machine.Python Installation Overview1m 59sFlow Diagram10mInstall Anaconda on Windows10mInstall Anaconda on Mac10mKnow your Current Environment2mTroubleshooting Anaconda Installation Problems10mCreating a Python Environment10mChanging Environments2mQuantra Environment2mTroubleshooting Tips For Setting Up Environment10mHow to Run Files in Downloadable Section?10mTroubleshooting For Running Files in Downloadable Section10m
- Course SummaryThis section includes a downloadable zipped folder with all the IPython notebooks and CSV files used in the course.Course Summary1m 33sShort Selling in Current MarketPython Codes and Data2m
Registered Successfully!
You will receive webinar joining details on your registered email
Would you like to start learning immediately?
about author


Why quantra®?
- More in Less Time
Gain more in less time
- Expert Faculty
Get taught by practitioners
- Self-paced
Learn at your own pace
- Data & Strategy Models
Get data & strategy models to practice on your own
Faqs
- When will I have access to the course content, including videos and strategies?
You will gain access to the entire course content including videos and strategies, as soon as you complete the payment and successfully enroll in the course.
- Will I get a certificate at the completion of the course?
Yes, you will be awarded with a certification from QuantInsti after successfully completing the online learning units.
- Are there any webinars, live or classroom sessions available in the course?
No, there are no live or classroom sessions in the course. You can ask your queries on community and get responses from fellow learners and faculty members.
- Is there any support available after I purchase the course?
Yes, you can ask your queries related to the course on the community: https://quantra.quantinsti.com/community
- What are the system requirements to do this course?
Fast-speed internet connection and a browser application are required for this course. For best experience, use Chrome.
- What is the admission criteria?
There is no admission criterion. You are recommended to go through the prerequisites section and be aware of skill sets gained and required to learn most from the course.
- Is there a refund available?
We respect your time, and hence, we offer concise but effective short-term courses created under professional guidance. We try to offer the most value within the shortest time. There are a few courses on Quantra which are free of cost. Please check the price of the course before enrolling in it. Once a purchase is made, we offer complete course content. For paid courses, we follow a 'no refund' policy.
- Is the course downloadable?
Some of the course material is downloadable such as Python notebooks with strategy codes. We also guide you how to use these codes on your own system to practice further.
- Can the python strategies provided in the course be immediately used for trading?
We focus on teaching these quantitative and machine learning techniques and how learners can use them for developing their own strategies. You may or may not be able to directly use them in your own system. Please do note that we are not advising or offering any trading/investment services. The strategies are used for learning & understanding purposes and we don't take any responsibility for the performance or any profit or losses that using these techniques results in.
- I want to develop my own algorithmic trading strategy. Can I use a Quantra course notebook for the same?
Quantra environment is a zero-installation solution to get beginners to start off with coding in Python. While learning you won't have to download or install anything! However, if you wish to later implement the learning on your system, you can definitely do that. All the notebooks in the Quantra portal are available for download at the end of each course and they can be run in the local system just the same as they run in the portal. The user can modify/tweak/rework all such code files as per his need. We encourage you to implement different concepts learnt from different learning tracks into your trading strategy to make it more suited to the real-world scenario.
- If I plug in the Quantra code to my trading system, am I sure to make money?
No. We provide you guidance on how to create strategy using different techniques and indicators, but no strategy is plug and play. A lot of effort is required to backtest any strategy, after which we fine-tune the strategy parameters and see the performance on paper trading before we finally implement the live execution of trades.
- Do you need to have knowledge of coding in order to learn through Quantra courses?
You can learn with or without coding knowledge. If you would like to do the analysis on excel, we would suggest you to start with course on Statistical Arbitrage in Trading. You can create and test your trading strategies using excel.
Alternatively, you can do the course on Python for Trading which will help you gain knowledge in all these fields: Python, Analysis and Financial markets. - What does "lifetime access" mean?
Lifetime access means that once you enroll in the course, you will have unlimited access to all course materials, including videos, resources, readings, and other learning materials for as long as the course remains available online. There are no time limits or expiration dates on your access, allowing you to learn at your own pace and revisit the content whenever you need it, even after you've completed the course. It's important to note that "lifetime" refers to the lifetime of the course itself—if the platform or course is discontinued for any reason, we will inform you in advance. This will allow you enough time to download or access any course materials you need for future use.
- What is short selling of a stock?
Short selling happens when an investor sells a stock by borrowing it from the broker, and the investor buys the stock back from the market at a later time. It is usually done by traders when they feel that the price of a stock might go down.
- How does short selling work?
Short sellers bet on the prices of a stock going down, and they take the risk of buying the stock back for a lesser price at a later time. Short selling is considered risky and usually done by traders with a lot of experience in trading.
- How do you make money short selling?
In short selling, money is made by buying back the stock at a lower price than the one at which it was sold. Normally to perform short selling a trader would be required to have a special brokerage account with the broker where he can borrow the necessary stocks.
- What is an example of 'Shorting a Stock'?
Let's consider the recent activity on the stocks of GE. Shorting the stock of GE before the actual fall that happened in its price is a good example. There were many clear indicators for the absolute fall in prices before it actually happened.
- What happens if you short a stock and it goes up?
The trader would have to buy the stock back from the market, even if it is at a higher price (thus incurring a loss), and then return it to the broker. If the stock price goes up a lot then the broker might be forced to liquidate the trader’s position.
- What is a Regime?
Regime is a decisive shift in the momentum of the market. It happens when the stock price experiences a shift in the price momentum. Usually, the past one year or one-quarter prices are used to check for the past momentum.
- How does a regime definition help us identify which stock can be shorted?
It will help you in classifying the stocks in different categories, and apply the trading strategies accordingly. A regime definition should ideally have clear demarcation or classification criterion to separate the short and long stocks.
- What is a long-short portfolio?
Long short portfolio involves buying stocks where the exposure is positive or long and selling stocks where the net exposure is equally negative or short. The net count of stocks in long and short categories may vary but they are usually maintained in equal numbers to reduce the sector-wise risk.
- Why do we need stocks to short in a long-short portfolio?
Stocks are required to balance positive or long exposure in the market. If your exposure to a certain market is completely positive, that is, if you have only bought and held stock in your portfolio then you would lose money when the index goes down. By using a long short approach you can reduce the market risk.
- What are the different regimes?
There are three main regimes
- Crossover
- Breakout
- Floor and Ceiling
- How do you compare the different regimes?
The different regimes can be compared by checking the drawdowns and profits of each of the regime models along with other predefined metrics of the different return distributions. Comparing different regimes will help you understand which regimes work best in a given situation.
- How do you create a long-short strategy using a regime?
We classify the stocks based on the regime and then optimize the weight or capital allocations based on different portfolio management techniques. This helps create a long-short strategy.
- How do you classify stocks as underperformers and outperformers?
If the regime is positive for a stock then it can be classified as an outperformer and if the regime is negative then it can be classified as an underperformer. Each regime has its own pros and cons. Knowing each of them is absolutely vital for understanding when to implement them.
- How do you optimize a long-short model?
You can optimize a long-short model by optimizing the weight or capital allocations along with the entry and exit criterion for each of the regimes. You can also regulate the stop loss and profit taking criterion to further enhance the profitability.
- How do you size your positions while selling short?
While selling short, position sizing should be done in such a way that the net weight or capital allocation in both long and short stocks would be the same. If you are only short selling, then the past performance of the regime should be taken into account while deciding the position size.
- At the end of the course, will I have some code useful for trading?Yes, you will codes which will help you to calculate the relative series, detect regime changes and create a daily screener, perform strategy creation and backtesting, optimization, add stop loss and position sizing.