ema pullback signalls

Job ID: 35829288

Budget: $25 – $50 USD

almost finished with my custom script, the only thing i need is:

to make it so each 'bullish trend' begins with a 'buy signal' and not a 'sell' ; and each bearish trend to begin with a 'sell signal' and not a buy.
Related categories: Coding Pine Script