Menu
  • Option Hydra
  • Training
  • Premium
  • Courses
  • Library

Marketcalls

Simply Intelligent Technical Analysis and Trading Strategies

  • Software
    • Amibroker
    • NinjaTrader 7
    • Ninjatrader 8
    • Option Action
    • Market Analyst
    • Metatrader
    • Python
    • Datafeed
  • Market Profile
    • Orderflow
  • Markets
  • Commodities
  • Forex
  • Economy
    • Banking
  • Webinars
  • Trading Lessons
    • Algo Trading
    • Infographic
    • Video
You are here: Home / Amibroker / Intraday Gap Up and Gap Down – Amibroker Strategy

Intraday Gap Up and Gap Down – Amibroker Strategy

July 29, 2014 by Dinesh Tarte 14 Comments

Before getting into the strategy just wanna tell you that amibroker supports two in built functions gapup() and gapdown() to identify gap up and gap down openings.

GapUp() – this inbuilt function Returns ‘1’ or ‘true’ on the day a security opens gap up. Rest of the days it returns Zero.

GapDown() – this inbuilt function Returns ‘1’ or ‘true’ on the day a security opens gap down. Rest of the days it returns Zero.

Based on this two functions one can easily create a Simple Gapup and Gapdown Strategies.

Strategy Rules

Strategy is very simple. when the market open with gap up and at the same time ,it crossed the previous day high then it should be considered as strong buy. When the market open with gap down and while opening if it crosses yesterday low then it should be considered as strong short.

stoploss setting

 
1)Target % parameter Control is given to the user. so user can set the target as required. Default value is 1%

2)Stop loss logic in the AFL code is not added however you can set the stop loss nearly 0.3% in the bactesting settings as shown below. 0.3% if Static stoploss is the minimum risk

3)Tested the strategy with different stocks and its success ratio in between 50 to 60 %

4)On an average you will get the signal 2-4 times in month .

5)Exploration is also added to scan the stocks which meet above requirement

Preferred Timeframe : 5min charts.

One can experiment with high beta stock.The beauty of the system is stop loss is only 0.3 % which is very less .

Sample report for Bank Nifty for the last 4 years with 4 lots of Bank Nifty taken at every trade with Rs100/Lot Commisions +Slippages included.
Backtest Report

Download Gap-Up Gap-Down Amibroker AFL Code

Related Readings and Observations

  • Code Snippet : ORB – Open Range Breakout Levels – Amibroker AFL Code (Better Version)Code Snippet : ORB – Open Range Breakout Levels – Amibroker AFL Code (Better Version) Open Range Breakout is a simple strategy which monitors first 5min / 15min / 15min / 30min / 60min range from the start of the market. From the opening high range and low range is […]
  • PercentRank Based Smooth ATR to Predict Change in Volatility – Amibroker AFL CodePercentRank Based Smooth ATR to Predict Change in Volatility – Amibroker AFL Code Is there a way where one can identify market regime shift from low volatility zone to high volatility zone and vice versa? How I can identify stocks with increasing volatility? Is there a […]
  • How to Get Moneycontrol News Snippets into Amiboker?How to Get Moneycontrol News Snippets into Amiboker? Getting the newsfeed directly into my favorite charting software is always been interesting to me. If you are a news-hungry trader/investor possibly you may be also thinking in the same […]
  • Code Snippet : Price with Last Trade Price Marker : AmibrokerCode Snippet : Price with Last Trade Price Marker : Amibroker Here is a simple Amibroker AFL code snippet which tracks the last trade price with a dashed horizontal line at LTP. It could be useful for the people who wants to know where the current […]
  • Trading the Previous Day High and Previous Day Low Breakout – Do Simple Strategies Really Work? [Part1]Trading the Previous Day High and Previous Day Low Breakout – Do Simple Strategies Really Work? [Part1] Do simple strategies really work in Indian Markets? This curiosity arises when one of our Amibroker Mumbai Participant comes up with a simple trading strategy. Hence the tutorial series, […]
  • Absolute Monthly and Yearly   Profit/Loss Table – Amibroker AFL CodeAbsolute Monthly and Yearly Profit/Loss Table – Amibroker AFL Code while back-testing by default Amibroker provides Profit Table in Compounded percentage terms. However the profit table can be customized according to ones requirement. Rather than doing a […]

Filed Under: Amibroker Tagged With: AFL Code, Amibroker, Gap Down, Gap Up

About Dinesh Tarte

Dinesh is software Engineer by profession and a trader in equity and commodity markets. He does research with various technical analysis and loves to develop strategies in amibroker. Remarkably he is a student of Marketcalls and does freelancing for creating custom indicators in Amibroker

Comments

  1. bapu jadhav says

    July 30, 2014 at 12:26 am

    sir
    i am bapu jadhav i like it to amibrokar softwaer i parchase use your softwaer how can i you parchase softwaeer

    Reply
    • Rajandran R says

      July 30, 2014 at 12:05 pm

      Hi,

      As of now we are not providing Amibroker License. We resell only datafeed. For Amibroker License you can directly refer amibroker.com website.

      For Datafeed Pricing refer
      https://www.marketcalls.in/services/globaldatafeeds

      Reply
  2. Rajesh R says

    July 30, 2014 at 9:32 am

    Hi Dinesh,

    Can we have an EOD Gap Up & Gap Down analysis, since in our office we do not get access to stock market sites and also we cannot install Amibroker software in our official computers.

    Can you please do the needful.

    Thanks in Advance

    Rajesh R

    Reply
    • Dinesh says

      July 30, 2014 at 11:33 am

      Rajesh

      My Gap Strategy study is useful for intraday not for EOD basis.

      Reply
  3. shabber pasha says

    July 30, 2014 at 9:33 am

    hello raj.

    i want amibroker license , what will be the cost,

    thanks

    Reply
    • Rajandran R says

      July 30, 2014 at 12:04 pm

      You can refer amibroker.com website for Amibroker License as of now the Indian Resellers stopped providing amibroker license.

      Reply
  4. STOCKSTOPP says

    July 30, 2014 at 7:36 pm

    Where do we enter and exit, and is it intraday?
    Have u tried this on higher timeframe?
    Thank you

    Reply
  5. Dinesh says

    July 31, 2014 at 12:30 pm

    As I clearly mentioned,at day open when the Gap up /Down happens and at the same time the price should crosses yesterdays high /low. at that time we need to take position .
    As per my analysis higher time frame is not suitable for the strategy

    Reply
  6. STOCKSTOPP says

    July 31, 2014 at 10:19 pm

    so basically,
    let market open with gap up
    watch out for price to cross yesterday’s high
    enter in long trade
    and
    book profit at user defined target in intraday itself?
    In less time high returns, sounds cool.

    Reply
  7. prachi says

    August 12, 2014 at 7:47 am

    Hi,
    your afl is scanning stocks which opened gap up above previous days range and its giving buy signals.I think following two are better strategies compared to what you have done:-
    1. security open gap up above previous day range, initiate sell when it goes below previous days high.
    2. Security opens gap up with in previous days range, initiate buy when it crossed above previous days high.

    vice versa for gap down.
    I also need a help.I need scanner for rsi double top(Mr Rajan vyas might have requested). If you can design it , then it will be very helpful.

    Thanks

    Reply
  8. shubhangi sawant says

    December 12, 2017 at 10:23 am

    HI,

    Mr.Dinesh

    I want your amibroker Gap up Gap down study strategy for intraday.

    Please contact me

    Regards/Shubhangi sawant
    9821779554

    Reply
  9. shubhangi sawant says

    December 12, 2017 at 10:38 am

    i want your gap study intraday strategy

    Reply
  10. Nilesh says

    May 8, 2018 at 12:25 am

    Plz Sir Help Me
    I want minimum 1% or more gap up and gap down and Open=Low and open=High amibroker AFL plz sir help me….

    Reply
  11. navin bhatia says

    December 14, 2018 at 5:33 pm

    Hello Mr. Rajendran, I need the opposite of this afl. I need when price open gap down and also below the previous day low and make first 15 mints candle high,When price cross first 15 mints high then buy sl. day low.vice versa for sell.can you make change this afl for me.thank you

    Reply

Leave a Reply to prachi Cancel reply

Your email address will not be published. Required fields are marked *

Email Newsletter

Sign up to receive email updates on latest trading strategies , analysis & financial market updates

We Respect Your Privacy

Premium Access

Username:
Password:
Remember Me
Lost your password?

Tools For Traders

  • Marketcalls Android App
  • MCX Signals
  • Intraday Signals
  • International Commodities
  • OI Tracker
  • Participation OI
  • Your Broker
  • Market Sentiment Analysis

Amibroker Updates

Code Snippet: ATM Call and ATM Put calculation from Spot Prices: Amibroker AFL

December 10, 2019 By Rajandran 2 Comments

Volatile Phases – Colorful ADX Amibroker AFL Code

November 16, 2019 By Rajandran 4 Comments

Amibroker Technical Analysis Workshop – Bangalore

November 1, 2019 By Rajandran 2 Comments

How to Send Alerts from Amibroker to Telegram Channel using Telgram API

June 12, 2019 By Rajandran 15 Comments

How to Estimate the VWAP based settlement Close like a Pro using Amibroker?

June 9, 2019 By Rajandran Leave a Comment

  • Facebook
  • Google+
  • LinkedIn
  • RSS
  • Twitter
  • YouTube

Metatrader Updates

MetaTrader 5 Demo Servers Now Available for BSE Currency Markets

March 20, 2018 By Rajandran 8 Comments

ChartIQ – WebTrader for MT4

December 4, 2017 By Rajandran 5 Comments

Metatrader 4 – Web Platform Overview

October 29, 2015 By Rajandran 9 Comments

William VIX FIX Indicator for Metatrader 4

May 16, 2015 By Rajandran 9 Comments

How to Install Custom MQL4 indicators in Metatrader

November 14, 2014 By Rajandran 7 Comments


About | Contact Us | Terms and Conditions | Privacy Policy | Support Policy | Privacy Policy | Refund Policy | Disclaimer


© Copyright 2018 Marketcalls Financial Services Pvt Ltd · All Rights Reserved · And Our Sitemap · All Logos & Trademark Belongs To Their Respective Owners·

Data and information is provided for informational purposes only, and is not intended for trading purposes. Neither marketcalls.in website nor any of its promoters shall be liable for any errors or delays in the content, or for any actions taken in reliance thereon.