RuleOneTrading
New member
I've spent hours trying different codes and can't seem to write a simple code where the price does not cross the 150 SMA today.
I'm not sure how to have it scan for only today when using the 2m aggregation period or how to tell it to remove any stocks that have crossed the 150 SMA today.
I created a criteria scanning for any crossing in the last 390 minutes and setting that under the 'None of the following' but can't find a way to have it scan from open rather than the last 390 minutes, which includes yesterday.
I'm scanning for this criteria because I use a scanner for stocks that are trending. HH and HL ranges have proven inconsistent and using trend indicators only let's me know if a stock is trending at the moment, which continues to show stocks that have been massively choppy all day. A stock that has been above the 150 SMA and never crossed won't be as choppy.
I'm not sure how to have it scan for only today when using the 2m aggregation period or how to tell it to remove any stocks that have crossed the 150 SMA today.
I created a criteria scanning for any crossing in the last 390 minutes and setting that under the 'None of the following' but can't find a way to have it scan from open rather than the last 390 minutes, which includes yesterday.
I'm scanning for this criteria because I use a scanner for stocks that are trending. HH and HL ranges have proven inconsistent and using trend indicators only let's me know if a stock is trending at the moment, which continues to show stocks that have been massively choppy all day. A stock that has been above the 150 SMA and never crossed won't be as choppy.