StrategyQuant
Q AI AssistantAlgoCloudQuantAnalyzerQuantDataManager
Free CourseCompany
BlogDocumentationForumContact us
BlogMarketplace
Log in
Create free account

Product

  • Pricing & licenses
  • Learn
  • Marketplace
  • Start free trial

Legal

  • Terms of Service
  • Privacy Policy
  • Cookies

Contact

[email protected]

Company

StrategyQuant s.r.o.

Korunní 2569/108, Vinohrady, 101 00 Praha 10, Czech Republic, EU

IČ: 04000498

DIČ: CZ04000498

Social

  • Legal Notice | PROCESSING AND PROTECTION OF PERSONAL DATA

    Past performance is no guarantee of future success. All information should be viewed as educational only

    UNITED STATES Disclaimer required by Government - Commodity Futures Trading Commission informs: Futures and options trading have great potential rewards, but also great potential risk. You must be aware of the risks and be willing to accept them in order to invest in the futures and options markets. Don't trade with money you can't afford to lose. This is neither a solicitation nor an offer to buy/sell futures, shares or options on the same. No representation is being made that any account will or is likely to realise profits or losses similar to those discussed in this document. The past performance of any trading system or methodology is not necessarily indicative of future results.

    CFTC RULE 4.41 - HYPOTHETICAL OR SIMULATED PERFORMANCE RESULTS HAVE CERTAIN LIMITATIONS. UNLIKE A RECORD OF ACTUAL PERFORMANCE, SIMULATED RESULTS DO NOT REPRESENT ACTUAL TRADING. ALSO, SINCE THE TRADES WERE NOT EXECUTED, THE RESULTS MAY HAVE OFFSET THE IMPACT, IF ANY, OF CERTAIN MARKET FACTORS, SUCH AS LACK OF LIQUIDITY. SIMULATED TRADING PROGRAMMES IN GENERAL ARE ALSO SUBJECT TO THE FACT THAT THEY ARE DESIGNED WITH THE BENEFIT OF HINDSIGHT. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO REALISE PROFITS OR LOSSES SIMILAR TO THOSE SHOWN.

    NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL, OR IS LIKELY TO, REALISE PROFITS OR LOSSES SIMILAR TO THOSE DISCUSSED WITHIN THIS SITE. IF YOU DECIDE TO INVEST REAL MONEY, ALL TRADING DECISIONS IN THE FINANCIAL MARKETS SHOULD BE YOUR OWN.

    © StrategyQuant 2026

    Powered by Klaudie.ai

    Back to marketplaceDIGITAL

    OHLC Pattern Blocks

    StrategyQuantCustom Blocks
    OHLC Pattern Blocks

    20 custom condition blocks for the StrategyQuant X AlgoWizard and Builder: candle direction, higher / lower high, low, open and close against the previous bar, closes and opens beyond the previous range, gaps and range comparisons. Import the XML in AlgoWizard and use the blocks like any other signal.

    OHLC Pattern Blocks

    20 custom condition blocks for the StrategyQuant X AlgoWizard and Builder: candle direction, higher / lower high, low, open and close against the previous bar, closes and opens beyond the previous range, gaps and range comparisons. Import the XML in AlgoWizard and use the blocks like any other signal.


    Included blocks

    Condition | Block name
    Bullish candle: OHLC_BullishCandle
    Higher high: OHLC_HigherHigh
    Bearish candle: OHLC_BearishCandle
    Lower high: OHLC_LowerHigh
    Higher low: OHLC_HigherLow
    Lower low: OHLC_LowerLow
    Close[1] above Close[2]: OHLC_HigherClose
    Close[1] below Close[2]: OHLC_LowerClose
    Open[1] above Open[2]: OHLC_HigherOpen
    Open[1] below Open[2]: OHLC_LowerOpen
    Close[1] above High[2]: OHLC_CloseAbovePreviousHigh
    Close[1] below Low[2]: OHLC_CloseBelowPreviousLow
    Open[1] above High[2]: OHLC_OpenAbovePreviousHigh
    Open[1] below Low[2]: OHLC_OpenBelowPreviousLow
    Open[1] above Close[2]: OHLC_GapUpVsPreviousClose
    Open[1] below Close[2]: OHLC_GapDownVsPreviousClose
    Low[1] above High[2]: OHLC_LowAbovePreviousHigh
    High[1] below Low[2]: OHLC_HighBelowPreviousLow
    Close[1] above High[3]: OHLC_CloseAboveTwoBarsHigh
    Close[1] below Low[3]: OHLC_CloseBelowTwoBarsLow


    How to use

    1. Install the package (Marketplace in StrategyQuant X); the XML and a README land in extend/Sources.
    2. AlgoWizard > Customize > Custom blocks: import the XML.
    3. Use the blocks in AlgoWizard or enable them in the Builder building blocks (Signals).


    Tested

    Tested in StrategyQuant X 145.3205: all 20 blocks load and appear in the custom blocks catalog under OHLC Patterns.


    Requirements

    StrategyQuant X 145.3205 or newer.


    Important notes

    • The blocks compare the last closed bars (Shift 1 and 2; two blocks use Shift 3). They have no parameters except the chart.
    • No opposite blocks are defined, so a block is its own opposite: long and short rules built from one block are identical unless you define the mirror block yourself (Customize > Custom blocks).
    • The last two blocks are named "...TwoBarsHigh" and "...TwoBarsLow" but compare with High[3] and Low[3] only, not with the highest or lowest of two candles (the block help says so).
    • The XML is imported through AlgoWizard and merged into your custom blocks; an existing block with the same key is replaced.
    • These are building blocks, not strategies.

    Past performance is no guarantee of future success. All information should be viewed as educational only UNITED STATES Disclaimer required by Government - Commodity Futures Trading Commission informs: Futures and options trading have great potential rewards, but also great potential risk. You must be aware of the risks and be willing to accept them in order to invest in the futures and options markets. Don't trade with money you can't afford to lose. This is neither a solicitation nor an offer to buy/sell futures, shares or options on the same. No representation is being made that any account will or is likely to realise profits or losses similar to those discussed in this document. The past performance of any trading system or methodology is not necessarily indicative of future results. CFTC RULE 4.41 - HYPOTHETICAL OR SIMULATED PERFORMANCE RESULTS HAVE CERTAIN LIMITATIONS. UNLIKE A RECORD OF ACTUAL PERFORMANCE, SIMULATED RESULTS DO NOT REPRESENT ACTUAL TRADING. ALSO, SINCE THE TRADES WERE NOT EXECUTED, THE RESULTS MAY HAVE OFFSET THE IMPACT, IF ANY, OF CERTAIN MARKET FACTORS, SUCH AS LACK OF LIQUIDITY. SIMULATED TRADING PROGRAMMES IN GENERAL ARE ALSO SUBJECT TO THE FACT THAT THEY ARE DESIGNED WITH THE BENEFIT OF HINDSIGHT. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO REALISE PROFITS OR LOSSES SIMILAR TO THOSE SHOWN. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL, OR IS LIKELY TO, REALISE PROFITS OR LOSSES SIMILAR TO THOSE DISCUSSED WITHIN THIS SITE. IF YOU DECIDE TO INVEST REAL MONEY, ALL TRADING DECISIONS IN THE FINANCIAL MARKETS SHOULD BE YOUR OWN.
    Free3 downloads

    Files

    • CustomBlocks-OHLCPatternBlocks.sqm2 KBLocked

    Download unlocks after purchase or with an active tier.

    Details
    Version1.0.0
    PublishedOctober 26, 2026
    Last updatedNovember 2, 2026
    AppSQ
    TypeCustom blocks
    AuthorStrategyQuant
    Blocks20
    App version145.3205
    Block categoryOHLC Patterns