Guide
How does the Equity Curve Trading with EMA strategy work ?
The Equity Curve Trading with EMA (Exponential Moving Average) strategy modifies the execution of classic trading strategies based on the trajectory of equity curve. Utilizing the SuperTrend indicator on the 4-hour BTCUSDT chart, this strategy overlays an EMA on the equity curve drawn from the net profits of executed trades. The primary concept behind this strategy is to halt trading when the equity curve falls below the EMA, indicating a potential downturn in strategy performance, and only resume when the equity curve trends above the EMA.
Upon implementing this strategy, trades are executed normally until a change in the equity curve demands adjustment. Two primary states dictate the strategy's actions: If the most recent net profit is less than the moving average, no new trades are initiated. Conversely, if the net profit is above the moving average, trading continues as per the signals given by the SuperTrend indicator.
Statistical outcomes such as the number of total, winning, and losing trades as well as the net profit are dynamically displayed in a table. The script computes an alternative equity curve that filters trading signals based on their alignment with the EMA, potentially reducing the frequency of trades during less favorable periods. This approach aims to refine the effectiveness of the core strategy by selectively participating in the market.