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)

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)

[Live Coding Webinar] Build Your First Trading Bridge for…

In this course, you will be learning to build your own trading bridge using Python. This 60-minute session is perfect for traders, Python enthusiasts,...
Rajandran R
1 min read

[Webinar] Understanding and Mitigating Curve Fitting in System Trading

"Understanding and Mitigating Curve Fitting in System Trading"! This dynamic session aims to equip novice to intermediate traders, quantitative analysts, and financial engineers with...
Rajandran R
1 min read

P-Signal Strategy Long Only Strategy – Amibroker AFL Code

This tutorial provides an overview of the P-Signal reversal strategy, a quantitative trading strategy that utilizes statistical parameters and error functions to generate probabilistic...
Rajandran R
2 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