Click here to Login

                                                   Weekly Prices in a QS Watchlist formula


2019-01-14 11:15:06

I am looking to create a watchlist that is filtered by applying a fornula on weekly prices of stocks. I am not sure how to get the weekly stock prices in a formula ? can you please show me an example ?

2019-01-15 05:09:21


You can only apply a daily time (besides intraday time frames) in the watchlist, so the solution would be to compress the data within the formula using the "TimeframeApply" or "TimeframeSet" functions for example.

You can apply it on a chart to see how exactly it works.

TimeframeSet(7); // 7 for weekly compression
a = atr(10);
plot(a, "");

Please check this:

2019-01-15 08:55:25


In the Dynamic Watchlist formula editor, there is an option at the bottom left of the editor to select a time frame, if this is changed to weekly from daily, than I assume that the weekly price series will be used by any functions within the formula, if that's the case then that would also work ?

2019-01-16 10:01:29


Yes, exact. If you only need to use weekly data then yes, that would be much easier.

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
Black-Scholes Option Pricing Model formula
Buy signal watchlist And Buy signal on your Chart (Red Spot)
Weekly Entry
Simple pattern detection rules using close and open prices
U.S. Weekly Leading Index - Economic Indicator

How-to Lessons
How to create a real-time watchlist
How to speed up watchlist and screener plug-ins when working with...
How to create a watchlist
How to run a screen or a watchlist from a script
How to drag & drop a stock to a static watchlist

Related Forum Threads
Watchlist not recognized by trading system
Questions and Code to Share: Weekly Expected Move (IV)
formula use all over
Simulation over selected watchlist
guru , Static watchlist

Blog Posts
Create Realtime Quote Sheets with the Watchlist Tool
4 Links to Download Free Historical Stock Prices Data by Date
Working with the formula editor
What's new in this trading software?
How to Reference Drawing Studies in QS Formulas

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

Copyright 2024
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.