Click here to Login

                                                   How to create a watchlist of scrips that are in an intermediate uptrend


2010-07-22 05:10:06

Hi Quantshare team,

First thanks for this excellent piece of software. I have been using it extensively lately and in the process learning a lot about it too.

What I wanted to do is basically make 3 watchlist - 1 for uptrend, another for down trend and the last one for the Range bound scrips.

Could you please guide me as to how I can make this possible with Quantshare? Your inputs are highly appreciated.

Thanks & Regards,


2010-07-22 08:28:18


Thank you Mark.

Do you want know how to write the uptrend and downtrend formulas?

2010-07-24 00:18:00


Yes please. That would be great. Thank you for your time.

Best Regards,


2010-07-24 06:09:54


Best Answer
There are several ways to create rules that detect uptrends and downtrends.
You can for example use the moving average:
uptrend = close > sma(30);
downtrend = close < sma(30);

Or the Adx indicator:
uptrend = adx(10) > 25 and perf(close, 10) > 0;
downtrend = adx(10) > 25 and perf(close, 10) < 0;

ADX Value - Trend Strength
0-25 - Absent or Weak Trend
25-50 - Strong Trend
50-75 - Very Strong Trend
75-100 - Extremely Strong Trend

2010-07-24 08:20:58


Duh!!! That was simple... I should have thought of that myself...

Thank you so very much for your support. You guys Rock!

Best wishes,


No more messages


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"


Trading Items
How far are the close prices from the support line
Percentage of Stocks that are trading between their 50 and 200-da...
Percentage of Nasdaq 100 stocks that closed above their 10 day mo...
Average Performance of a trading rule during that past N days
Advance Stocks & Volume - Stock that advanced with a volume incre...

How-to Lessons
How to create a real-time watchlist
How to create a watchlist
How to create a custom trading indicator
How to drag & drop a stock to a static watchlist
How to create a mobile database/account

Related Forum Threads
How to Backtest a WatchList
How are corporate action adjustments treated with Yahoo Finance
How to download a item that need a user and password
How to create a Trading Object
How do you sort simulations by the date that the simulation was r...

Blog Posts
How to create a trading indicator that uses stock news
How to Create Custom Metrics for Your Trading Positions
How to Create a Custom Real-Time Table using QS Trading Software
How to create your own technical analysis indicators
How To Create and Backtest an S&P 500 Trend Following System

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2021
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
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.