Rajandran R Creator of OpenAlgo - OpenSource Algo Trading framework for Indian Traders. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Building Algo Platforms, Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in

Code Snippet : Visual Gap Lookup – Amibroker AFL code

25 sec read

TCS Daily Chart
TCS
[wp_ad_camp_5]

 
Here is a simple code snippet to check for Gaps in the charts especially in the Daily and Weekly Charts. It looks for gaps which are opens out of the previous candle range and colors with yellow bar. It provides once shot visual access to check whether a the gap is filled in the particular stock/indices or not. And the nearest gap reference levels. However if you need to scan for the whole universe of stocks to identify the gaps then writing a amibroker exploration is preferred.

Visual Gap Lookup – Amibroker AFL Code
https://gist.github.com/f7fd81d581949e0eb44a

Rajandran R Creator of OpenAlgo - OpenSource Algo Trading framework for Indian Traders. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Building Algo Platforms, Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in

CUSUM Filter Strategy in AmiBroker AFL: A Practical Implementation

Detecting meaningful shifts in price trends while filtering out market noise is a challenge many traders face. Inspired by Jakub Polec’s blog, which applies...
Rajandran R
2 min read

Fisher Transform – Amibroker AFL Code

The Fisher Transform is a technical analysis indicator developed by John F. Ehlers, designed to identify potential turning points in the price movements of...
Rajandran R
2 min read

My Experience Converting SSL Hybrid from PineScript to Amibroker…

As a trader and coding enthusiast, I often find myself needing to translate trading indicators from one programming language to another. Recently, I embarked...
Rajandran R
8 min read

3 Replies to “Code Snippet : Visual Gap Lookup – Amibroker AFL…”

  1. Rajendran,

    Why do you use Spsquantityofshares=100 instead of spspercentofequity=100?
    Is it too risky to use 100% of equity to trade?

  2. dear sir , thanks for giving afl ….
    please can you add options – scan or explore …..

Leave a Reply

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