0% found this document useful (0 votes)
29 views1 page

Heikin Ashi Indicator Script

This document defines an indicator called BLUERED that plots blue circles below bullish candlesticks and red circles above bearish candlesticks using user-defined color inputs. It takes the current ticker as a security, compares the current candle to the previous one, and plots shapes below or above the candle using the specified colors depending on whether the candle is bullish or bearish.

Uploaded by

Dario Ruiz
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)
29 views1 page

Heikin Ashi Indicator Script

This document defines an indicator called BLUERED that plots blue circles below bullish candlesticks and red circles above bearish candlesticks using user-defined color inputs. It takes the current ticker as a security, compares the current candle to the previous one, and plots shapes below or above the candle using the specified colors depending on whether the candle is bullish or bearish.

Uploaded by

Dario Ruiz
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

instrument {overlay = true,

name = 'BLUERED',
short_name = 'BLUERED',
icon="indicators:ADX"}

input_group { "BLUE - UP COLOR", call_color = input { default="#00FFFF", type =


[Link] } }
input_group { "RED - DOWN COLOR", put_color = input { default="#FF00FF", type =
[Link] } }

sec = security(current_ticker_id, "1m")

if ((close[1] < open[1]) and (close > open) and (close > high[1])) then

plot_shape(1,
'bull_Heikin',
shape_style.circle,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"Blue",
call_color )
else
if ((close[1] > open[1]) and (close < open) and (close < low[1])) then

plot_shape(1,
'bear_Heikin',
shape_style.circle,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"Red",
put_color)
end
end

You might also like