Alex_K13

Custom Candle Body Color and EMA Crossover Indicator

We determine if the price is below EMA 9 by comparing the close price with EMA 9.
We determine if the current candle body is huge compared to the previous candle's body.
We plot EMA 9 in black color and EMA 200 in green color.
We plot blue triangles below the bars for EMA crossover above and red triangles above the bars for EMA crossover below.
We set the color of the candle body to red if the price is below EMA 9 and to green if the price is above EMA 9, only when the current candle body is huge compared to the previous candle's body.
Skript med en öppen källkod

I sann TradingView-anda har författaren publicerat detta skript med öppen källkod så att andra handlare kan förstå och verifiera det. Hatten av för författaren! Du kan använda det gratis men återanvändning av den här koden i en publikation regleras av våra ordningsregler. Du kan ange den som favorit för att använda den i ett diagram.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här skriptet i ett diagram?