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.
In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.