OPEN-SOURCE SCRIPT

Long and Short Positions on EMA and Pivot Cross with Candle Size


This Pine Script indicator identifies long and short trading signals based on specific criteria involving candle body size, EMA, and pivot levels.

Long Position ("Buy" Signal): A "Buy" signal is triggered when a green candle (close > open) with a body size of at least 10 crosses above the 9 EMA and any of the daily pivot levels (R1, R2, R3, R4, R5, S1, S2, S3, S4, S5).

Short Position ("Sell" Signal): A "Sell" signal is triggered when a red candle (close < open) with a body size of at least 10 crosses below the 9 EMA and any of the pivot levels.

The script plots only the "Buy" and "Sell" signals on the chart, without displaying the EMA or pivot levels.
Candlestick analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer