Zeus Strategy is a trading strategy designed for backtesting purposes. It is the first generation of the GodStra Strategy and aims to maximize the average and mid profit in USDT. The strategy is authored by @Mablue (Masoud Azizi) and can be found on GitHub at https://github.com/mablue/.
To run the strategy, it is important to install the "ta" library before execution.
The strategy utilizes various libraries such as pandas, ta, qtpylib, and numpy for data manipulation and technical analysis calculations.
The strategy, named Zeus1, implements specific parameters for buying and selling. The buy parameters include a categorical parameter ("buy_cat") and a real parameter ("buy_real"). The sell parameters include a categorical parameter ("sell_cat") and a real parameter ("sell_real"). These parameters determine the conditions for executing buy and sell orders based on comparison operators and predefined values. Additionally, the strategy defines a minimal return on investment (ROI) table, which specifies the target returns at different time intervals. It also sets a stop loss value to limit potential losses. The strategy uses the 4-hour timeframe for analyzing market data. It implements technical indicators such as the Ichimoku Base Line and the Know Sure Thing (KST) indicator. The populate_indicators() function calculates these indicators and normalizes their values. The populate_buy_trend() and populate_sell_trend() functions define the buying and selling conditions based on the calculated indicators and the predefined parameters. Overall, the Zeus Strategy aims to optimize trading decisions by utilizing technical analysis indicators and predefined parameters for buying and selling. It is designed for backtesting trading strategies on a website.