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 trading indicator detects whether a stock is trading at an all-time high or low. In this case, it returns 1, otherwise it returns 0. The function can also be used to detect all-time highs/lows of other time-series, technical analysis or fundamental indicator.
Screen for stock making new all-time highs:
- Select "Analysis" then "Screener"
- If you are in "Wizard" mode, set the following rule:
AllTimeHL(close, 1) equal to 1
- Otherwise, type the following formula:
var1 = close == 1;
filter = (var1);
Select your symbols, screen date and time frame then click on "Start" to begin the screening process.
You can add columns to the screener grid using the "AddColumn" function or by clicking on "Add Column" button.
This will create a new column that displays the number of trading bars since the previous all-time high.
Other Example of rules:
Stocks making a new all-time low then a new all-time high within the next three months:
rule1 = AllTimeHL(close, 1) and hhv(AllTimeHL(close, 0), 3 * 25);
Here is how to update the previous trading rule to discard the first 250 bars (year):
rule1 = AllTimeHL(close, 1) and hhv(AllTimeHL(close, 0), 3 * 25) and sum(1) > 250;
Stocks making new all-time highs with a big increase in volume:
rule2 = AllTimeHL(close, 1) and sma(volume, 2) > 4 * sma(volume, 20);
Stocks making new all-time lows with no gap down:
rule3 = AllTimeHL(close, 0) and !gapdown();