Engulfing Pattern Indicator
Engulfing Pattern Indicator
--
-- Available Configuration:
-- RSI period
-- Color scheme.
-- Visibility
-- Repo: https://github.com/Muhammad-1990/iqoption
-- The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
instrument {
short_name = 'EngulfPattern',
icon = 'indicators:Fractal',
overlay = true
input_group {
"BUY",
input_group {
"SELL",
input_group {
"RSI",
}
input_group {
"Fast",
input_group {
"Medium",
input_group {
"Slow",
input_group {
"Trend fill",
end
if Show_medium == true then
end
end
-- Check if current candle is green and previous is red and current is bigger
than previous.
,"BuyEng"
,shape_style.triangleup
,shape_size.tiny
,buy_color
,shape_location.belowbar
,0
,""
,buy_color
,"SellEng"
,shape_style.triangledown
,shape_size.tiny
,sell_color
,shape_location.abovebar
,0
,""
,sell_color
,shape_style.triangleup
,shape_size.normal
,buy_color
,shape_location.belowbar
,0
,""
,buy_color
,"Sell3LS"
,shape_style.triangledown
,shape_size.normal
,sell_color
,shape_location.abovebar
,0
,""
,sell_color
if upTrend[0] and
or
(close[3] < open[3] and close[2] < open[2] and close[1] < open[1] and
close > open and abs(close - open) > abs(open[1] - close[1]))
) then
StopLoss = lowest(low, 3)
rect {
first = StopLoss,
second = close[0],
name = "myStopLoss",
width = 1
rect {
first = close[0],
second = TakeProfit,
name = "myTakeProfit",
width = 1
end
if downTrend[0] and
or
(close[3] > open[3] and close[2] > open[2] and close[1] > open[1] and
close < open and abs(open - close) > abs(close[1] - open[1]))
)then
StopLoss = highest(high, 3)
rect {
first = StopLoss,
second = close[0],
name = "myStopLoss",
width = 1
rect {
first = close[0],
second = TakeProfit,
name = "myTakeProfit",
width = 1
end
end