New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.
Syntax time frame change

in Scanning
Writing my first piece of code. Was wondering how to change my time frame on the following piece from daily to weekly but struggling with "weekly" placement, as current code scans the daily time frame.
[min(3,BB Width(20,2)) <= 1.20 * min(1000,BB Width(20,2))]
Appreciate the help!
[min(3,BB Width(20,2)) <= 1.20 * min(1000,BB Width(20,2))]
Appreciate the help!
0
Comments
-
The "weekly" modifier goes in front of everything can have time frame, so
[weekly min(3, weekly BB Width(20,2)) <= 1.20 * weekly min(1000, weekly BB Width(20,2))]
If you do something like an sma, it would be
weekly sma(10, weekly close)0 -
Thank you markd!0
Categories
- All Categories
- 2.3K StockCharts
- 395 SharpCharts
- 146 Other Charting Tools
- 69 Saved Charts and ChartLists
- 1.5K Scanning
- 73 Data Issues
- 177 Other StockCharts Questions
- 218 Technical Analysis
- 155 Using Technical Analysis
- 2 InterMarket and International
- 19 Market and Breadth Indicators
- 42 Market Analysis
- 109 Trading
- 109 Trading Strategies
- 163 S.C.A.N the StockCharts Answer Network forum
- 65 Using this StockCharts Answer Network forum
- 98 s.c.a.n. archives
- 5 Off-Topic
- 6 The Cogitation & Rumination Emporium
- Forum Test Area