Create a bot to sell covered calls every month in 23 lines of JavaScript

A Covered Call is a common option strategy that is used to enhance a long stock position. In simple terms, it allows an investor to sell a portion of the unlimited upside in a stock position for cash each month. I almost always prefer covered calls to naked stock because it provides some downside protection (via cost basis reduction) and it allows 

Tasty Condor – a bot that collects monthly premium trading Iron Condor spreads on SPY

Earlier this week we introduced a new build of the Alta5 platform with additional support for option strategies, including Iron Condor spreads. Iron Condor is a popular delta neutral strategy used by professional money managers and individual investors to collect monthly premium and slowly profit from Theta (time decay). In this article, I will walk you through my process to build a bot that trades an Iron Condor on 

Introducing the Bittman Algorithm

This is a repost of an article recently published on the blog for my new startup, Alta5. Our platform enables investors to automate stock and options trading strategies using JavaScript. In 2012 Jim Bittman, Director of Program Development and a Senior Instructor for The Options Institute at CBOE, gave a presentation that outlined a 2-step strategy 

Better Declarative Listeners for ExtJS

The most recent post on the Sencha Blog, Declarative Listeners in Ext JS 5, goes over some of the improvements made in the latest ExtJS release to make attaching event listeners to components a little easier. I have been using a small override in ExtJS 4 for a while that offers a similar declarative approach to attaching 

HTML5 History API

The Ext JS framework includes the Ext.util.History component for managing the browser history that was first introduced in Ext 2.0 back in 2007. It’s pretty solid, and other than bug fixes it hasn’t changed much since then. In the reportcaster framework, all state changes while changing reports or drilling within reports is routed through a 

Encapsulate complex logic for cleaner code and reuse

Ext JS provides many reusable components for use in Javascript applications that shield the developer from complex timer and/or asynchronous code. However, you may still find yourself writing timing or asynchronous code directly in your application code that you would be better off encapsulating in a class. Timer code is generally not pretty, bug prone