Sign up here it's free and anyone can join! Already a member? login here.
Software

Pattern Scripts

Pattern scripts are used to automatically recognize and highlight data bar patterns that provide insight to the future price movements of stock, futures and FOREX symbols.

Pattern scripts can be used in three different ways:

  1. Trading strategy scripts, heat study scripts and even other pattern scripts, among others, can use a pattern script directly from their own code.
  2. Pattern scripts can be visually plotted on financial charts.
  3. Watchlists can be setup to show pattern script values.

The IQBroker automated trading software ships with a library of premade pattern scripts that can be parameterized and customized without any programming, while custom scripts can be easily developed using the resource designer and IQLanguage.

Script Implementation

OnInitialize()
This function is called automatically when the script is first initialized.

OnPattern(barIndex As Integer) As Integer
barIndex – The bar index specifies the relative bar going backwards from the latest bar, such that 0 is the latest bar, 1 is the bar before the latest one, …, N is the Nth bar before the latest bar.
This function is used to return the total number of bars in the pattern ending at the specified bar. If there is no pattern ending at the specified bar then zero is returned.

Introduction to Pattern Scripts

This tutorial provides a complete introduction to pattern scripts.

Pattern Resources

These pattern resources are pre-installed with IQBroker.

ID Name Author Last Update
DTW Bearish 2 Crows Admin 2009-06-17
DTBC Bearish 3 Black Crows Admin 2009-06-17
DTID Bearish 3 Inside Down Admin 2009-06-17
DTOD Bearish 3 Outside Down Admin 2009-06-17
DTLS Bearish 3-Line Strike Admin 2009-06-17
DAB Bearish Abandoned Baby Admin 2009-06-17
DADB Bearish Advance Block Admin 2009-06-17
DBH Bearish Belt Hold Admin 2009-06-17
DBCM Bearish Black Closing Marubozu Admin 2009-06-17
DBM Bearish Black Marubozu Admin 2009-06-17
DBOM Bearish Black Opening Marubozu Admin 2009-06-17
DBRE Bearish Breakaway Admin 2009-06-17
DDCC Bearish Dark Cloud Cover Admin 2009-06-17
DDE Bearish Deliberation Admin 2009-06-17
DDS Bearish Doji Star Admin 2009-06-17
DDGTM Bearish Downside Gap 3 Methods Admin 2009-06-17
DDTG Bearish Downside Tasuki Gap Admin 2009-06-17
DDD Bearish Dragonfly Doji Admin 2009-06-17
DE Bearish Engulfing Admin 2009-06-17
DEDS Bearish Evening Doji Star Admin 2009-06-17
DES Bearish Evening Star Admin 2009-06-17
DFTM Bearish Falling 3 Methods Admin 2009-06-17
DGD Bearish Gravestone Doji Admin 2009-06-17
DHM Bearish Hanging Man Admin 2009-06-17
DH Bearish Harami Admin 2009-06-17
DHC Bearish Harami Cross Admin 2009-06-17
DITC Bearish Identical 3 Crows Admin 2009-06-17
DIN Bearish In-Neck Admin 2009-06-17
DK Bearish Kicking Admin 2009-06-17
DLBC Bearish Long Black Candelstick Admin 2009-06-17
DML Bearish Meeting Lines Admin 2009-06-17
DON Bearish On-Neck Admin 2009-06-17
DSL Bearish Separating Lines Admin 2009-06-17
DSS Bearish Shooting Star Admin 2009-06-17
DSWL Bearish Side-By-Side White Lines Admin 2009-06-17
DTH Bearish Thrusting Admin 2009-06-17
DTS Bearish Tri-Star Admin 2009-06-17
DTT Bearish Tweezer Top Admin 2009-06-17
DUGTC Bearish Upside Gap 2 Crows Admin 2009-06-17
UTIU Bullish 3 Inside Up Admin 2009-06-17
UTOU Bullish 3 Outside Up Admin 2009-06-17
UTSS Bullish 3 Stars in the South Admin 2009-06-17
UTWS Bullish 3 White Soldiers Admin 2009-06-17
UTLS Bullish 3-Line Strike Admin 2009-06-17
UAB Bullish Abandoned Baby Admin 2009-06-17
UBH Bullish Belt Hold Admin 2009-06-17
UBR Bullish Breakaway Admin 2009-06-17
UCBS Bullish Concealing Baby Swallow Admin 2009-06-17
UDS Bullish Doji Star Admin 2009-06-17
UDD Bullish Dragonfly Doji Admin 2009-06-17
UE Bullish Engulfing Admin 2009-06-17
UGD Bullish Gravestone Doji Admin 2009-06-17
UHAM Bullish Hammer Admin 2009-06-17
UH Bullish Harami Admin 2009-06-17
UHC Bullish Harami Cross Admin 2009-06-17
UHP Bullish Homing Pigeon Admin 2009-06-17
UIH Bullish Inverted Hammer Admin 2009-06-17
UK Bullish Kicking Admin 2009-06-17
ULB Bullish Ladder Bottom Admin 2009-06-17
ULWC Bullish Long White Candlestick Admin 2009-06-17
UMH Bullish Mat Hold Admin 2009-06-17
UMAL Bullish Matching Low Admin 2009-06-17
UML Bullish Meeting Lines Admin 2009-06-17
UMDS Bullish Morning Doji Star Admin 2009-06-17
UMS Bullish Morning Star Admin 2009-06-17
UPL Bullish Piercing Line Admin 2009-06-17
URTM Bullish Rising 3 Methods Admin 2009-06-17
USL Bullish Separating Lines Admin 2009-06-17
USWL Bullish Side-By-Side White Lines Admin 2009-06-17
USS Bullish Stick Sandwich Admin 2009-06-17
UTS Bullish Tri-Star Admin 2009-06-17
UTB Bullish Tweezer Bottom Admin 2009-06-17
UUTRB Bullish Unique 3 River Bottom Admin 2009-06-17
UUGTM Bullish Upside Gap 3 Methods Admin 2009-06-17
UUTG Bullish Upside Tasuki Gap Admin 2009-06-17
UWCM Bullish White Closing Marubozu Admin 2009-06-17
UWM Bullish White Marubozu Admin 2009-06-17
UWOM Bullish White Opening Marubozu Admin 2009-06-17
NBST Neutral Black Spinning Top Admin 2009-06-17
NDO Neutral Doji Admin 2009-06-17
NHW Neutral High Wave Admin 2009-06-17
NIUM Neutral Inverted Umbrella Admin 2009-06-17
NLLD Neutral Long Legged Doji Admin 2009-06-17
NSBC Neutral Short Black Candlestick Admin 2009-06-17
NSWC Neutral Short White Candlestick Admin 2009-06-17
NUM Neutral Umberella Admin 2009-06-17
NWST Neutral White Spinning Top Admin 2009-06-17

Home :: Company :: Software :: Download :: Purchase :: Forums :: Support :: Partners
Copyright © 2008 - 2009 IQ Broker Technologies, Ltd. All rights reserved.