The Stinkfist strategy is a trading strategy implemented in a backtesting website. Here is a brief description of what the strategy does:
The strategy begins by populating various indicators on the trading data, such as RMI (Relative Momentum Index), MAC (Moving Average Crossover), streak, PCC (Percentage Channel Crossover), ROC (Rate of Change), and MP (Moving Average of ROC). These indicators are calculated based on specific parameters and formulas.
Next, the strategy defines conditions for triggering a buy signal.
If there is an active trade, it considers factors such as RMI trend, current profit, and peak profit.
If there is no active trade, it considers conditions such as price relative to the low of the previous 3 days, MP value, streak-ROC relationship, and MAC value. The strategy also checks for positive volume. For sell signals, the strategy again considers an active trade and conditions related to profit, RMI trend, and volume. It also takes into account other trades and their profitability, including the biggest loser. If there are no other trades, it checks for negative volume. The strategy includes additional custom methods to handle trade data, such as retrieving active trades, calculating profit ratios, and determining open minutes and candles. It also includes a method to fetch the current price, either from a cache or using order book or ticker data. Lastly, the strategy defines custom indicators, although the details of these indicators are not provided in the code snippet. Overall, the Stinkfist strategy combines various technical indicators and conditions to generate buy and sell signals based on the analyzed trading data.