Click here to Login





                                                   Automatic SQN Indicator

  0

0
Marcus Schöppl
2014-10-28 14:22:26


hello i have an indicator in easy language, it calculates the "System Quality Number" of an Stock, Index oder Commodity.

Values above 2.5 are perfect for Trading! This Indicator first calculates the TrendLength, which depends on the SuperTrend Indicator.

The Trendlenght is then the Period f�r calculating the SQN. So its a very nice self adjusting Indicator.

If you would screen for stable and steady performing stocks, search for stocks who have an SQN Value above 2.5

here it the indicator code:

// define trendlength


a = Supertrend[3,20]

If Close Crosses Under a Then
dwTr = -1
Else
dwTr = 0
Endif
x = dwTr
f = x > -1
i = 0
WHILE f[i] DO
i = i + 1
WEND

// calculate lowest point


If Barindex > i+10 Then
xx = Lowest[Max(1,i)](Low)
If Low = xx Then
trend = 1
Else
trend = 0
Endif
Endif

// calculate sqn period


If Barindex > 100 Then
x1 = Trend
f1 = x1 = 0
i1 = 0
WHILE f1[i1] DO
i1 = i1 + 1
WEND
Endif

trendlength = Max(1,i1)

// calculate sqn with trendlength


ProfitSer = ROC[1](Close)
ProfitSMA = Average[trendlength](ProfitSer)
sqn = sqrt(trendlength) * ProfitSMA / STD[trendlength](ProfitSer)

// adjustment

If Close < a Then
sqn = 0
Else
sqn = sqn
endif

return sqn



QuantShare
2014-10-29 02:26:10

  0

The SQN is already available in the sharing server. You can download it here:
System Quality Number (SQN)





System Quality Number (SQN) (by Dave W., uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads Notes Report an item

No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
System Quality Number Indicator
TTF - The Trend Trigger Factor Indicator
AggZ Indicator
TD Sequential Indicator
Year to Date Change Indicator

How-to Lessons
How to optimize an indicator in your trading system
How to dynamically update the settings of an indicator
How to hide a trading indicator from a particular time frame
How to create a custom trading indicator
How to create a moving average of an indicator

Related Forum Threads
Stock or industry relative strenght : Indicator or composite ?
cycles indicator
VIX Indicator and Put/Call Ratio Indicator for NSE NIFTY
BOP Indicator
Indicator for price

Blog Posts
Detect chart patterns using the auto support/resistance indicator
How to Select the Best Market Indicator for your Trading System
Backtesting chart patterns using the auto support and resistance ...
Create a stock index or a trading indicator using the composite t...
How to create the advance/decline market breadth indicator









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.