Scan Syntax: Predefined Patterns
There are several predefined patterns that you can set as filters for your scan, including candlestick and P&F patterns. For more information on writing scans using these and other scan clauses, please see our Support Center article on Writing Scans.
Candlestick Patterns
Users can scan for several different bullish and bearish candlestick patterns, which can be found in the “Candlestick Patterns” dropdown menu in the Advanced Scan Workbench.
Bullish Engulfing
Whether or not the security is displaying the Bullish Engulfing pattern.
Syntax:
Bullish Engulfing
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Bullish Engulfing is true]
Bearish Engulfing
Whether or not the security is displaying the Bearish Engulfing Pattern.
Syntax:
Bearish Engulfing
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Bearish Engulfing is true]
Dark Cloud Cover
Whether or not the security is displaying the Dark Cloud Cover pattern.
Syntax:
Dark Cloud Cover
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Dark Cloud Cover is true]
Piercing Line
Whether or not the security is displaying the Piercing Line Pattern.
Syntax:
Piercing Line
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Piercing Line is true]
Bullish Harami
Whether or not the security is displaying the Bullish Harami pattern.
Syntax:
Bullish Harami
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Bullish Harami is true]
Bearish Harami
Whether or not the security is displaying the Bearish Harami pattern.
Syntax:
Bearish Harami
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Bearish Harami is true]
Morning Star
Whether or not the security is displaying the Morning Star pattern.
Syntax:
Morning Star
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Morning Star is true]
Evening Star
Whether or not the security is displaying the Evening Star pattern.
Syntax:
Evening Star
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Evening Star is true]
Rising Three Methods
Whether or not the security is displaying the Rising Three Methods pattern.
Syntax:
Rising Three Methods
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Rising Three Methods is true]
Falling Three Methods
Whether or not the security is displaying the Falling Three Methods pattern.
Syntax:
Falling Three Methods
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Falling Three Methods is true]
Gravestone Doji
Whether or not the security is displaying the Gravestone Doji pattern.
Syntax:
Gravestone Doji
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Gravestone Doji is true]
Dragonfly Doji
Whether or not the security is displaying the Dragonfly Doji pattern.
Syntax:
Dragonfly Doji
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Dragonfly Doji is true]
Three White Soldiers
Whether or not the security is displaying the Three White Soldiers pattern.
Syntax:
Three White Soldiers
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Three White Soldiers is true]
Three Black Crows
Whether or not the security is displaying the Three Black Crows pattern.
Syntax:
Three Black Crows
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Three Black Crows is true]
Hammer
Whether or not the security is displaying the Hammer pattern.
Syntax:
Hammer
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Hammer is true]
Hanging Man
Whether or not the security is displaying the Hanging Man pattern.
Syntax:
Hanging Man
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Hanging Man is true]
Shooting Star
Whether or not the security is displaying the Shooting Star pattern.
Syntax:
Shooting Star
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Shooting Star is true]
Filled Black Candle
Whether or not the security is displaying a Filled Black Candle.
Syntax:
Filled Black Candle
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Filled Black Candle is true]
Hollow Red Candle
Whether or not the security is displaying a Hollow Red Candle.
Syntax:
Hollow Red Candle
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Hollow Red Candle is true]
Elder Bar Red
Whether or not the security is displaying a red Elder bar.
Syntax:
Elder Bar Red
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[yesterday's Elder Bar Red is false] AND [today's Elder Bar Red is true]
Elder Bar Blue
Whether or not the security is displaying a blue Elder bar.
Syntax:
Elder Bar Blue
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[yesterday's Elder Bar Blue is false] AND [today's Elder Bar Blue is true]
Elder Bar Green
Whether or not the security is displaying a green Elder bar.
Syntax:
Elder Bar Green
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[yesterday's Elder Bar Green is false] AND [today's Elder Bar Green is true]
In Ichimoku Cloud
Whether or not the security's price is in the Ichimoku Cloud. See our Support Center article on Scanning Ichimoku Clouds for more information.
Syntax:
In Ichimoku Cloud
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[yesterday's In Ichimoku Cloud is false] AND [today's In Ichimoku Cloud is true]
Above Ichimoku Cloud
Whether or not the security's price is above the Ichimoku Cloud. See our Support Center article on Scanning Ichimoku Clouds for more information.
Syntax:
Above Ichimoku Cloud
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[yesterday's Above Ichimoku Cloud is false] AND [today's Above Ichimoku Cloud is true]
Below Ichimoku Cloud
Whether or not the security's price is below the Ichimoku Cloud. See our Support Center article on Scanning Ichimoku Clouds for more information.
Syntax:
Below Ichimoku Cloud
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[yesterday's Below Ichimoku Cloud is false] AND [today's Below Ichimoku Cloud is true]
Green Ichimoku Cloud
Whether or not the Ichimoku Cloud is green. See our Support Center article on Scanning Ichimoku Clouds for more information.
Syntax:
Green Ichimoku Cloud
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[yesterday's Green Ichimoku Cloud is false] AND [today's Green Ichimoku Cloud is true]
Red Ichimoku Cloud
Whether or not the Ichimoku Cloud is red. See our Support Center article on Scanning Ichimoku Clouds for more information.
Syntax:
Red Ichimoku Cloud
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[yesterday's Red Ichimoku Cloud is false] AND [today's Red Ichimoku Cloud is true]
Candlestick Building Blocks
Candlestick Building Blocks are candlestick characteristics that can be combined together to create candlestick patterns. Users can scan for several of these candlestick building blocks, which can be found in the “Candlestick Building Blocks” dropdown menu in the Advanced Scan Workbench.
Uptrend
Whether or not the security is in an uptrend. For the purposes of scanning using this building block, a security is considered to be in an uptrend if the midpoint of the candlestick is above its 5-day exponential moving average.
Syntax:
Uptrend
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Uptrend is true]
Downtrend
Whether or not the security is in a downtrend. For the purposes of scanning using this building block, a security is considered to be in a downtrend if the midpoint of the candlestick is below its 5-day exponential moving average.
Syntax:
Downtrend
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Downtrend is true]
Long Body
Whether or not the security's candlestick has a long body.
Syntax:
Long Body
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Long Body is true]
Short Body
Whether or not the security's candlestick has a short body.
Syntax:
Short Body
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Short Body is true]
Doji
Whether or not the security is displaying a Doji candlestick.
Syntax:
Doji
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Doji is true]
Marubozu
Whether or not the security is displaying a Marubozu candlestick.
Syntax:
Marubozu
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Marubozu is true]
Star
Whether or not the security's candlestick is in a star position.
Syntax:
Star
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Star is true]
Spinning Top
Whether or not the security is displaying a Spinning Top candlestick.
Syntax:
Spinning Top
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Spinning Top is true]
Engulfed
Whether or not the security is displaying either a Bullish Engulfing pattern or a Bearish Engulfing pattern.
Syntax:
Engulfed
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[Engulfed is true]
P&F Patterns
Users can scan for several different bullish and bearish P&F patterns, which can be found in the “P&F Patterns” dropdown menu in the Advanced Scan Workbench.
PnF Bullish Catapult
Whether or not the security is displaying the Bullish Catapult P&F pattern.
Syntax:
PnF Bullish Catapult
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Bullish Catapult is true]
PnF Bearish Catapult
Whether or not the security is displaying the Bearish Catapult P&F pattern.
Syntax:
PnF Bearish Catapult
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Bearish Catapult is true]
PnF Bullish Signal Reversal
Whether or not the security is displaying the Bullish Signal Reversed P&F pattern.
Syntax:
PnF Bullish Signal Reversal
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Bullish Signal Reversal is true]
PnF Bearish Signal Reversal
Whether or not the security is displaying the Bearish Signal Reversed P&F pattern.
Syntax:
PnF Bearish Signal Reversal
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Bearish Signal Reversal is true]
PnF Bullish Triangle
Whether or not the security is displaying the Bullish Triangle P&F pattern.
Syntax:
PnF Bullish Triangle
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Bullish Triangle is true]
PnF Bearish Triangle
Whether or not the security is displaying the Bearish Triangle P&F pattern.
Syntax:
PnF Bearish Triangle
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Bearish Triangle is true]
PnF Long Tail Down
Whether or not the security is displaying the Long Tail Down P&F pattern.
Syntax:
PnF Long Tail Down
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Long Tail Down is true]
PnF Triple Top Breakout
Whether or not the security is displaying the Triple Top Breakout P&F pattern.
Syntax:
PnF Triple Top Breakout
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Triple Top Breakout is true]
PnF Triple Bottom Breakout
Whether or not the security is displaying the Triple Bottom Breakdown P&F pattern.
Syntax:
PnF Triple Bottom Breakout
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Triple Bottom Breakout is true]
PnF Spread Triple Top Breakout
Whether or not the security is displaying the Spread Triple Top Breakout P&F pattern.
Syntax:
PnF Spread Triple Top Breakout
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Spread Triple Top Breakout is true]
PnF Spread Triple Bottom Breakout
Whether or not the security is displaying the Spread Triple Bottom Breakdown P&F pattern.
Syntax:
PnF Spread Triple Bottom Breakout
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Spread Triple Bottom Breakout is true]
PnF Ascending Triple Top Breakout
Whether or not the security is displaying the Ascending Triple Top Breakout P&F pattern.
Syntax:
PnF Ascending Triple Top Breakout
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Ascending Triple Top Breakout is true]
PnF Descending Triple Bottom Breakout
Whether or not the security is displaying the Descending Triple Bottom Breakdown P&F pattern.
Syntax:
PnF Descending Triple Bottom Breakout
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Descending Triple Bottom Breakout is true]
PnF Quadruple Top Breakout
Whether or not the security is displaying the Quadruple Top Breakout P&F pattern.
Syntax:
PnF Quadruple Top Breakout
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Quadruple Top Breakout is true]
PnF Quadruple Bottom Breakout
Whether or not the security is displaying the Quadruple Bottom Breakdown P&F pattern.
Syntax:
PnF Quadruple Bottom Breakout
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Quadruple Bottom Breakout is true]
PnF Bull Trap
Whether or not the security is displaying the Bull Trap P&F pattern.
Syntax:
PnF Bull Trap
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Bull Trap is true]
PnF Bear Trap
Whether or not the security is displaying the Bear Trap P&F pattern.
Syntax:
PnF Bear Trap
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Bear Trap is true]
PnF Double Top Breakout
Whether or not the security is displaying the Double Top Breakout P&F pattern.
Syntax:
PnF Double Top Breakout
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Double Top Breakout is true]
PnF Double Bottom Breakout
Whether or not the security is displaying the Double Bottom Breakdown P&F pattern.
Syntax:
PnF Double Bottom Breakout
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Double Bottom Breakout is true]
PnF Buy Signal
Whether or not the security is displaying a P&F Buy Signal.
Syntax:
PnF Buy Signal
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Buy Signal is true]
PnF Sell Signal
Whether or not the security is displaying a P&F Sell Signal.
Syntax:
PnF Sell Signal
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Sell Signal is true]
PnF Chart In Xs
Whether or not the security has an X in the most recent box on its P&F chart.
Syntax:
PnF Chart In Xs
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Chart In Xs is true]
PnF Chart In Os
Whether or not the security has an O in the most recent box on its P&F chart.
Syntax:
PnF Chart In Os
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Chart In Os is true]
PnF High Pole
Whether or not the security is displaying the High Pole P&F pattern.
Syntax:
PnF High Pole
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF High Pole is true]
PnF Low Pole
Whether or not the security is displaying the Low Pole P&F pattern.
Syntax:
PnF Low Pole
Acceptable Values:
true, false
Operators:
is, is not, =, !=
Example:
[PnF Low Pole is true]
Last updated
Was this helpful?