169 lines
10 KiB
Markdown
169 lines
10 KiB
Markdown
|
|
> Name
|
|
|
|
基于中国农历的比特币交易策略Bitcoin-Trading-Strategy-Based-on-Chinese-Zodiac-Calendar
|
|
|
|
> Author
|
|
|
|
ChaoZhang
|
|
|
|
> Strategy Description
|
|
|
|

|
|
这里返回您要求的中英文文章内容:
|
|
|
|
[trans]
|
|
|
|
### 概述
|
|
|
|
该策略通过结合中国传统农历的12生肖轮回,发出“看涨”、“看跌”及“观望态度三大信号,为比特币交易者提供独特的市场视角。当出现看涨信号时,建议开仓做多;当出现看跌信号时,建议开仓做空;当出现观望信号时,建议暂时观望,不要盲目开仓。
|
|
|
|
### 策略原理
|
|
|
|
该策略的核心逻辑是通过计算每根K线所在年份除以12的余数,判断当前处于中国农历的哪一个生肖年。根据历史数据统计,属鼠、牛、虎、兔、龙、蛇的年份,比特币市场往往处于上升趋势;属马、羊、猴、鸡、狗、猪的年份,比特币市场往往处于下降趋势。因此策略根据余数,给出不同的交易信号。
|
|
|
|
当计算出的年份余数为0、1、4、5、8、9时,即为上升趋势的生肖年,策略会显示“看涨”的信号,建议开仓做多,以获利于比特币市场的上涨。
|
|
|
|
当计算出的年份余数为2、6、10时,即为下降趋势的生肖年,策略会显示“看跌”的信号,建议开仓做空,以获利于比特币市场的下跌。
|
|
|
|
当计算出的年份余数为3、7、11时,即为震荡不明的生肖年,策略会显示“观望”的信号,建议暂时观望市场,不盲目开仓,避免不必要的损失。
|
|
|
|
### 优势分析
|
|
|
|
该策略最大的优势在于提供了一个完全不同于技术分析和基本面分析的独特视角。中国农历生肖文化历史悠久,融合了中国古代对市场和经济运行的深刻理解。生肖年的判断没有死板的公式,而是通过历史轮回的模式识别。这为比特币交易决策提供了宝贵的参考。
|
|
|
|
这种交易策略简单易操作,代码量少,资源消耗低,可以广泛应用到不同类型的交易系统中。它不需要复杂的计算和参数优化,降低了策略实现的难度,使更多交易者能够接触和使用。
|
|
|
|
### 风险分析
|
|
|
|
该策略最大的风险在于,生肖年判断的准确性无法得到严格的验证和计量。中国农历生肖文化中蕴含的历史智慧,很难用数据进行证明。因此在实际使用时,需要谨慎参考,不能完全依赖生肖年的模式来进行交易。
|
|
|
|
另一个风险点在于,即使从概率上判断生肖年的上涨概率更高,但个别年份也可能出现反转。这就需要交易者结合更多信息进行综合判断,而不要依赖某一种交易信号。
|
|
|
|
此外,过于依赖该策略的交易信号,也很容易形成herding effect,从而导致巨大的系统性风险。这一点也需要引起足够的重视。
|
|
|
|
### 优化方向
|
|
|
|
该策略的优化方向主要有两个:
|
|
|
|
第一是丰富生肖年的判断规则。可以考虑结合阴阳五行、三奇六凶等更多中国古典哲学理论,使生肖年的模式判断更加立体和全面,也更符合中国文化传统。
|
|
|
|
第二是与其他因子或模型进行组合。单一的生肖年判断很难确保交易决策的准确性。需要将其与技术指标、经济环境判断等其他模型组合使用,形成更加稳健的决策体系,降低错误率。
|
|
|
|
### 总结
|
|
|
|
基于中国农历生肖年的比特币交易策略,开辟了一个全新的策略视角。它为交易决策提供了非常有价值的参考,让交易者能够跳出技术分析和基本面分析的框架,从更高的维度审视市场。但也需要意识到其局限性,避免完全依赖该策略带来的风险。仅作为重要的参考因子之一来使用,并与其他模型和指标组合,才能发挥生肖年判断的最大效用。
|
|
|
|
||
|
|
|
|
### Overview
|
|
|
|
This strategy combines the 12 Chinese Zodiac animals' cycle in the traditional Chinese lunar calendar to generate three key signals: Bullish, Bearish and Sitting on the Fence. These signals offer Bitcoin traders a unique perspective on market conditions:
|
|
|
|
Bullish signal indicates a potential uptrend in Bitcoin market, suggesting opportunities for long positions.
|
|
|
|
Bearish signal warns of a potential downturn, advising caution or considering short positions.
|
|
|
|
Sitting on the fence signal recommends a neutral stance, ideal for times of uncertainty.
|
|
|
|
This strategy exclusively targets Bitcoin traders, harnessing the power of Chinese Zodiac to inform BTC trading decisions. Explore this innovative approach to unlock new insights for your Bitcoin trading journey.
|
|
|
|
### Strategy Logic
|
|
|
|
The core logic of this strategy calculates the remainder of the K-line year divided by 12 to determine which Chinese zodiac year the bar is located in. According to historical data, years of Rat, Ox, Tiger, Rabbit, Dragon and Snake have seen Bitcoin market in upward trends; while years of Horse, Goat, Monkey, Rooster, Dog and Pig have seen downward trends. Therefore, the strategy gives out different trading signals based on the calculated remainder.
|
|
|
|
When the remainder of the year is 0, 1, 4, 5, 8, or 9, they are zodiac years with upward trends. The strategy will display a "Bullish" signal and suggest taking long positions to profit from Bitcoin market rises.
|
|
|
|
When the remainder is 2, 6 or 10, they are zodiac years with downward trends. The strategy will display a "Bearish" signal and suggest taking short positions to profit from drops in Bitcoin market.
|
|
|
|
When the remainder is 3, 7 or 11, they are uncertain zodiac years. The strategy will display a "Sitting on the Fence" signal and suggest refraining from opening positions blindly to avoid unnecessary losses.
|
|
|
|
### Advantage Analysis
|
|
|
|
The biggest advantage of this strategy is that it provides a completely different perspective from technical analysis or fundamental analysis. The Chinese zodiac culture has a long history and incorporates ancient Chinese wisdom on market and economic cycles. The identification of zodiac years relies on pattern recognition of historical cycles instead of rigid formulas. This offers valuable references for Bitcoin trading decisions.
|
|
|
|
This trading strategy features simplicity, low code volume, minimal resource consumption and wide applicability to different trading systems. It requires no complex calculation or parameter optimization, lowering the difficulty of implementation for more traders to utilize it.
|
|
|
|
### Risk Analysis
|
|
|
|
The biggest risk is that the accuracy of zodiac year judgment cannot be strictly verified or quantified. The historical wisdom contained in the Chinese zodiac culture is hard to prove with data. Therefore, it should be used prudently as reference, not as the sole reliance for trading decisions.
|
|
|
|
Another risk is that while zodiac years have higher upward probability in general, occasional reversals may still occur in individual years. This requires traders to incorporate more information for sound judgment, not just rely on one trading signal.
|
|
|
|
Over-reliance on the trading signals can also easily lead to herding effect, incurring huge systemic risks. Adequate attention should be given to this aspect.
|
|
|
|
### Optimization Directions
|
|
|
|
There are two main directions to optimize this strategy:
|
|
|
|
First, enrich the zodiac year judgment rules. More Chinese classical theories like Yin Yang five elements, San Qi Liu Xiong can be integrated to form a more well-rounded assessment of zodiac years that better aligns with Chinese cultural traditions.
|
|
|
|
Second, combine with other factors or models. Relying solely on zodiac years has its limitations in ensuring accurate decisions. The strategy should be used together with technical indicators, economic environment evaluation models etc to create a more robust system and reduce errors.
|
|
|
|
### Conclusion
|
|
|
|
The Bitcoin trading strategy based on Chinese zodiac calendar pioneers an innovative strategic perspective. It provides valuable references for trading decisions by enabling traders to break out of the frameworks of technical and fundamental analysis, to examine the market from a higher dimension. But its limitations should also be acknowledged to avoid risks associated with over-reliance. Only as one important reference factor instead of the sole basis for decisions, and only when used in combination with other models and indicators, can the zodiac calendar produce its maximum utility.
|
|
|
|
|
|
[/trans]
|
|
|
|
|
|
|
|
> Source (PineScript)
|
|
|
|
``` javascript
|
|
/*backtest
|
|
start: 2022-11-20 00:00:00
|
|
end: 2022-12-31 05:20:00
|
|
period: 1d
|
|
basePeriod: 1h
|
|
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
|
|
*/
|
|
|
|
//@version=5
|
|
strategy("Chinese Zodiac Calendar Strategy", shorttitle="CZC Strategy", overlay=true)
|
|
|
|
// Calculate digit of year for each bar
|
|
yearDigit = year % 12
|
|
|
|
// Define trading conditions based on the year's digit
|
|
isBullYear = yearDigit == 0 or yearDigit == 1 or yearDigit == 4 or yearDigit == 5 or yearDigit == 8 or yearDigit == 9
|
|
isBearYear = yearDigit == 2 or yearDigit == 6 or yearDigit == 10
|
|
isFlatYear = yearDigit == 3 or yearDigit == 7 or yearDigit == 11
|
|
|
|
// Set the label color based on trading conditions
|
|
labelColor = isBullYear ? color.green : (isBearYear ? color.red : color.yellow)
|
|
|
|
// Set the text for the trading label based on trading conditions
|
|
tradingConditionText = isBullYear ? 'Bull' : (isBearYear ? 'Bear' : 'Flat')
|
|
|
|
// Set the background color based on trading conditions
|
|
bgcolor(isBullYear ? color.new(color.green, 90) : na)
|
|
bgcolor(isBearYear ? color.new(color.red, 90) : na)
|
|
bgcolor(isFlatYear ? color.new(color.yellow, 90) : na)
|
|
|
|
// Place or close orders based on trading conditions and create labels
|
|
if (isBullYear)
|
|
// label.new(bar_index, low, text=tradingConditionText, color=color.green, xloc=xloc.bar_index, yloc=yloc.belowbar, style=label.style_label_up, size=size.small)
|
|
strategy.entry("Bull", strategy.long)
|
|
strategy.close("Bear")
|
|
|
|
if (isBearYear)
|
|
// label.new(bar_index, high, text=tradingConditionText, color=color.red, xloc=xloc.bar_index, yloc=yloc.abovebar, style=label.style_label_down, size=size.small)
|
|
strategy.entry("Bear", strategy.short)
|
|
strategy.close("Bull")
|
|
|
|
if (isFlatYear)
|
|
// label.new(bar_index, high, text=tradingConditionText, color=color.yellow, xloc=xloc.bar_index, yloc=yloc.abovebar, style=label.style_label_center, size=size.small)
|
|
strategy.close("Bull")
|
|
strategy.close("Bear")
|
|
```
|
|
|
|
> Detail
|
|
|
|
https://www.fmz.com/strategy/432784
|
|
|
|
> Last Modified
|
|
|
|
2023-11-21 14:50:26
|