Scalper Alert scan in TOS
Code / script to use in the stock hacker in ThinkOrSwim to scan for The TTM Scalper Alert.
Scan script
See below script that can be used to make a custom scan filter in the TOS Stock or Options Hacker.
TTM_ScalperAlert("min swing" = 0.1)."PivotHigh" is true within 5 bars
alternatively
TTM_ScalperAlert("min swing" = 0.1)."PivotLow" is true within 5 bars
Use at least 5 bars because the study is looking for a confirmation bar for the trigger bar, ie. delayed signal.