Join Now or Login or connect with

Trading Software Trading objects Features Blog Search

This is a trading object shared by a member. You can use this object as well as hundreds of others with QuantShare - Trading Software.
Click on the Like button or on one of the share buttons to share this object and spread the word about QuantShare.
QuantShare is an advanced trading software for stock, forex, futures, ETF and options markets. It is the best and the most complete EOD trading software software and it is FREE (beta version).

% bars in last N trading days where stock close price increased

by QuantShare, 78 days ago
Share |

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.


Share This ->
Share |


You have to log in to bookmark this object
What is this?
Additional Information





Related Trading Objects



Country
Page 1
Historical data for Major World Stock I..
by QuantShare, uploaded one month ago
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 8 Notes Report an item
Major World Stock Indices
by QuantShare, uploaded one month ago


No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 6 Notes Report an item
Crossover/Convergence of Several Tradin..
by QuantShare, uploaded one month ago
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 4 Notes Report an item
Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object






Reviews
You must log in first

Join now
and get instant access for free to the trading software, the Sharing server and the Social network website.
Click here


Related objects
Show All
Yahoo EOD historical quotes (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 460 Notes Report an item
Canada Stock Market Symbols (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 40 Notes Report an item
Argentina Stock Market Symbols (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 6 Notes Report an item
Austria Stock Market Symbols (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 7 Notes Report an item
US delisted symbols (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 64 Notes Report an item
ETF Symbols (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 54 Notes Report an item
Historical Quotes for Delisted US Stocks (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 60 Notes Report an item
Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object

Technical Analysis


Fundamental Analysis


Random Objects

 10 0 0 - Black-Scholes Option Pricing Model formula
  9 0 0 - News data for US companies from Google RSS feed
  7 0 0 - Austria Stock Market Symbols
  5 0 0 - Advance/Decline NYSE, Amex and NASDAQ issues
 25 1 5 - Brazil Stock Market
 54 0 0 - ETF Symbols
 14 0 0 - Forex Data
  6 0 0 - Denmark - Copenhagen stock exchange
 24 0 0 - French Euronext Symbols - Liste des entreprises francaise coté ŕ l'Euronext
  7 0 0 - Time-series location relative to its high and low
More trading objects...


Recent Posts

How to search for a trading item
Posted 3 days ago

How to create market indicators using the composite function - Part 3
Posted 10 days ago

How to create market indicators using the composite function - Part 2
Posted 17 days ago

Create a Pivot Table that displays the Relative Strength Index - RSI
Posted 31 days ago

6 Stock Trading Items Related to the New York Stock Exchange - NYSE
Posted 38 days ago

Show All

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object


contactus
About | Trading Forum | Trading Software Manual
Copyright © 2010 QUANTSHARE.COM