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.

Code Snippet : Visual Gap Lookup – Amibroker AFL code

24 sec read

TCS Daily Chart
TCS

 
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 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.

How to Install Amibroker and Ninjatrader on MacBook Air

This is a routine question we get from Mac users and in this tutorial, we will be learning how to install Windows 11 inside...
Rajandran R
49 sec read

What is Algomojo – Smart Order Execution Module for…

Smart Order Module brings a 100% end-to-end automated trading solution for Amibroker users to automate their trading ideas with a simple plug-and-play module. Traders...
Rajandran R
26 min read

Virtual Trade Simulator Module Version 1.0 – Amibroker AFL…

Thought of launching a simple and user-friendly Virtual Trade Simulator to study/test your inner intuition before practicing in the live markets. Virtual Trade Simulator...
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