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
For Free - No Credit Card Required
% bars in last N trading days where stock close price increased
Given the close price time series, this indicator calculates the percentage of bars, for each trading day and over a given lookback period, where the close price advanced (close price higher than yesterday's close price).
A value of 100% means that the stock or asset increased during all the previous bars within the lookback period. And a value of 0% means that the stock didn't advance in any bar within the lookback period.
The function name is "PerValueInc". It accepts two parameters:
Time series: The time series used to calculate the percentage of values that increased. The time series could be set to the close price or to any other time series or indicator.
Lookback: The lookback period used in the formula's calculation. A lookback period of 30 instructs the trading software to look for the previous 30 trading days and calculate the percentage of values that increased within this period. In order to perform the calculation on the available history data (all previous bars), you must specify a negative lookback period.
Example of some trading rules:
PerValueInc(close, 4) == 100
This formula detects stocks that have four consecutive increases in the close price
SearchFor PerValueInc(close, 4) == 0 then PerValueInc(close, 2) == 100 after 2 within 1
Search for stocks with a steadily decrease in four trading days followed by two consecutive increases in the close price.
PerValueInc(rsi(14), 30) >= 70
This formula detects stocks whose RSI increased at least 70% of the time during the previous 30 trading days.
PerValueInc(close, 3) == 100 AND PerValueInc(open, 3) == 0
Use this formula to search for three consecutive increases in the close price and three consecutive decreases in the open price.
>>>> More trading objects? click here to search for trading sytems, downloaders, screens, custom drawing tools, indicators... by country, market or style.