OPEN-SOURCE SCRIPT

EMA Buy Signal

81
Plot EMAs: Plot the 9 and 15 EMAs on the chart.

Candle Conditions: Identify candles that form on the EMA and are crossed by the next candle.

Buy Signal: Generate a "Buy" signal when the next candle crosses the previous candle.

Stop Loss: Use the previous candle's low as the stop loss and label it as "SL".

Target: Calculate the target as 2x the stop loss points and label it as "TGT".

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.