This script is dynamic support & resistance based on MACD cross.
Resistance= Highest value of candle looks back when MACD crossunder.
Support= Lowest value of candle looks back when MACD crossover.
Middle line is average of Resistance and Support.
Buy when close, LSMA and SMMA crossover middle line. Please use Green Trend Line as SL or Trailing. Sell when close, LSMA and SMMA crossunder middle line. Please use Red Trend Line as SL or Trailing.
Let me know if its useful for you in the comments and by giving Like (means a lot to me). Also share your feedback and ideas to improve this script further.