Rajandran R Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, USDINR and 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. Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in and Co-Creator of Algomojo (Algorithmic Trading Platform for DIY Traders)

Code Snippet : Visual Gap Lookup – Amibroker AFL code

24 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 Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, USDINR and 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. Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in and Co-Creator of Algomojo (Algorithmic Trading Platform for DIY Traders)

How to Perform Machine Learning Using Amibroker and Python

Amibroker is a powerful technical analysis and trading system development platform, used extensively by traders and analysts for developing and deploying trading strategies. Python,...
Rajandran R
5 min read

Preparing the Features Dataset using Amibroker Exploration – Machine…

There are various methods to prepare the feature dataset, which is a crucial input for a machine learning prediction model. One approach is to...
Rajandran R
1 min read

Dynamic Color Coding in Amibroker Profit Tables: A Visually…

Profit tables are a valuable tool for traders and investors to analyze the trading strategy performance of their investments over time. However, the traditional...
Rajandran R
3 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