Click here to Login

Trading Software Trading objects Features How-to Blog Search



Holding period return - classifying positions

by The trader, 949 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?



>>>> More trading objects? click here to search for trading sytems, downloaders, screens, custom drawing tools, indicators... by country, market or style.

>>>> To get this item and hundreds of other items, click here to join and download the Best Trading Software for Free .



No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Write a review no reviews Number of downloads 18 downloads Notes Report an item


Type: Rule Metrics

Object ID: 110


Country:
All

Market: All

Style:
Technical Analysis




Related Trading Objects



Country
Page 1
Trading the Equity Curve
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 4 Notes Report an item
Opening Range Breakout Indicator
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 3 Notes Report an item
Wilder's Smoothing - Moving Average
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 9 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









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
Time Under Water - Drawdown (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 5 Notes Report an item
Average Output Per Year (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 9 Notes Report an item
Average Maximum Drawdown (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 12 Notes Report an item
Average Growth Rate (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 12 Notes Report an item
Per Symbol Average Output (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 13 Notes Report an item
Output metric for each trading year (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 6 Notes Report an item
Average Output Per Month (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 10 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


Forum Threads



Random Blog Posts

10 ways to download historical stock quotes data for free

True portfolio simulation applied to trading systems

Optimization of trading rules

Volatility and trading systems

Trading Optimization

Automatically create historical quotes charts

How to download the history of dividend payments for stocks in the US market

Same chart, different symbols

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






QuantShare
Product
QuantShare
Features
Create an account
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2012 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items