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
Using the "GapUp" and "GapDown" functions, it is easy to spot up and down gaps and tells on which bars these gaps have occurred. It is also very interesting to know the size of the gap.
First and for those who don't know what a Gap is; it is the price change between the high and low of two successive days on the bar where the today's low price is higher than yesterday's high price (This is for the definition of the gap up). The Gap down occurs when today's high price is lower than yesterday's low price.
There are several types of gap patterns (Common, Continuation, Breakaway and Exhaustion) and these patterns occur depending on whether the stock continues up or down after a Gap occurred.
The "GapUp" function in QuantShare allows you to detect bars where a stock is gapping up and the "GapDown" function is there to identify bars where a stock is gapping down. These two functions do not return the amount or size of the Gap. The size is defined differently for the Gap Up and Gap Down patterns. For the Gap Up pattern, it is the difference between the low price of the stock and the previous bar high price. For the Gap Down pattern it is simply the difference between the high price of the stock and the previous bar low price.
The current trading indicator returns the size of the Gap up or down that occurred during the previous N-Bars. This means that this function has one argument and this argument is there to define the lookback period that is used to search for gapping stocks. If the argument or parameter is set to zero then this function will returns Gap Sizes only on bars where these Gaps have occurred.
To distinguish between Gap Up and Gap Down, just look at the sign of the value returned by this indicator. If the value is positive then the recent Gap was a Gap up and if the sign is negative then the recent Gap was a Gap Down.
Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.