Moving Average Exponential crossover with bullish RSI signals

When the market is giving the signals for bullish trend , which shows the shorter period exponential(20) moving average crossing the longer period moving average(50), with a strength shown in the market i.e. RSI greater than 40 .

So when all these conditions are met a buy signal is generated in output (Output of Ema cross and Rsi ) having value as 1.
So a trader can enter into a long position when the value is 1 and exits a stock when value is 0.

This script is not to be used for selling the stocks in downtrend

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 a publication is governed by House Rules. You can favorite it to use it on a chart.