Click here to Login








Slope of Support and Resistance Lines

by QuantShare, 4241 days ago
Share |






The "AutoSR" function is a very useful trading indicator that automatically calculates support and resistance lines for any security. It can be used to calculate the last support or resistance lines (Detect chart patterns using the auto support/resistance indicator) or it can be used to calculate the support and resistance lines of each trading bar (Backtesting chart patterns using the auto support and resistance indicator) and thus make it very powerful when it comes to backtesting trading systems.

The "SlopeAutoSR" function is used in the following article (Backtesting chart patterns using the auto support and resistance indicator). See the "Backtesting the Falling Wedge Chart Pattern" paragraph.

It calculates the slope of the resistance or support line. The slope is important when it comes to detecting and backtesting chart patterns such as the Falling or rising wedge patterns.

This indicator uses the built in "TA.AutoSR" function, which returns for each trading bar an array containing three values: The support or resistance level, the line slope and the intercept.

"SlopeAutoSR" function parameters:
Param 1: Set 0 to calculate the last support line, 1 for the last resistance line, 2 for the support line of each trading bar and 3 for the resistance line of each trading bar.
Param 2: Lag Period. It instructs QuantShare to end the calculation of the lines at current bar minus lag
Param 3: Lookback Period. It instructs QuantShare to start calculating the lines at current bar minus lookback period minus lag.


Example of usage:
degree = SlopeAutoSR(3, 1, 50) * (180/3.14);
buy = degree > 30;

When used in a trading system, the above formula enters long when the angle of the 50-bar resistance line becomes higher than 30 degrees.

Note that slope is measured in radians. We can convert it to degrees by multiplying it with (180 / 3.14).


Share This ->
Share |


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




Type: Trading Indicator

Object ID: 1275


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
Relative Performance against a Group of 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 28 Notes Report an item
Auto Support and Resistance 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 60 Notes Report an item
Stock Trading Above/Below its Moving Averages (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 33 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 38 Notes Report an item
Demand Index (by Brian Brown, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 67 Notes Report an item
Keltner/Bollinger Bands Squeeze (by Brian Brown, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 83 Notes Report an item
Big Up Gap (by Peter Gum, uploaded several months ago)
No notes

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

Using Average True Range to Measure Intraday Volatility

How to Backtest Your Trading System for Each Industry

Create Profitable Trading Strategies with Exchange Traded Funds (ETFs)

3 Market Indicators based on Fundamental Data

How to Send Commands to QuantShare from Excel or Other Applications

How to make sure your Historical Price Data is Split Adjusted

How to Select the Best Market Indicator for your Trading System

4 Market Composite Indicators Based on Industry Data

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 © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.