Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
26 views4 pages

All Candlestick Patterns Identifier

The document outlines a series of trading signals based on candlestick patterns, using specific conditions to identify various patterns such as 'Dark Cloud Cover', 'Doji', 'Evening Star', and 'Bullish Engulfing'. Each pattern is defined by a set of criteria involving the relationship between the open, close, high, and low prices of candles over different periods. The document includes code snippets for plotting these patterns on a trading chart, indicating potential market movements.

Uploaded by

mrbaravi87
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views4 pages

All Candlestick Patterns Identifier

The document outlines a series of trading signals based on candlestick patterns, using specific conditions to identify various patterns such as 'Dark Cloud Cover', 'Doji', 'Evening Star', and 'Bullish Engulfing'. Each pattern is defined by a set of criteria involving the relationship between the open, close, high, and low prices of candles over different periods. The document includes code snippets for plotting these patterns on a trading chart, indicating potential market movements.

Uploaded by

mrbaravi87
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

instrument{title = "Mamona Candles", overlay = true}

data1=(close[1]>open[1] and abs(close[1]-open[1])/(high[1]-low[1])>=0.7 and


close<open and abs(close-open)/(high-low)>=0.7 and open>=close[1] and close>open[1]
and close<((open[1]+close[1])/2))
plot_shape(data1,"Dark Cloud Cover",'Dark Cloud
Cover',shape_style.arrowdown,shape_size.normal, 'red',shape_location.abovebar)

data2=(abs(close-open)/(high-low)<0.1 and (high-max(close,open))>(3*abs(close-


open)) and (min(close,open)-low)>(3*abs(close-open)))
plotshape(data2,"Doji",'Doji','white',
shape_style.circle,shape_location.belowbar,shape_size.normal)

data3=(close[1]>open[1] and abs(close[1]-open[1])/(high[1]-low[1])>=0.7 and


abs(close-open)/(high-low)<0.1 and close[1]<close and close[1]<open and (high-
max(close,open))>(3*abs(close-open)) and (min(close,open)-low)>(3*abs(close-open)))
plotshape(data3,"Doji Star",'DojiStar','red',
shape_style.arrowdown,shape_location.abovebar,shape_size.normal)

data4=(abs(close-open)/(high-low)<0.1 and (min(close,open)-low)>(3*abs(close-open))


and (high-max(close,open))<abs(close-open))
plotshape(data4,"Dragonfly Doji",'DragonflyDoji','green',
shape_style.arrowup,shape_location.belowbar,shape_size.normal)

data5=(close[2]>open[2] and abs(close[2]-open[2])/(high[2]-low[2])>=0.7 and


0.3>abs(close[1]-open[1])/(high[1]-low[1])>=0.1 and close<open and abs(close-
open)/(high-low)>=0.7 and close[2]<close[1] and close[2]<open[1] and close[1]>open
and open[1]>open and close<close[2])
plotshape(data5,"Evening Star",'EveningStar','red',
shape_style.arrowdown,shape_location.abovebar,shape_size.normal)

data6=(close[2]>open[2] and abs(close[2]-open[2])/(high[2]-low[2])>=0.7 and


abs(close[1]-open[1])/(high[1]-low[1])<0.1 and close<open and
abs(close-open)/(high-low)>=0.7 and close[2]<close[1] and close[2]<open[1] and
close[1]>open and open[1]>open and close<close[2] and (high[1]-
max(close[1],open[1]))>(3*abs(close[1]-open[1])) and (min(close[1],open[1])-
low[1])>(3*abs(close[1]-open[1])))
plotshape(data6,"Evening Star
Doji",'EveningStarDoji','red',shape_style.arrowdown,shape_location.abovebar,shape_s
ize.normal)

data7=(abs(close-open)/(high-low)<0.1 and (high-max(close,open))>(3*abs(close-


open)) and (min(close,open)-low)<=abs(close-open))
plotshape(data7,"Gravestone Doji",'GravestoneDoji','red',
shape_style.arrowdown,shape_location.abovebar,shape_size.normal)

data8=(close<open and 0.3>abs(close-open)/(high-low)>=0.1 and (min(close,open)-


low)>=(2*abs(close-open)) and (high-max(close,open))>(0.25*abs(close-open)))
plotshape(data8,"Hanging Man Red",'HangingMan','red',
shape_style.arrowdown,shape_location.abovebar,shape_size.normal)

data9=(close>open and 0.3>abs(close-open)/(high-low)>=0.1 and (min(close,open)-


low)>=(2*abs(close-open)) and (high-max(close,open))>(0.25*abs(close-open)))
plotshape(data9,"Hanging Man Green",'HangingMan','red',
shape_style.arrowdown,shape_location.abovebar,shape_size.normal)

data10=(close[2]<open[2] and abs(close[2]-open[2])/(high[2]-low[2])>=0.7 and


0.3>abs(close[1]-open[1])/(high[1]-low[1])>=0.1 and close>open and abs(close-
open)/(high-low)>=0.7 and close[2]>close[1] and close[2]>open[1] and close[1]<open
and open[1]<open and close>close[2])
plotshape(data10,"Morning Star",'MorningStar','green',
shape_style.arrowup,shape_location.belowbar,shape_size.normal)

data11=(close[2]<open[2] and abs(close[2]-open[2])/(high[2]-low[2])>=0.7 and


abs(close[1]-open[1])/(high[1]-low[1])<0.1 and close>open and
abs(close-open)/(high-low)>=0.7 and close[2]>close[1] and close[2]>open[1] and
close[1]<open and open[1]<open and close>close[2] and (high[1]-
max(close[1],open[1]))>(3*abs(close[1]-open[1])) and (min(close[1],open[1])-
low[1])>(3*abs(close[1]-open[1])))
plotshape(data11,"Morning Star Doji",'MorningStarDoji','green',
shape_style.arrowup,shape_location.belowbar,shape_size.normal)

data12=(close[1]<open[1] and abs(close[1]-open[1])/(high[1]-low[1])>=0.7 and


close>open and abs(close-open)/(high-low)>=0.7 and open<=close[1] and close<open[1]
and close<((open[1]+close[1])/2))
plotshape(data12,"Piercieng Pattern",'PiercingPattern','green',
shape_style.arrowup,shape_location.belowbar,shape_size.normal)

data13=(close[1]<open[1] and abs(close[1]-open[1])/(high[1]-low[1])>=0.7 and


0.3>abs(close-open)/(high-low)>=0.1 and close[1]>close and close[1]>open)
plotshape(data13,"Raindrop",'Raindrop','green',
shape_style.arrowup,shape_location.belowbar,shape_size.normal)

data14=(close[1]<open[1] and abs(close[1]-open[1])/(high[1]-low[1])>=0.7 and


abs(close-open)/(high-low)<0.1 and close[1]>close and close[1]>open and (high-
max(close,open))>(3*abs(close-open)) and (min(close,open)-low)>(3*abs(close-open)))
plotshape(data14,"Raindrop Doji",'RaindropDoji','green',
shape_style.arrowup,shape_location.belowbar,shape_size.normal)

data15=(close<open and 0.3>abs(close-open)/(high-low)>=0.1 and (high-


max(close,open))>=(2*abs(close-open)) and (min(close,open)-low)<=(0.25*abs(close-
open)))
plotshape(data15,"Inverted Hammer Red",'InvertedHammer','green',
shape_style.arrowup,shape_location.belowbar,shape_size.normal)

data16=(close>open and 0.3>abs(close-open)/(high-low)>=0.1 and (high-


max(close,open))>=(2*abs(close-open)) and (min(close,open)-low)<=(0.25*abs(close-
open)))
plotshape(data16,"Inverted Hammer Green",'InvertedHammer','green',
shape_style.arrowup,shape_location.belowbar,shape_size.normal)

data17=(close[1]>open[1] and abs(close[1]-open[1])/(high[1]-low[1])>=0.7 and


0.3>abs(close-open)/(high-low)>=0.1 and close[1]<close and close[1]<open)
plotshape(data17,"Star",'Star','red',
shape_style.arrowdown,shape_location.abovebar,shape_size.normal)

data18=(close[1]>open[1] and abs(close[1]-open[1])/(high[1]-low[1])>=0.7 and


close<open and abs(close-open)/(high-low)>=0.7 and open>=close[1] and
close<close[1] and close>=((open[1]+close[1])/2))
plotshape(data18,"Bearish Thrusting",'BearishThrusting','red',
shape_style.arrowdown,shape_location.abovebar,shape_size.normal)

data19=(close[1]<open[1] and abs(close[1]-open[1])/(high[1]-low[1])>=0.7 and


close>open and abs(close-open)/(high-low)>=0.7 and open<=close[1] and
close>close[1] and close<=((open[1]+close[1])/2))
plotshape(data19,"Bullish Thrusting Pattern",'BullishThrusting','green',
shape_style.arrowup,shape_location.belowbar,shape_size.normal)
data20=(close[1]<open[1] and abs(close[1]-open[1])/(high[1]-low[1])>=0.7 and
close<open and 0.3>abs(close-open)/(high-low)>=0.1 and abs(low/low[1]-1)<0.05 and
abs(close-open)<2*(min(close,open)-low))
plotshape(data20,"Tweezers Bottom",'TweezersBottom','green',
shape_style.arrowup,shape_location.belowbar,shape_size.normal)

data21=(close[1]>open[1] and abs(close[1]-open[1])/(high[1]-low[1])>=0.7 and


close>open and 0.3>abs(close-open)/(high-low)>=0.1 and abs(high/high[1]-1)<0.05 and
abs(close[1]-open[1])<2*(high[1]-max(close[1],open[1])))
plotshape(data21,"Tweezers Top",'TweezersTop','red',
shape_style.arrowdown,shape_location.abovebar,shape_size.normal)

data22=(close[3]<open[3] and abs(close[3]-open[3])/(high[3]-low[3])>=0.7 and


close[2]>open[2] and 0.3>abs(close[2]-open[2])/(high[2]-low[2])>=0.1 and
close[1]>open[1] and 0.3>abs(close[1]-open[1])/(high[1]-low[1])>=0.1 and close>open
and abs(close-open)/(high-low)>=0.7 and close[2]>close[1] and close[1]>close[3] and
open[2]<close[3] and open[1]<close[3] and close>((open[3]+close[3])/2))
plotshape(data22,"Tower Bottom",'TowerBottom','green',
shape_style.arrowup,shape_location.belowbar,shape_size.normal)

data23=(close[3]>open[3] and abs(close[3]-open[3])/(high[3]-low[3])>=0.7 and


close[2]<open[2] and 0.3>abs(close[2]-open[2])/(high[2]-low[2])>=0.1 and
close[1]<open[1] and 0.3>abs(close[1]-open[1])/(high[1]-low[1])>=0.1 and close<open
and abs(close-open)/(high-low)>=0.7 and close[2]<close[1] and close[1]<close[3] and
open[2]>close[3] and open[1]>close[3] and close<((open[3]+close[3])/2))
plotshape(data23,"Tower Top",'TowerTop','red',
shape_style.arrowdown,shape_location.abovebar,shape_size.normal)

data24=(close[1]<open[1] and 0.7>abs(close[1]-open[1])/(high[1]-low[1])>=0.3 and


close>open and 0.7>abs(close-open)/(high-low)>=0.3 and close<=close[1] and
close>low[1])
plotshape(data24,"Bullish In Neck",'BullishInNeck','green',
shape_style.arrowup,shape_location.belowbar)

data25=(close[1]>open[1] and 0.7>abs(close[1]-open[1])/(high[1]-low[1])>=0.3 and


close<open and 0.7>abs(close-open)/(high-low)>=0.3 and close>=close[1] and
close<high[1])
plotshape(data25,"Bearish In Neck",'BearishInNeck','red',
shape_style.arrowdown,shape_location.abovebar,shape_size.normal)

data26=(close[1]>open[1] and 0.7>abs(close[1]-open[1])/(high[1]-low[1])>=0.3 and


close<open and 0.7>abs(close-open)/(high-low)>=0.3 and open<=open[1] and
open>low[1])
plotshape(data26,"Bullish Separating Lines",'BullishSeparatingLines','green',
shape_style.arrowup,shape_location.belowbar,shape_size.normal)

data27=(close[1]<open[1] and 0.7>abs(close[1]-open[1])/(high[1]-low[1])>=0.3 and


close>open and 0.7>abs(close-open)/(high-low)>=0.3 and open>=open[1] and
open<high[1])
plotshape(data27,"Bearish Separating Lines",'BearishSeparatingLines','red',
shape_style.arrowdown,shape_location.abovebar,shape_size.normal)

data28=(close[1]<open[1] and abs(close[1]-open[1])/(high[1]-low[1])>=0.7 and


0.3>abs(close-open)/(high-low)>=0.1 and high<open[1] and low>close[1])
plotshape(data28,"Bullish Harami",'BullishHarami','green',
shape_style.arrowup,shape_location.belowbar,shape_size.normal)

data29=(close[1]>open[1] and abs(close[1]-open[1])/(high[1]-low[1])>=0.7 and


0.3>abs(close-open)/(high-low)>=0.1 and high<close[1] and low>open[1])
plotshape(data29,"Bearish Harami",'BearishHarami','red',
shape_style.arrowdown,shape_location.abovebar,shape_size.normal)

data30=(close[1]<open[1] and 0.3>abs(close[1]-open[1])/(high[1]-low[1])>=0.1 and


close>open and abs(close-open)/(high-low)>=0.7 and high[1]<close and low[1]>open)
plotshape(data30,"Bullish Engulfing",'BullishEngulfing','green',
shape_style.arrowup,shape_location.belowbar,shape_size.normal)

data31=(close[1]>open[1] and 0.3>abs(close[1]-open[1])/(high[1]-low[1])>=0.1 and


close<open and abs(close-open)/(high-low)>=0.7 and high[1]<open and low[1]>close)
plotshape(data31,"Bearish Engulfing",'BearishEngulfing','red',
shape_style.arrowdown,shape_location.abovebar,shape_size.normal)

data32=(abs(close[1]-open[1])/(high[1]-low[1])<0.1 and close>open and abs(close-


open)/(high-low)>=0.7 and high[1]<close and low[1]>open and (high[1]-
max(close[1],open[1]))>(3*abs(close[1]-open[1])) and (min(close[1],open[1])-
low[1])<=abs(close[1]-open[1]))
plotshape(data32,"Doji Bullish Engulfing",'DojiBullishEngulfing','green',
shape_style.arrowup,shape_location.belowbar,shape_size.normal)

data33=(abs(close[1]-open[1])/(high[1]-low[1])<0.1 and close<open and abs(close-


open)/(high-low)>=0.7 and high[1]<open and low[1]>close and (high[1]-
max(close[1],open[1]))>(3*abs(close[1]-open[1])) and (min(close[1],open[1])-
low[1])<=abs(close[1]-open[1]))
plotshape(data31,"Doji Bearish Engulfing",'DojiBearishEngulfing','red',
shape_style.arrowdown,shape_location.abovebar,shape_size.normal)

You might also like