Rajandran R Founder of Marketcalls and Co-Founder Algomojo. Full-Time Derivative Trader. Expert in Designing Trading Systems (Amibroker, Ninjatrader, Metatrader, Python, Pinescript). Trading the markets since 2006. Mentoring Traders on Trading System Designing, Market Profile, Orderflow and Trade Automation.

Long Butterfly Spread – Amibroker AFL code

46 sec read

The Long butterfly spread is a neutral strategy that is a combination of a bull spread and a bear spread. It is a limited profit, limited risk options strategy. There are 3 striking prices involved in a butterfly spread and it can be constructed using calls or puts.

Long Butterfly spread is constructed using Buy 1 ITM Call ,Sell 2 ATM Calls, Buy 1 OTM Call.the long butterfly can be constructed by buying one lower striking in-the-money call, writing two at-the-money calls and buying another higher striking out-of-the-money call. A resulting net debit is taken to enter the trade.

Long Call Butterfly Spread
Butterfly Spread

 

Payoff Diagram for Long Butterfly Strategy
Long Butterfly

Procedure to Setup Long Butterfly Spread

1.Download Butterfly Spread.afl to Amibroker/Formulas/Options Spread directory
and Unzip the file. Create Options Spread Directory if it doesn’t exist.
2.Open Amibroker->File->Open New Blank Chart
3.Now on the Left Pane goto Charts->Option Spread and drag and drop Bear Iron Condor Spread to the blank chart.
4.Bingo! you got the Spread chart.
5.To Change the spread right click over the charts and goto Parameters where you have control to change the ITM call/put strike A, ATM call/Put Strike B, OTM Call/Put Strike C prices as shown below

Long Butterfly Option Spread Parameters

Supported Strategies
1. Long Call Butterfly
2. Short Call Butterfly

Rajandran R Founder of Marketcalls and Co-Founder Algomojo. Full-Time Derivative Trader. Expert in Designing Trading Systems (Amibroker, Ninjatrader, Metatrader, Python, Pinescript). Trading the markets since 2006. Mentoring Traders on Trading System Designing, Market Profile, Orderflow and Trade Automation.

Algomojo Index Straddle/Strangle Execution Module with Intraday Stoploss

This tutorial focus on how to automate your index straddle/strangle strategy with intraday stop-loss levels with time-based entry and exits using Algomojo Platform and...
Rajandran R
7 min read

Learn How to Login into Algomojo Account using Amibroker

In the last tutorial, we learn how to automate the algomojo login process and in this video tutorial, we are going to learn with...
Rajandran R
1 min read

Amibroker Execution Module – Hedged Index Futures for Directional…

In the last tutorial, we learn the importance of Hedging Futures Position with OTM Options for Reduced Margin. This tutorial focus on how to...
Rajandran R
14 min read

2 Replies to “Long Butterfly Spread – Amibroker AFL code”

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More