| TheRumpledOne 6,529 posts
 msg #161598
 - Ignore TheRumpledOne
 | 3/7/2025 9:25:25 AM 
 Use this thread to share what you have learned about filter writing.
 
 
 
 
 | 
| TheRumpledOne 6,529 posts
 msg #161601
 - Ignore TheRumpledOne
 | 3/7/2025 9:36:52 AM 
 I learned something new from StockFetcher Support...
 
 I had to place my plots BEFORE the SELECTION CRITERIA to get the plot on the chart.
 
 Submit
 
 
 
 | 
| styliten 331 posts
 msg #161624
 - Ignore styliten
 modified
 | 3/9/2025 3:49:18 PM 
 @ TheRumpledOne
 
 Modified:
 
 
 
 
 Alternative:
 
 
 
 
 
 | 
| TheRumpledOne 6,529 posts
 msg #161625
 - Ignore TheRumpledOne
 | 3/9/2025 4:52:18 PM 
 What did you learn?
 
 
 | 
| styliten 331 posts
 msg #161638
 - Ignore styliten
 | 3/9/2025 7:38:23 PM 
 @ TheRumpledOne
 
 Luck is more (important than anything and everything else in life).
 
 
 | 
| TheRumpledOne 6,529 posts
 msg #161640
 - Ignore TheRumpledOne
 | 3/10/2025 1:03:32 AM 
 LUCK:  WHEN PREPARATION MEETS OPPORTUNITY.
 
 
 
 
 | 
| xarlor 619 posts
 msg #161643
 - Ignore xarlor
 | 3/10/2025 11:47:48 AM 
 You can limit your universe to just the top performing sector(s):
 
 
 
 
 You can change any plot into a histogram (or line, or dot).
 
 
 
 
 There is an actual, valid use for tangent, sine, and cosine sometimes.
 
 
 
 
 
 | 
| TheRumpledOne 6,529 posts
 msg #161646
 - Ignore TheRumpledOne
 modified
 | 3/10/2025 1:30:23 PM 
 Submit
 
 
 Not sure why you have to convert to degrees?  Just compare the slope.
 
 This displays how many days since the slope crossed above/below 0.  SHORT when -2 and BUY when +2, if I understand correctly.
 
 
 
 
 | 
| styliten 331 posts
 msg #161648
 - Ignore styliten
 modified
 | 3/10/2025 4:58:00 PM 
 @ TheRumpledOne
 
 Part 2:
 
 A custom DMA would be very helpful as that allows instant reality check against 'history/historic trajectories'. But SF.com is unlikely to implement CDMA any time soon. Sigh!
 
 Whould be eager to use:
 
 draw CDMA(LRI(20), -15) on plot price
 draw CDMA(LRI(20), -10) on plot price
 draw CDMA(LRI(20), -5) on plot price
 
 (i.e, shifting LRI(20) curves 15/10/5 days, respectively, back into history on the price plot)
 
 vs
 
 draw LRI(20) on plot price
 
 
 | 
| lorypanna 33 posts
 msg #161650
 - Ignore lorypanna
 | 3/10/2025 7:20:55 PM 
 My contribution, FWIW.
 
 Notes:
 - Based on post in 'Filter Exchange' forum: Is it possible to get WTD, MTD,QTD,YTD in Stockfetcher?
 - xTD: the filter uses the Open at the beginning of the period 'x' and the Close at the end of the period 'x' (the current / last Close unless 'offset' is greater than zero); maybe this is not the 'correct' way to calculate xTD
 - Don't think QTD can be calculated, unless there's some ('hidden') way to identify 'start of Quarter' 's Open
 - For WTD I didn't use date(MONDAY, open) because it returns the value of the 'nearest' previous trading-Monday. Example: for week starting on Tuesday 2025-01-21 (Monday 2025-01-20 was President Day), date(MONDAY, open) function returns the open value of Monday 2025-01-13
 
 I'm interested to understand what is the 'correct' or 'generally used / accepted' way to calculate xTD.
 
 Cheers from italy.
 
 
 
 
 
 
 |