OPEN-SOURCE SCRIPT
Buy/Sell Signals: SMA + Volume + Trade Profit

This indicator generates buy and sell signals using SMA 150, SMA 50, candle color, and volume conditions.
A buy signal appears when a green candle closes above the SMA 150, remains within the selected maximum percentage above it, closes above the SMA 50, and has above-average volume.
A sell signal appears on the first candle that closes below the SMA 50 after a buy signal.
The indicator tracks each completed trade and displays the profit/loss percentage on the sell candle. It also includes a summary table showing trade count, average profit, total compounded profit, average yearly profit, time spent in trades, and yearly capital-efficiency adjusted for exposure time.
The checked time period is configurable in years.
A buy signal appears when a green candle closes above the SMA 150, remains within the selected maximum percentage above it, closes above the SMA 50, and has above-average volume.
A sell signal appears on the first candle that closes below the SMA 50 after a buy signal.
The indicator tracks each completed trade and displays the profit/loss percentage on the sell candle. It also includes a summary table showing trade count, average profit, total compounded profit, average yearly profit, time spent in trades, and yearly capital-efficiency adjusted for exposure time.
The checked time period is configurable in years.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.