Script IQ Option Sobre Patrones de Velas
Script IQ Option Sobre Patrones de Velas
me/eydercifu"
--Canal Telegram: "https://t.me/probabilisticasenbinarias"
--YouTube: "https://www.youtube.com/@pescandobinarias1137"
--"Herramientas Bull Catalogador"
--"Script para fines Educativos"
instrument {
name = 'Patrones de Velas',
icon = 'candlestick',
overlay = true
}
--02 Piercing
input_group {
"Piercing", "Patron de 2 velas que sugiere reversion alcista luego de una
tendencia bajista. La 1era vela es bajista y la 2da abre por debajo del cierre de
la 1era y cierra al menos a la mitad de su rango. Posible Compra.",
PiercingBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
PiercingBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
PiercingVisible = input { default = false, type = input.plot_visibility },
PiercingSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--03 DarkCloudCover
input_group {
"Dark Cloud Cover", "Patron de 2 velas que indica posible cambio de tendencia
alcista a bajista. La 1era vela es alcista y la segunda abre por encima del cierre
de la 1era y cierra al menos a la mitad de su rango. Posible Venta.",
DarkCloudCoverBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
DarkCloudCoverBearArrow = input { default = shape_style.triangledown, type =
input.plot_shape_style},
DarkCloudCoverVisible = input { default = false, type = input.plot_visibility
},
DarkCloudCoverSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--04 Doji
input_group {
"Doji", "Patron de una sola vela con apertura y cierre iguales o muy cercanos.
Indica indecision o posible cambio de tendencia.",
DojiBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
DojiBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
DojiBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
DojiBearArrow = input { default = shape_style.triangledown, type =
input.plot_shape_style},
DojiVisible = input { default = false, type = input.plot_visibility },
DojiSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--05 DojiStar
input_group {
"Doji Star", "Patron Doji que se forma despues de tendencia alcista o bajista.
Puede ser Doji de la Manana o Doji de la Tarde. Indica posible cambio de
tendencia.",
DojiStarBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
DojiStarBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
DojiStarBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
DojiStarBearArrow = input { default = shape_style.triangledown, type =
input.plot_shape_style},
DojiStarVisible = input { default = false, type = input.plot_visibility },
DojiStarSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--06 UpsideTasukiGap
input_group {
"Upside Tasuki Gap", "Patron de 3 velas en tendencia alcista. La 1era y 3era
velas son alcistas, y la 2da es una vela gap que cierra dentro del rango de la 1era
vela. Indica continuidad alcista.",
UpsideTasukiGapBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
UpsideTasukiGapBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
UpsideTasukiGapVisible = input { default = false, type =
input.plot_visibility },
UpsideTasukiGapSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--07 DownsideTasukiGap
input_group {
"Downside Tasuki Gap", "Similar al Upside Tasuki Gap, pero en tendencia
bajista. La 1era y 3era velas son bajistas, y la 2da es una vela gap que se cierra
dentro del rango de la 1era vela. Indica continuidad bajista.",
DownsideTasukiGapBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
DownsideTasukiGapBearArrow = input { default = shape_style.triangledown, type
= input.plot_shape_style},
DownsideTasukiGapVisible = input { default = false, type =
input.plot_visibility },
DownsideTasukiGapSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--08 DragonflyDoji
input_group {
"Dragonfly Doji (Libelula)", "Patron Doji con una mecha superior larga y cuerpo
pequeno o inexistente en la parte inferior. Indica posible reversion alcista.",
DragonflyDojiBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
DragonflyDojiBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
DragonflyDojiBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
DragonflyDojiBearArrow = input { default = shape_style.triangledown, type =
input.plot_shape_style},
DragonflyDojiVisible = input { default = false, type = input.plot_visibility
},
DragonflyDojiSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--09 Engulfing
input_group {
"Engulfing (Envolvente)", "Patron de 2 velas donde la segunda arropa
completamente la 1era. Puede ser Envolvente Alcista o Envolvente Bajista. Indica
posible reversion. Compra si es alcista, venta si es bajista.",
EngulfingBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
EngulfingBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
EngulfingBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
EngulfingBearArrow = input { default = shape_style.triangledown, type =
input.plot_shape_style},
EngulfingVisible = input { default = false, type = input.plot_visibility },
EngulfingSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--10 MorningDojiStar
input_group {
"Morning Doji Star", "Patron de 3 velas que sugiere cambio de tendencia bajista
a alcista. La 2da vela es Doji que se forma entre la 1era y la 3era vela. Indica
posible Compra.",
MorningDojiStarBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
MorningDojiStarBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
MorningDojiStarVisible = input { default = false, type =
input.plot_visibility },
MorningDojiStarSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--11 EveningDojiStar
input_group {
"Evening Doji Star", "Similar a Morning Doji Star, pero indica cambio de
tendencia alcista a bajista. La 2da vela es Doji que se forma entre la 1era y la
3era vela. Indica posible Venta.",
EveningDojiStarBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
EveningDojiStarBearArrow = input { default = shape_style.triangledown, type
= input.plot_shape_style},
EveningDojiStarVisible = input { default = false, type =
input.plot_visibility },
EveningDojiStarSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--12 MorningStar
input_group {
"Morning Star (Estrella de la Manana)", "Patron de 3 velas que sugiere cambio
de tendencia bajista a alcista. La 2da vela es pequena y se forma entre la 1era y
la 3era vela. Indica posible Compra.",
MorningStarBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
MorningStarBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
MorningStarVisible = input { default = false, type = input.plot_visibility
},
MorningStarSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--13 EveningStar
input_group {
"Evening Star (Estrella de la Noche)", "Similar a Morning Star, pero indica
cambio de tendencia alcista a bajista. La 2da vela es pequena y se forma entre la
1era y la 3era vela. Indica posible Venta.",
EveningStarBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
EveningStarBearArrow = input { default = shape_style.triangledown, type =
input.plot_shape_style},
EveningStarVisible = input { default = false, type = input.plot_visibility
},
EveningStarSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--14 RisingThreeMethods
input_group {
"Rising Three Methods", "Patron de 5 velas en tendencia alcista. 3 velas
pequenas estan contenidas dentro del rango de la 1era vela alcista y la ultima vela
es alcista. Indica continuidad alcista.",
RisingThreeMethodsBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
RisingThreeMethodsBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
RisingThreeMethodsVisible = input { default = false, type =
input.plot_visibility },
RisingThreeMethodsSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--15 FallingThreeMethods
input_group {
"Falling Three Methods", "Similar al Rising Three Methods, pero en tendencia
bajista. 3 velas pequenas contenidas dentro del rango de la 1era vela bajista y la
ultima vela es bajista. Indica continuidad bajista.",
FallingThreeMethodsBearColor = input { default = rgba(220, 20, 60,0.8), type
= input.color }, --Crimson color
FallingThreeMethodsBearArrow = input { default = shape_style.triangledown,
type = input.plot_shape_style},
FallingThreeMethodsVisible = input { default = false, type =
input.plot_visibility },
FallingThreeMethodsSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--16 RisingWindow
input_group {
"Rising Window (Ventana Alcista)", "Patron de dos velas en tendencia alcista.
La 2da vela abre por encima del cierre de la 1era, creando un gap alcista. Indica
continuidad alcista.",
RisingWindowBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
RisingWindowBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
RisingWindowVisible = input { default = false, type = input.plot_visibility
},
RisingWindowSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--17 FallingWindow
input_group {
"Falling Window (Ventana Bajista)", "Similar al Rising Window, pero en
tendencia bajista. La 2da vela abre por debajo del cierre de la 1era, creando un
gap bajista. Indica continuidad bajista.",
FallingWindowBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
FallingWindowBearArrow = input { default = shape_style.triangledown, type =
input.plot_shape_style},
FallingWindowVisible = input { default = false, type = input.plot_visibility
},
FallingWindowSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--18 GravestoneDoji
input_group {
"Gravestone Doji", "Patron Doji con mecha superior larga y cuerpo pequeno o
inexistente en la parte inferior. Indica posible reversion bajista.",
GravestoneDojiBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
GravestoneDojiBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
GravestoneDojiBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
GravestoneDojiBearArrow = input { default = shape_style.triangledown, type =
input.plot_shape_style},
GravestoneDojiVisible = input { default = false, type = input.plot_visibility
},
GravestoneDojiSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--19 Hammer
input_group {
"Hammer (Martillo)", "Patron de una vela con mecha inferior larga y cuerpo
pequeno en la parte superior. Indica posible reversion alcista.",
HammerBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
HammerBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
HammerBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
HammerBearArrow = input { default = shape_style.triangledown, type =
input.plot_shape_style},
HammerVisible = input { default = false, type = input.plot_visibility },
HammerSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--20 HangingMan
input_group {
"Hanging Man (Hombre Colgado)", "Similar al Hammer, pero aparece luego de
tendencia alcista. Indica posible reversion bajista.",
HangingManBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
HangingManBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
HangingManBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
HangingManBearArrow = input { default = shape_style.triangledown, type =
input.plot_shape_style},
HangingManVisible = input { default = false, type = input.plot_visibility },
HangingManSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--21 HaramiCross
input_group {
"Harami Cross", "Patron de dos velas; la 1era es grande y la 2da un Doji que se
forma dentro del rango de la primera vela. Indica posible cambio de tendencia.",
HaramiCrossBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
HaramiCrossBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
HaramiCrossBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
HaramiCrossBearArrow = input { default = shape_style.triangledown, type =
input.plot_shape_style},
HaramiCrossVisible = input { default = false, type = input.plot_visibility
},
HaramiCrossSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--22 Harami
input_group {
"Harami", "Similar al Harami Cross, pero la 2da vela es pequena en lugar de un
Doji. Indica posible cambio de tendencia.",
HaramiBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
HaramiBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
HaramiBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
HaramiBearArrow = input { default = shape_style.triangledown, type =
input.plot_shape_style},
HaramiVisible = input { default = false, type = input.plot_visibility },
HaramiSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--23 InvertedHammer
input_group {
"Inverted Hammer (Martillo Invertido)", "Similar al Hammer, pero aparece
despues de una tendencia bajista. Indica una posible reversion alcista.",
InvertedHammerBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
InvertedHammerBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
InvertedHammerBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
InvertedHammerBearArrow = input { default = shape_style.triangledown, type =
input.plot_shape_style},
InvertedHammerVisible = input { default = false, type = input.plot_visibility
},
InvertedHammerSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--24 Kicking
input_group {
"Kicking (Patada)", "Patron de dos velas que sugiere rapido cambio de
tendencia. La 1era vela es grande y alcista y la 2da una vela gap en direccion
opuesta o viceversa.",
KickingBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
KickingBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
KickingBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
KickingBearArrow = input { default = shape_style.triangledown, type =
input.plot_shape_style},
KickingVisible = input { default = false, type = input.plot_visibility },
KickingSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--25 LongLowerShadow
input_group {
"Long Lower Shadow (Mecha Inferior Larga)", "Vela con una mecha inferior larga
respecto al cuerpo. Puede ser alcista o bajista. Indica potencial reversion,
dependiendo direccion de la vela.",
LongLowerShadowBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
LongLowerShadowBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
LongLowerShadowBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
LongLowerShadowBearArrow = input { default = shape_style.triangledown, type
= input.plot_shape_style},
LongLowerShadowVisible = input { default = false, type =
input.plot_visibility },
LongLowerShadowSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--26 LongUpperShadow
input_group {
"Long Upper Shadow (Mecha Superior Larga)", "Vela con una mecha superior larga
respecto al cuerpo. Puede ser alcista o bajista. Indica potencial reversion,
dependiendo direccion de la vela.",
LongUpperShadowBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
LongUpperShadowBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
LongUpperShadowBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
LongUpperShadowBearArrow = input { default = shape_style.triangledown, type
= input.plot_shape_style},
LongUpperShadowVisible = input { default = false, type =
input.plot_visibility },
LongUpperShadowSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--27 MarubozuBlack
input_group {
"Marubozu", "Vela con cuerpo grande y sin mechas (o muy pocas mechas). Indica
fuerte tendencia o continuidad en direccion de la vela.",
MarubozuBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
MarubozuBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
MarubozuBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
MarubozuBearArrow = input { default = shape_style.triangledown, type =
input.plot_shape_style},
MarubozuVisible = input { default = false, type = input.plot_visibility },
MarubozuSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--28 OnNeck
input_group {
"On Neck (Cuello)", "Patron de dos velas donde la 2da vela cierra en el mismo
nivel que el cierre de la 1era vela. Indica falso rompimiento o cambio de
tendencia.",
OnNeckBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
OnNeckBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
OnNeckBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
OnNeckBearArrow = input { default = shape_style.triangledown, type =
input.plot_shape_style},
OnNeckVisible = input { default = false, type = input.plot_visibility },
OnNeckSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--29 ShootingStar
input_group {
"Shooting Star (Estrella Fugaz)", "Vela con mecha superior larga y cuerpo
pequeno en la parte inferior. Aparece luego de tendencia alcista, indicando posible
reversion bajista.",
ShootingStarBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
ShootingStarBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
ShootingStarBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
ShootingStarBearArrow = input { default = shape_style.triangledown, type =
input.plot_shape_style},
ShootingStarVisible = input { default = false, type = input.plot_visibility
},
ShootingStarSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--31 ThreeBlackCrows
input_group {
"Three Black Crows (3 Cuervos Negros)", "Patron de 3 velas bajistas continuas.
Cada vela cierra por debajo del cierre de la anterior. Indica posible cambio de
tendencia.",
ThreeBlackCrowsBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
ThreeBlackCrowsBearArrow = input { default = shape_style.triangledown, type
= input.plot_shape_style},
ThreeBlackCrowsVisible = input { default = false, type =
input.plot_visibility },
ThreeBlackCrowsSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--32 ThreeWhiteSoldiers
input_group {
"Three White Soldiers (3 Soldados Blancos)", "Patron de 3 velas alcistas
continuas. Cada vela cierra por encima del cierre de la anterior. Indica posible
cambio de tendencia.",
ThreeWhiteSoldiersBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
ThreeWhiteSoldiersBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
ThreeWhiteSoldiersVisible = input { default = false, type =
input.plot_visibility },
ThreeWhiteSoldiersSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--33 TriStar
input_group {
"Tri Star (Triple Estrella)", "Patron de tres velas con cuerpos pequenos
contenidos dentro del rango de la 1era vela. Indica indecision o posible
reversion.",
TriStarBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
TriStarBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
TriStarBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
TriStarBearArrow = input { default = shape_style.triangledown, type =
input.plot_shape_style},
TriStarVisible = input { default = false, type = input.plot_visibility },
TriStarSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--34 TweezerBottom
input_group {
"Tweezer Bottom (Pinzas)", "Patron de dos velas con mechas inferiores largas
que forman un fondo o piso. La 1era vela es bajista y la 2da alcista. Operar
posible reversion alcista.",
TweezerBottomBullColor = input { default = rgba(46, 139, 87,0.8), type =
input.color }, --SeaGreen color
TweezerBottomBullArrow = input { default = shape_style.triangleup, type =
input.plot_shape_style},
TweezerBottomBearColor = input { default = rgba(220, 20, 60,0.8), type =
input.color }, --Crimson color
TweezerBottomBearArrow = input { default = shape_style.triangledown, type =
input.plot_shape_style},
TweezerBottomVisible = input { default = false, type = input.plot_visibility
},
TweezerBottomSize = input { default = shape_size.large, type =
input.plot_shape_size },
}
--Calculate
AbandonedBabyBull = AbandonedBabyVisible and open[1] == close[1] and open[2] >
close[2] and open < close and close > (high[2] + low[2])*0.5 and close[2] <
(high+low)*0.5
AbandonedBabyBear = AbandonedBabyVisible and open[1] == close[1] and open[2] <
close[2] and open > close and close < (high[2] + low[2])*0.5 and close[2] >
(high+low)*0.5
plot_shape(AbandonedBabyBull,"AbandonedBabyBull", AbandonedBabyBullArrow,
AbandonedBabySize, AbandonedBabyBullColor, shape_location.belowbar, 0, "Ab",
AbandonedBabyBullColor)
plot_shape(AbandonedBabyBear,"AbandonedBabyBear", AbandonedBabyBearArrow,
AbandonedBabySize, AbandonedBabyBearColor, shape_location.abovebar, 0, "Ab",
AbandonedBabyBearColor)
PiercingBull = PiercingVisible and open[1] > close[1] and open < close
and close > (high[1]+low[1])*0.5 and close[1] < (high+low)*0.5 and open <= close[1]
and low <= low[1]
DarkCloudCoverBear = DarkCloudCoverVisible and open[1] < close[1] and open > close
and close < (high[1]+low[1])*0.5 and close[1] > (high+low)*0.5 and open >= close[1]
and low >= low[1]
plot_shape(PiercingBull,"PiercingBull", PiercingBullArrow,
PiercingSize,PiercingBullColor, shape_location.belowbar, 0, "Pc",
PiercingBullColor)
plot_shape(DarkCloudCoverBear,"DarkCloudCoverBear", DarkCloudCoverBearArrow,
DarkCloudCoverSize,DarkCloudCoverBearColor, shape_location.abovebar, 0, "Dc",
DarkCloudCoverBearColor)
DojiBull = DojiVisible and open == close and iff(open[1] == close[1], open[2] >
close[2], open[1] > close[1])
DojiBear = DojiVisible and open == close and iff(open[1] == close[1], open[2] <
close[2], open[1] < close[1])
plot_shape(DojiBull,"DojiBull", DojiBullArrow, DojiSize,DojiBullColor,
shape_location.belowbar, 0, "Doji", DojiBullColor)
plot_shape(DojiBear,"DojiBear", DojiBearArrow, DojiSize,DojiBearColor,
shape_location.abovebar, 0, "Doji", DojiBearColor)
EngulfingBull = EngulfingVisible and open[1] > close[1] and open < close and close
> open[1] and open < close[1] and abs(open-close) > abs(open[1]-close[1])
EngulfingBear = EngulfingVisible and open[1] < close[1] and open > close and close
< open[1] and open > close[1] and abs(open-close) > abs(open[1]-close[1])
plot_shape(EngulfingBull,"EngulfingBull", EngulfingBullArrow,
EngulfingSize,EngulfingBullColor, shape_location.belowbar, 0, "Engulf",
EngulfingBullColor)
plot_shape(EngulfingBear,"EngulfingBear", EngulfingBearArrow,
EngulfingSize,EngulfingBearColor, shape_location.abovebar, 0, "Engulf",
EngulfingBearColor)
plot_shape(RisingThreeMethodsBull,"RisingThreeMethodsBull",
RisingThreeMethodsBullArrow, RisingThreeMethodsSize,RisingThreeMethodsBullColor,
shape_location.belowbar, 0, "R3", RisingThreeMethodsBullColor)
plot_shape(FallingThreeMethodsBear,"FallingThreeMethodsBear",
FallingThreeMethodsBearArrow, FallingThreeMethodsSize,FallingThreeMethodsBearColor,
shape_location.abovebar, 0, "F3", FallingThreeMethodsBearColor)
RisingWindowBull = RisingWindowVisible and open[1] < close[1] and open < close and
low > high[1] + 0.3*(abs(open[1]-close[1]))
FallingWindowBear = FallingWindowVisible and open[1] > close[1] and open > close
and high < low[1] - 0.3*(abs(open[1]-close[1]))
plot_shape(RisingWindowBull,"RisingWindowBull", RisingWindowBullArrow,
RisingWindowSize,RisingWindowBullColor, shape_location.belowbar, 0, "Rw",
RisingWindowBullColor)
plot_shape(FallingWindowBear,"FallingWindowBear", FallingWindowBearArrow,
FallingWindowSize,FallingWindowBearColor, shape_location.abovebar, 0, "Fw",
FallingWindowBearColor)
HammerBull = HammerVisible and open < close and high-max(open,close) < 0.3 *
(min(open,close)-low) and
min(open,close)-low > 3 * (abs(open-close)) and iff(open[1] ==
close[1], open[2] < close[2], open[1] < close[1])
HammerBear = HammerVisible and open < close and high-max(open,close) < 0.3 *
(min(open,close)-low) and
min(open,close)-low > 3 * (abs(open-close)) and iff(open[1] ==
close[1], open[2] > close[2], open[1] > close[1])
plot_shape(HammerBull,"HammerBull", HammerBullArrow, HammerSize,HammerBullColor,
shape_location.belowbar, 0, "Hmr", HammerBullColor)
plot_shape(HammerBear,"HammerBear", HammerBearArrow, HammerSize,HammerBearColor,
shape_location.abovebar, 0, "Hmr", HammerBearColor)
HangingManBull = HangingManVisible and open > close and high-max(open,close) < 0.3
* (min(open,close)-low) and
min(open,close)-low > 3 * (abs(open-close)) and iff(open[1] ==
close[1], open[2] > close[2], open[1] > close[1])
HangingManBear = HangingManVisible and open > close and high-max(open,close) < 0.3
* (min(open,close)-low) and
min(open,close)-low > 3 * (abs(open-close)) and iff(open[1] ==
close[1], open[2] < close[2], open[1] < close[1])
plot_shape(HangingManBull,"HangingManBull", HangingManBullArrow,
HangingManSize,HangingManBullColor, shape_location.belowbar, 0, "HMan",
HangingManBullColor)
plot_shape(HangingManBear,"HangingManBear", HangingManBearArrow,
HangingManSize,HangingManBearColor, shape_location.abovebar, 0, "HMan",
HangingManBearColor)
HaramiCrossBull = HaramiCrossVisible and open[1] > close[1] and open == close and
close > close[1] and close < open[1] and high-low < high[1]-low[1]
HaramiCrossBear = HaramiCrossVisible and open[1] < close[1] and open == close and
close < close[1] and close > open[1] and high-low < high[1]-low[1]
plot_shape(HaramiCrossBull,"HaramiCrossBull", HaramiCrossBullArrow,
HaramiCrossSize,HaramiCrossBullColor, shape_location.belowbar, 0, "Hrc",
HaramiCrossBullColor)
plot_shape(HaramiCrossBear,"HaramiCrossBear", HaramiCrossBearArrow,
HaramiCrossSize,HaramiCrossBearColor, shape_location.abovebar, 0, "Hrc",
HaramiCrossBearColor)
HaramiBull = HaramiVisible and open[1] > close[1] and abs(open-close) <= 0.3 *
(abs(open[1]-close[1])) and close > close[1] and close < open[1] and high-low <
high[1]-low[1]
HaramiBear = HaramiVisible and open[1] < close[1] and abs(open-close) <= 0.3 *
(abs(open[1]-close[1])) and close < close[1] and close > open[1] and high-low <
high[1]-low[1]
plot_shape(HaramiBull,"HaramiBull", HaramiBullArrow, HaramiSize,HaramiBullColor,
shape_location.belowbar, 0, "Hr", HaramiBullColor)
plot_shape(HaramiBear,"HaramiBear", HaramiBearArrow, HaramiSize,HaramiBearColor,
shape_location.abovebar, 0, "Hr", HaramiBearColor)
KickingBull = KickingVisible and open[1] > close[1] and open < close and open >
open[1] + 0.5 * (abs(open[1]-close[1])) and abs(open-close) >= 0.7 * (high-low)
KickingBear = KickingVisible and open[1] < close[1] and open > close and open <
open[1] - 0.5 * (abs(open[1]-close[1])) and abs(open-close) >= 0.7 * (high-low)
plot_shape(KickingBull,"KickingBull", KickingBullArrow,
KickingSize,KickingBullColor, shape_location.belowbar, 0, "Kck", KickingBullColor)
plot_shape(KickingBear,"KickingBear", KickingBearArrow,
KickingSize,KickingBearColor, shape_location.abovebar, 0, "Kck", KickingBearColor)
MarubozuBull = MarubozuVisible and abs(open-close) >= 0.9 * (high-low) and open <
close
MarubozuBear = MarubozuVisible and abs(open-close) >= 0.9 * (high-low) and open >
close
plot_shape(MarubozuBull,"MarubozuBull", MarubozuBullArrow,
MarubozuSize,MarubozuBullColor, shape_location.belowbar, 0, "Mbz",
MarubozuBullColor)
plot_shape(MarubozuBear,"MarubozuBear", MarubozuBearArrow,
MarubozuSize,MarubozuBearColor, shape_location.abovebar, 0, "Mbz",
MarubozuBearColor)
OnNeckBull = OnNeckVisible and open[1] < close[1] and open > close and close[1] ==
close and abs(open[1]-close[1]) >= 0.5 * (high[1]-low[1]) and abs(open-close) >=
0.5 * (high-low)
OnNeckBear = OnNeckVisible and open[1] > close[1] and open < close and close[1] ==
close and abs(open[1]-close[1]) >= 0.5 * (high[1]-low[1]) and abs(open-close) >=
0.5 * (high-low)
plot_shape(OnNeckBull,"OnNeckBull", OnNeckBullArrow, OnNeckSize,OnNeckBullColor,
shape_location.belowbar, 0, "On", OnNeckBullColor)
plot_shape(OnNeckBear,"OnNeckBear", OnNeckBearArrow, OnNeckSize,OnNeckBearColor,
shape_location.abovebar, 0, "On", OnNeckBearColor)









