ALERT posted 4/15/2014: Although I cannot confirm this because I can no longer test these codes, I have been informed that the above 3-4 Bar Strategies requires that anyone using this code should add a "Look-inside bar" function to avoid issues with Intra-bar Price Movement Assumptions. This is not included in the code below. This link is provided as a reference.
Anyone using information or codes on these pages does so at their own risk - no guarantees of stability or profitability are claimed. These codes are all for testing purposes only. Copy everything in the bottom panel and paste into a new ShowMe.
/////////////////////////////////////////
/////// 3-4 BAR PATTERNS SHOWME /////////
/////////////////////////////////////////
var: TradeType (0);
TradeType=2; // Enter Trade# 1-9 or 7.2 here from PDF visual
//Var: Series3Low(0), Series4Low(0), Series5Low(0); //declare variables
/////////////////////////
///// TRADE MARKERS /////
/////////////////////////
//Series3Low = Lowest (Low, 3); Series4Low = Lowest (Low, 4); Series5Low = Lowest (Low, 4); //define variables
If TradeType=1
and H[3]>H[2] and C[2]<C[1] and L[1]>L[2] and H[1]>H[2] and H[0]>H[3]{breakout} then begin
Plot1 (L[0]-.0015,"T1",red,0,5); Alert; end{ else NoPlot( 1 )}; { remove the marker }
If TradeType=2
and H[3]>H[2] and C[2]<C[1] and L[2]<L[3] and O[1]<C[2] and C[1]>C[2] and L[1]<L[2] and H[0]>H[2]{breakout} then begin
Plot2 (L[0]-.0015,"T2",blue,0,5); Alert; end;
If TradeType=3
and H[3]>H[2] and C[2]<C[3] and O[1]>C[2] and H[1]>H[3] and H[0]>H[1]{breakout} then begin
Plot3 (L[0]-.0015,"T3",yellow,0,5); Alert; end;
If TradeType=4 //long
and H[3]>H[2] and H[2]>H[1] and L[3]<L[2] and L[2]<L[1] and H[0]>H[3]{breakout} then begin
Plot4 (L -.0015,"T4",Cyan,0,5); Alert; end;
If TradeType=5 //short
and H[3]>H[2] and H[2]>H[1] and L[3]<L[2] and L[2]<L[1] and L[0]<L[3]{breakout} then begin
Plot5 (H[3] +.0015, "T5", Magenta,0,5); Alert; end;
If TradeType=6
and H[3]>H[2] and C[2]<C[3] and O[1]>C[2] and H[1]>H[3] and H[0]>H[1]{breakout} then begin
Plot6 (L[0]-.0015,"T6",Green,0,5); Alert; end;
If TradeType=7
and L[4]<L[5] and L[3]<L[4] and H[5]>H[4] and H[4]>H[3]
and H[2]<H[3] and H[1]<h[3] and L[2]>L[3] and L[1]>L[3] //and a series of 2 small inside bars
and H[0]>H[4]{breakout} then begin
Plot7 (H[0]+.0015,"T7",DarkBlue,0,5); alert; end;
If TradeType=7.2
and L[5]<L[6] and L[4]<L[5] and H[6]>H[5] and H[5]>H[4]
and H[3]<H[4] and H[2]<H[4] and H[1]<h[4] and L[3]>L[4] and L[2]>L[4] and L[1]>L[4] //and a series of 3 small inside bars
and H[0]>H[4]{breakout} then begin
Plot17 (H[0]+.0015,"T7",DarkCyan,0,5); alert; end;
If TradeType=8
and H[4]<H[3] and C[3]>C[2] and C[2]<C[3] and O[1]<C[2] and C[1]>C[2] and H[0]>H[3]{breakout} then begin
Plot8 (L[0]-.0015,"T6",DarkMagenta,0,5); Alert; end;
If TradeType=9
and H[3]<H[4] and C[3]>C[4] and H[2]>H[3] and C[2]<C[3] and L[1]<L[3] and C[1]>C[3]
and{breakout} H[0]>H[2] then begin
Plot9 (L[0]-.0015,"T6",DarkMagenta,0,5); Alert; end;