This is a trading item or a component that was created using QuantShare by one of our members.
This item can be downloaded and used by QuantShare Trading Software.
Trading items are of different types. There are data downloaders, trading indicators, trading systems, watchlists, composites/indices...
You can use this item and hundreds of others for free by downloading QuantShare.
Top Reasons Why You Should Use QuantShare:
Works with US and international markets (stock, forex, options, futures, ETF...)
Offers you the tools that will help you become a profitable trader
Allows you to implement any trading ideas
Exchange items and ideas with other QuantShare users
Our support team is very responsive and will answer any of your questions
We will implement any features you suggest
Very low price and much more features than the majority of other trading software
This is a simple advanced rule that detects UP and DOWN breakaway gaps.
A Gap occurs when the security low price of the current bar is higher than the high price of the previous bar (GAP UP) or if the security high price of the current bar is lower than the low price of the previous bar (GAP DOWN). In a bar or candlestick chart, gaps look like a blank space between two bars. A 'GAP UP' can be detected using the following QuantShare formula: GapUP(), or using the following rule: low > ref(high, 1).
There are different types of gaps: Common Gaps, Breakaway Gaps, Continuation Gaps...
The breakaway gap occurs when a security breaks support and resistance levels or breaks out of a trading range. This is generally a strong signal and it indicates that there is a great chance that the security will continue to move in the direction of the break. The signal is bullish if there is an "GAP UP" and bearish for a "GAP DOWN".
I have back-tested the 'GAP UP' rule without using volume filters and got good results for shorter holding period. The shorter the holding period is, the better results I got.
Using a volume filter, I have found that the higher the volume on the GAP day comparing to the average volume of the last X bars, the better the output is. (And of course the less the number of trades is).
NB: Simulations of advanced rules consume much more time than for the traditional rules, especially if some rules, such as the (_belowline), are included.
Several optimizations can be done to the current rule. As an example, the gap ratio, or how far is the high price relative to the last bar low price (GAP DOWN), could be optimized. Currently a ratio of 1.01 is used for the (GAP UP) and 0.99 for the (GAP DOWN).
You have to log in to bookmark this object What is this?
>>>> More trading objects? click here to search for trading sytems, downloaders, screens, custom drawing tools, indicators... by country, market or style.