Join Now or Login or connect with

Trading Software Trading objects Features Blog Search

Holding period return - classifying positions

by The trader, 392 days ago
Share |

This item creates three metrics when analyzing a list of trading rules.
The object classify trading rules output or return into three categories.
The categories are:
Position whose holding period is below 10 bars
Position whose holding period is below 40 bars
Position whose holding period is above 40 bars

Of course these thresholds can be modified.
To do so, just update the two variables: threshold_1 and threshold_2.

As you may have noticed this item is of no use when using an N-Bars stop, because with this kind of stop the holding period is already known.
If you choose for example a trailing stop as positions exit, you will get three metrics where the first one will calculate the average output value for the positions where the holding period is below or equal to 10...

How it works: (Holding period return)
The object skims through all the generated positions and performs a test on each one.
It gets the number of bars value (NbBars) and compares it to the thresholds, then adds it to the appropriate variable (sum1, sum2 or sum3).
The sum1 contains the sum of all outputs, while count1 contains the sum of all holding periods.
The item then divides 'sum1' by 'count1' and creates the metric using the 'Functions.AddMetric' function.


Share This ->
Share |


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





Related Trading Objects



Country
Page 1
Wilder Volatility Index - Average True ..
by Brian Brown, 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
Wilder Volatility Index - Average True ..
by Brian Brown, uploaded one month ago
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 1 Notes Report an item
Geometric Moving Average Indicator
by Brian Brown, uploaded one month ago
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 0 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






Market
Page 1
Fibonacci Trading Indicator - Support a..
by QuantShare, uploaded today
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 0 Notes Report an item
Fibonacci Trading with the Retracement ..
by QuantShare, uploaded yesterday
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 0 Notes Report an item
Williams AD - Accumulation Distribution..
by QuantShare, uploaded one week ago
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 1 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






Style
Page 1
Fibonacci Trading Indicator - Support a..
by QuantShare, uploaded today
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 0 Notes Report an item
Fibonacci Trading with the Retracement ..
by QuantShare, uploaded yesterday
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 0 Notes Report an item
Williams AD - Accumulation Distribution..
by QuantShare, uploaded one week ago
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 1 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
Relative strength index multiple-length (by The trader, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 21 Notes Report an item
Simple pattern detection rules using close and open prices (by bug man, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 39 Notes Report an item
Trading rules using the VIX Index (by The trader, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 20 Notes Report an item
Indicator -> Moving average -> Rate of change -> Trading rule (by bug man, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 26 Notes Report an item
Breakaway Gaps (by Patrick Fonce, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 21 Notes Report an item
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 417 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 45 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

  1 0 0 - Threshold Securities - NASDAQ
  3 0 0 - Vilnius, Tallinn and Riga stock exchanges
  4 0 0 - Volume Ratio of Advancing to Declining stocks
  2 0 0 - Relative Vigor Index
 18 0 0 - Bursa Malaysia
  3 0 0 - US Stocks: Size & Share Volume
 12 0 0 - Price and Volume Trend
  3 0 0 - Distress Index - Economic measure
  8 0 0 - Percent Bollinger Bands
  8 0 0 - Chart Patterns: Double Top and Double Bottom
More trading objects...


Recent Posts

Pivot Tables in QuantShare Trading Software
Posted 9 days ago

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

Optimize a trading strategy using the Sharpe ratio
Posted 24 days ago

How to create a trading indicator that uses stock news
Posted 31 days ago

How to create your own technical analysis indicators
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 | Privacy | Terms of Use | Manual
Copyright © 2010 QUANTSHARE.COM