Click here to Login








Drawdown Since Trading Signal

by QuantShare, 916 days ago
Share |






This technical analysis indicator calculates the drawdown of any time-series beginning from the bar at which the provided signal array is TRUE. Unlike the default drawdown function, which calculates the drawdown from the first bar, the drawdown calculated by this function is reset each time the given signal array becomes true.

You can for example provide a buy signal as argument for this drawdown function and it will return the security drawdown since the entry bar (buy signal is true). We can then use this indicator as a sell rule or combine it with another sell rule.
Example:
buy = cross(close, sma(30));
sell = cross(sma(30), close) AND drawdowneq(buy, close) < -10

The above sell rule generates a sell signal when the close price crosses below the 30-Bar simple moving average and at the same time the position drawdown is lower than 10%.
Using a 10% trailing stop in the simulator will close the position even if the close price did not cross below the 30-Bar SMA.

Note that you normally should remove excessive signals from the buy rule (The cross function do not need that), by using the "RemoveSameSignals" indicator. Example: buy = RemoveSameSignals(buy);

Here is another example: Using intraday data, the following formula calculates today's drawdown:
drawdowneq(day() != ref(day(), 1), close);
There are no successive occurrences in the above signal formula and therefore the "RemoveSameSignals" function is not necessary.


Share This ->
Share |


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




Type: Trading Indicator

Object ID: 843


Country:
All

Market: All

Style:
Technical Analysis

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
Volume near Price Level - Detect Strong Support & Resistance Areas (by Big Yahoo, 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
Camarilla Pivot Points - Supports and Resistances (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 38 Notes Report an item
Slope of Support and Resistance Lines (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
Percentile - Percent Rank of a Trading 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 65 Notes Report an item
Swing Trading Indicator (STI) (by SystemTra.de, 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
Better Volume Indicator (by Savio Rodrigues, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 27 Notes Report an item
KST 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 47 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 Blog Posts

Automated Parsing in QS Trading Software

How to Create a List of Ticker Symbols

QuantShare Version 2.1.0 - Trading Software

How to create a ratio indicator using QS Trading Software

Screening with the composite indicators

Synchronize Buy/Sell List of Rules in the Trading System Optimizer

QS Trading Software: Global Script

New Ranking and Percentile Composite Functions

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
Affiliate Program
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