se 3 posts msg #161139 - Ignore se | 
6/10/2024 4:57:03 PM
  Can StockFetcher be used to count the number times that the 8 day MA crossed over or below the 21 MA in the last 60 days, and display the number of such crossovers in a new column with add column
 Thanks, Steve : new to stockFetcher
 
  | 
nibor100 1,099 posts msg #161140 - Ignore nibor100 | 
6/11/2024 12:17:39 PM
  Welcome to SF!
 
 The short answer is, Yes.
 
 So now, do you want to take a shot of writing that filter yourself, first and if it doesn't do what you want paste it here so we can take a look at it? (that is the best way to learn filter coding in SF)
 
 Ed S.
 
 
  | 
lis 37 posts msg #161141 - Ignore lis | 
6/11/2024 1:32:51 PM
  And, hint: Stockfetcher provides examples of indicators and measures, along with examples of how to use them:
 
 https://www.stockfetcher.com/forums/Indicators
 
 Count -- Occurences is one of those:
 
 https://www.stockfetcher.com/forums/Indicators/Count-Occurrences/34492
 
  | 
Mactheriverrat 3,175 posts msg #161143 - Ignore Mactheriverrat | 
6/11/2024 9:23:50 PM
  Submit  	    
 
  | 
wantonellis 164 posts msg #161146 - Ignore wantonellis | 
6/12/2024 2:08:06 PM
 
  	    
 
  | 
nibor100 1,099 posts msg #161150 - Ignore nibor100 | 
6/18/2024 2:23:37 PM
  @se/Steve,
 
 Since you wanted a total column of both up and down crossovers, I coded the filter below borrowing from all 3 other respondents and have provided some alternative ways to display the counts.
 
 Ed S.
 
  	    
 
  |