Based on the request.
https://fxcodebase.com/code/viewtopic.p ... 66#p149166MACD Slope.lua
https://fxcodebase.com/code/viewtopic.p ... 87#p158787MACD Slope Strategy – Trading Rules (Short Summary)
Buy Signal:
When the MACD Slope crosses above the zero line (from negative to positive), a buy is triggered.
Sell Signal:
When the MACD Slope crosses below the zero line (from positive to negative), a sell is triggered.
Exit Rule:
Positions are closed when the MACD Slope crosses in the opposite direction.