
Start Here
Platform

Tour
Bots 101How it worksLive demo
Tools
Automated tradingOptions backtestingWatchlist scannerPrivate community
Use cases
New investorsStock tradersActive tradersPassive investorsSwing tradersAlgorithmic traders

Templates
By trade type
Stock trading botsOptions trading bots
By strategy type
Bullish options strategiesNeutral options strategiesBearish options strategiesHedging strategies
By style
Active and high frequency botsEvent-based botsTrend trading botsMomentum trading botsStatistic and probability-based botsTechnical analysis botsEarnings strategy bots

Integrations

Pricing
Education

Courses
Overview
By experience
Beginner
What is an options contract?Stock trading vs. options tradingOptions contract specificsCall vs. put options basicsBuying options vs. selling optionsOptions profit and loss diagramsOptions pricing tablesOption moneyness (ITM, OTM, and ATM)Options pricing and the "Greeks"Options expiration and assignmentWhat's our "edge" trading options?Single vs. multi-leg options strategiesSmall account options strategies
Intermediate
Fearless, confident options tradingHistorical volatility vs. implied volatilityPredicting market movesTrade size and capital reservesPortfolio balance and beta weightingHow to choose the best options strategyHow far out to place trades?Strike price anchoring with probabilitiesTips on getting your trades filledAdvanced and contingent orders7 step options trade entry checklist
Advanced
Developing a daily trading routineHow to avoid "Black Swan" eventsAdjusting and hedging option tradesExiting options trades automaticallyOptions strategies we don't adjust (and why)Big picture adjustment strategyWhen to adjust or notAdjusting straddles and stranglesAdjusting credit spreads, iron condors, and calendarsSmarter stop-loss ordersBuilding a diversified options portfolioRolling options trades for duration and premiumOptions expiration week position checklistDealing with stock assignment and dividendsHow to free up trading margin and cash
By subject
Options basics
Why options vs. stocks?What is an options contract?Smart use of leverageOption strike priceOption premiumOption expirationOption contract multiplierProfit and loss diagramsLong call option explainedShort call option explainedLong put option explainedShort put option explainedATM, ITM, and OTM optionsCash vs. margin basicsHigh probability trading definedHow to buy a call optionHow to buy a put optionSingle-leg vs. multi-legWhat is the VIX?Is fundamental analysis dead?
Entering and exiting trades
Game of numbers7 step entry checklistStrong liquidity examplesPicking the next directionScanning for tradesOption pricing table basicsSetting up your trade tabPinning your probability of profitUsing delta for probabilitiesBuy to open vs sell to openBuy to close vs sell to closeMarket, limit, stop loss orders5 types of contingent ordersLimit ordersMarket ordersLimit on close ordersMarket on close ordersAdvanced contingent ordersTaking profits before expirationMechanics of rollingConsider future events
Options expiration
Options expiration explainedWhat is the Options Clearing Corporation (OCC)?Physical vs. cash settlement optionsAmerican vs. European style optionsWeekly options expirationWeekly expiration tags/codesOptions assignment processOptions exercise processTrading timeline (duration)
Bullish options strategies
Bull put spreadBull call spreadLong callShort putBull call backspreadPut broken wing butterflyCall calendar spreadPut diagonal spreadCustom naked putCovered callSynthetic long stock
Neutral options strategies
Short straddleLong straddleIron condorsShort strangleLong strangleIron butterflyUnbalanced iron condors
Bearish options strategies
Bear call spreadBear put spreadLong putShort callBear put backspreadCall broken wing butterflyPut calendar spreadCall diagonal spreadCustom naked callCovered putSynthetic short stock
Portfolio managmeent
No guaranteed tradesDon't do something, sit thereAccount size adjustmentsAvoiding stock market overloadStocks, indexes, & ETFsMonitoring positionsCreating automatic alertsIndividual stock betaPortfolio betaBeta weighting your portfolioUncorrelated industries/sectorsSystematic vs. unsystematic riskEfficient portfolio frontierLimiting undefined risk tradesEconomic calendarConcept of legging
Options pricing and volatility
How to find option price quotesUnderstanding the mathIV vs. IV percentileProbability of profit vs. probability of touchOption probability curveBid-ask spread definedIV expected vs. actual moveThe "Greeks"Fatal pricing errorsInverse ETFsOptions parity
Adjusting trades
#1 adjustment for any tradeWhen to adjust a tradeSingle options trade vs. overall portfolioLeveraging the analyze tabCall spread adjustmentsPut spread adjustmentsShort strangle adjustmentsIron condor adjustmentsShort straddle adjustmentsCalendar spread adjustmentsDebit spread adjustmentsButterfly adjustmentsUsing stop lossesDelta hedgingRolling positionsPairs hedging

Strategies
Long callLong putShort callShort putCovered callCovered putProtective putCollar strategyLEAPSBull call debit spreadBear call credit spreadBull put credit spreadBear put debit spreadLong straddleShort straddleLong strangleShort strangleCall calendar spreadPut calendar spreadIron condorReverse iron condorIron butterflyReverse iron butterflyCall butterflyPut butterflyStrapCall diagonal spreadPut diagonal spreadCall ratio spreadPut ratio spreadCall backspreadPut backspreadLong box spreadShort box spreadReversalStock repair

Topics
OverviewAsset allocationAutomated tradingBehavioral financeBrokersCandlestick patternsChart patternsDividendsEconomic indicatorsEquity investmentsExercise & assignmentFinancial analysisFinancial historyFinancial marketsFinancial modelingFinancial theoriesFundamental analysisFuturesInvestment accountsInvestment taxesInvestor biasesMarket holidaysMarket hoursMarket indexesMarket indicatorsMomentum tradingOptionsOptions pricingOptions settlementPortfolio managementRisk managementStocksStock marketTechnical analysisTechnical indicatorsTrading commissionsTrading platformsTrading psychologyTrend trading
Resources

Workshops

Podcast

Blog
Support

Help Center
Overview
Getting started
What is a bot?Creating a botAutomation typesAutomation editorBot dashboardBot positionsBot logTemplates and cloningKey conceptsSafeguards and limitsPower of botsBest practices
Bot automations
What is an automation?Scanner automationsMonitor automationsEvent automationsEditing automationsReusing automationsCopying automationsOrdering automationsUsing custom inputsBot level inputsAutomation statusesAutomations library
Bot actions
DecisionsOpen positionClose positionNotificationsLoop symbolsLoop positionsBot tagsPosition tags
Bot examples
Genesis 1.0 botGenesis 2.0 botGenesis 3.0 botTrend trading with stocks botPortfolio trend trading botTrend trading with options botMultiple moving averages botTechnical swing trading botTrend and momentum botWeekly credit spread botRecurring iron condors botThe "Honey Badger" botHybrid spreads botHigh IV rank iron condor bot
Decision recipes
Comparing underlying symbol priceEvaluating symbol typeComparing underlying symbol propertiesEvaluating underlying symbol performanceEvaluating underlying symbol standard deviationComparing underlying symbol price to an indicatorComparing multiple underlying symbol indicatorsEvaluating underlying symbol implied volatility rankEvaluating underlying symbol earnings reportingEvaluating underlying symbol price probabilityEvaluating underlying symbol probability within rangeEvaluating bot propertiesEvaluating bot available capital for opportunitiesComparing bot position count to position typeComparing bot position count to underlying symbolEvaluating bot position count to position type and underlying symbolEvaluating bot last position activityEvaluating bot last activity with underlying symbolComparing bot active orders statusComparing bot active orders status with underlying symbolEvaluating bot position availabilityEvaluating bot tagsEvaluating opportunity availabilityEvaluating opportunity return expectationsComparing opportunity attributesComparing opportunity leg attributesComparing opportunity bid-ask spreadEvaluating opportunity probabilitiesEvaluating position performanceComparing profit target to trailing valueComparing position time to expirationComparing position durationEvaluating position underlying symbolComparing position propertiesComparing position leg propertiesEvaluating position typeEvaluating position sideComparing underlying symbol price to position legEvaluating position tagsEvaluating underlying symbol indicator propertiesComparing multiple underlying symbol indicator propertiesEvaluating MACD technical indicatorComparing Bollinger Bands to symbol priceEvaluating stochastic technical indicatorComparing VIX propertiesEvaluating market time of the dayEvaluating days of the weekEvaluating bot switches
Position statement
Activity summaryPosition detailsTrade detailsOpened positionsClosed positionsCanceled positionsOverride positionsExpired positionsPosition historyManually open positionManually close positionImport position
Order pricing
SmartPricingFinal price settingsPosition summaryOrder detailsWorking ordersManual override
Bot templates
Creating new templatesUpdating existing templatesDeleting templatesSharing templatesUpdating shared templatesTemplate best practices
Cloning bots
Cloning existing botsCloning from templateCloning from shared template
Troubleshooting
Using bot logsTesting your botsNot enough capital warningDaily position limit warningTotal position limit warningPricing anomaly warningMissing or invalid input errorDaily symbol limit errorExcessive errors failsafeOverlapping strikes failsafePrice exceeds strike-difference errorOptions expiration protocolDuplicate orders errorOptions approval level errorBot event loopsStock splits and corporate actionsSupported browsersSupported countries
Community forum
Community guidelinesCrafting your introductionSending group messagesSending private messagesAttaching bot templatesReceiving bot templatesAttaching automationsReceiving automationsFollowing tradersPosting publiclyEditing posts and messagesSubscribed discussionsUsing bookmarks
Using backtester
Running a new backtestBacktesting results summaryModifying existing backtestsMy backtestsBacktesting research databaseTop backtestsBacktesting errors
Account settings
My profileTrading accountsConnecting to TDAmeritradeConnecting to TradeStationConnecting to TradierIncompatible accountsPassword managementSession timeoutTwo-step authentication
Technical docs
Infrastructure and securityAutomation structureAutomation behaviorData feedsOrder handlingTrade enforcementsBroker rejection errorsBot limitationsProfit and lossFair value pricingDecision propertiesDecision calculationsParameter selectionCalculating probabilityPlatform indicators

Contact
Send FeedbackReport IssueEmail Us
Option AlphaOption Alpha

LoginFree Trial
ResourcesPodcast

An Automated Way to Start VIX Hedging

In this episode I walk through just one type of strategy that I think is the tip of the iceberg for situational trading and hedging bots. This example automates hedging using the VIX.
An Automated Way to Start VIX Hedging
Kirk Du Plessis
Oct 9, 2020

One of the beautiful things about shifting to fully automated trading on the new Option Alpha platform is the ability to finally clone and replicate entire trading strategies using bot templates. Bot templates allow anyone to build a trading strategy and seamlessly share the structure and details of that strategy with one-click. Today, I want to walk through an automated way to start hedging with VIX. I have no doubt that this discussion will spark some creative ideas, allow you to dream of what’s possible, and show you that the future of trading is incredibly bright once you adopt auto trading.

What People Will Do With Bots

  • Bots run a micro strategy in your account. They’re like little portfolio managers that you deploy into your account to run entire strategies. They don’t run everything in your account unless you want them to.
  • In the future, there will be different types of bots that people will create.

1. Core Position Bots

  • These will trade your bread and butter strategies like iron butterflies, iron condors, long stock positions, and trend positions.

2. Tactical Bots

  • These are bots that do the tactical implementation of specific trading strategies such as a swing trading bot that trades based on RSI indicators. If RSI is low, it makes a position. If RSI is high, it makes a position. If RSI is in between, it does nothing.

3. Hedging Bots

  • This has never been possible before in this industry.
  • Hedging bots will play a huge role in situations where a black swan event comes out of left field in the middle of the day when you’re not watching.
  • For example, in the 2010 flash crash, the market swung so rapidly that it was almost like you couldn’t respond even if you watched the screen the whole time. People might worry that this will happen again. Thus we built the possibility of creating these micro-hedging bots that are always on and always watching on the auto trading platform.
  • What if you could build a bot that, hopefully, never got used, but continuously watched the market for an intraday crash?

Enter The Flash Crash Hedge Bot

  • The point of demoing this type of bot is not necessarily to say you should be making these types of bots but just as an example of how creative you can be with what you can build on the platform.
  • The Twitter hack that happened a while back could have been a lot worse, where the hackers could have tweeted nuclear threats that could have had drastic market effects. In a hypothetical event like this, you might not be at your screen, so you could not respond accordingly, or you might not even know what to do even if you were at your screen. A bot like this could be set to react to specific market parameters that might be met in an event like this. It would act according to a plan you had already thought out and programmed it according to. It would be your “Bazooka Bot.”

A Walkthrough of the bot Kirk set up

Setting up the global settings of the bot

  • We can tell the bot exactly how much capital it has to play with if it needs to use it, and you also can set up position limits.
  • For example, you give it $3,000 to play with at max and instruct it to only get into one position. This eliminates the possibility that the bot could go crazy, entering 10 positions in a row during a flash crash scenario.

Setting up a scanner inside of the bot

  • In setting up this scanner, you could, for example, build out an automation called ‘is the market crashing?’
  • This automation continuously runs checking for a set of criteria. It behaves in the way you tell it if those criteria are met.
  • Kirk created two groups of criteria rather than one, so the bot behaves one way if one set of criteria get met, or another if the second get met.
  • The first set of criteria is, ‘is the S&P price down 10% since yesterday?’ If so, it executes a hedge. You can make the criteria whatever you want, though.
  • The second set of criteria is a group of decisions, all of which have to be true for the bot to respond. The first asks if the VIX is above 40. If this is true, it then asks if the SPY price is below $300. If both are true, the bot executes its hedge.
  • This decision tree has been designed because it’s not always the case that the VIX has a big spike and the market drops. It’s usually the case, but it couldn’t be the case in some particular situations.

*The beauty of this is that you can use strategies like this as templates and adjust them.*

The "Yes" path of the bot

  • If the S&P’s price was down 10% since yesterday, or the VIX was above some value, or the SPY price was below some value and all that stuff was true, then the bot would go down the yes path.
  • Kirk set the yes path to entail buying a long call option on VIX 30 days from expiration or closest to 30 days on the at-the-money strike and use all the capital available – basically buy as many contracts as it could for $3,000.
  • Again, you could choose your yes path to be whatever you liked.
  • Kirk’s bot checks every 15 minutes for his criteria, but you can also adjust this timer using boost-ups. 15 minutes is good for Kirk because sometimes the market can go through mini flash crashes and subsequent recoveries, in which case the strategy the bot enacts wouldn’t be necessary.

Creating a monitor automation

  • Once the criteria and the yes path are programmed into the bot, Kirk’s build’s next step was creating a monitor automation called “hedge profit taker,” which looks for an opportunity to take profits only if the position gets executed.
  • Thus, not only can you set the automation to automatically enter a position, but now you can tell it what to do once it gets into that position.
  • What is cool about the monitor actions is you can set the bot to monitor any position that gets opened. You can set it to execute a certain set of decisions for short call spreads and a completely different set of decisions for short put spreads and a completely different set of decisions for iron butterflies.
  • Kirk’s hedge profit taker says anytime any position is opened it goes through a continuous sequence of hedge profit-taking and makes decisions every 15 minutes.
  • The first decision that it comes across is, “did the premium in the position increase by 250% since it was opened?” If so, it closes the position. This threshold has been set high for the hedge to be effective, and because 250% is enough of a threshold for a single day.
  • If the position’s premium did not increase by 250%, it checks to see if the VIX is below 40. So 40 is the same line in the sand used to get in and get out of the position.
  • Kirk could have a profit at this point, or he could have a loss. He could also set up another decision to say, ‘if the VIX is below 30 and I have a 50% profit, then close.’
  • The idea is setting up these dynamic decisions that you can put right into the bots and into the automations to make them do whatever you want them to do.

*Now, all you need to do is turn on the flash crash hedge bot, and that’s it – it’s running! Hopefully, you don’t need to use it!*

Creating a template

  • The next level of all of this and what makes it cool is now you can save your bot as a template and share it. People can use it or make it a starting point for their own trading recipes.
  • For people entering into trading for the first time that finds all the decisions to be over their head, they can use some of these templates which provide a pre-built structure to get going on.
  • Now, you need to start thinking about how you can use automation in your own trading. Start dreaming about, “What if a bot could do this?”

Building in hedging and adjustments internally

  • You can also do something that we haven’t touched on. You can also build in hedging and adjustments internally into other bots that you’re trading. You can build in triggers and milestones that bots are reaching, or challenging points that get triggered inside of a bot where, if you have a put spread and get challenged on the put leg, the bot can sell a call spread. Suppose you have an iron butterfly and get challenged on a long wing. In that case, the bot can execute a hedging strategy, or roll a contract, or do something to hedge that position right within the framework. You can use these strategies internally in some bots.

*Hopefully, your mind is spinning with creative ideas about the things you can do with bots, and you are really excited about the future of trading using auto-trading.*

Option Trader Q&A w/ Mark

Trader Q&A is our favorite segment of the show because we get to hear from one of our community members and help answer their questions live on the air. Today’s question comes from Mark:

Hi, Kirk. My name is Mark. In the past, I have closed iron condors or butterflies and have left the protective legs on to expire worthless. Sometimes those legs go in the money after the market close and I get assigned the shares, then I lose money in the process of closing that position. I just realized that my interactive broker’s platform has a function that allows me to preset an option exercise action. For instance, I could set an action to lapse that outstanding option leg without being assigned the stocks even if it is in the money. Is that a good idea? Thank you.

Remember, if you’d like to get your question answered here on the podcast or LIVE on Facebook & Periscope, head over to OptionAlpha.com/ASK and click the big red record button in the middle of the screen and leave me a private voicemail. There’s no software to download or install and it’s incredibly easy.

VIX
Automated Trading
Hedging
Portfolio Management
Risk Management
Case Studies
Testing Automations
Automations

4.8 (1.1k Ratings)
Subscribe Now

No-code, fully automated trading for stocks and options.

HomeAboutLegalStatusContact
©2022 Option Alpha. All Rights Reserved. Patent Pending USSN 63/118,547