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
Rajendran,
Why do you use Spsquantityofshares=100 instead of spspercentofequity=100?
Is it too risky to use 100% of equity to trade?
Yes it is risky to bet your 100% of your money especially if you are trading with leverage!
dear sir , thanks for giving afl ….
please can you add options – scan or explore …..