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.

Simple Volatility Exploration – Amibroker AFL Code

1 min read

Here is a simple Amibroker AFL Code to Explore (Scan) in Amibroker to get a picture about the recent volatility and how the volatility in the market is behaving to get a perspective about the market.

Once you get the right perspective about the market you can learn to control the expectation from the market volatility.

Often in the market “large changes tend to be followed by large changes… and small changes tend to be followed by small changes”

What are the ways to measure volatility?

There are many ways to measure volatility. Talking about current volatile conditions (Realized Volatility) I prefer to use the simple tools like prev day close to todays close price swings, high to low intraday volatile swings and ATR Based volatility.

Here is the recent picture of how recently the market behaved in the last two months (March 2020 and April 2020).

What we can conclude from the above picture is that March 2020 volatility went to the extreme and started cooling down after hitting the lock down period. Fear was there during the last week of March 2020 however post the lockdown fear started slowing down (i.e after 23rd March 2020). This phase markets showed erratic intraday and daily volatility. Bigger swings and wild intraday fluctuations been there.

And from Lock down 2.0 onwards the fear in the market is completely slowing down as the intraday fluctuations is reducing day by day and most of the bigger price action still happens in the form of gap up or gap down. However post the gap up or gap down not much of a bigger price action like March 2020 but a controlled intraday volatility.

Here is the Amibroker AFL code to retrieve the volatility data points.

https://gist.github.com/439fe588328da7362c6ec69ff81820a9

Happy Trading!

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.

Mini Certification Course on Algorithmic Trading Strategies

If you are new to Automated trading? This certification course will help you to kickstart your automated trading with your broker and get to...
Rajandran R
1 min read

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

Leave a Reply

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