Tonyder

KD compare strategy (交易策略對照組)

Tonyder 已更新   
This is a base and easy trading strategy for comparing my other strategy.
The strategy consider K >= 80 is strong target in the last high period,
and consider K <=20 is the weak target in the last low period.

In the strong target, the strategy may increase long at the first day when K < 50, until 2/3 max order limitation or strong target become to weak.
In the weak target, the strategy may increase short at the first day when K > 50, until 2/3 max order limitation or strong target become to strong.

there are three orders for this strategy.
when the strong become to weak, it may use the remain 1/3 to save itself, and change the direction at the next k > 50
when the weak become to weak, it may use the remain 1/3 to save itself, and change the direction at the next k < 50

這是一個簡單的雙向交易策略,用來對照我其他的策略。
當 K>=80 它會認為目前是強勢股,偏多操作
當 K<=20 它會認為目前是強勢股,偏空操作

當標的為強勢股時,當第一次 K<50 會加碼多單,最多買進2/3的持股,直到轉弱
當標的為弱勢股時,當第一次 K>50 會加碼空單,最多買進2/3的持股,直到轉強

當強勢轉弱勢時,會使用剩下的1/3來拯救持股,在下次 k > 50 出清持股
當弱勢轉強勢時,會使用剩下的1/3來拯救持股,在下次 k < 50 出清持股
版本注释:
update the description
read line is close transform to k = 80
white line is close transform to k = 50
green line is close transform to k = 20

更新說明
紅線代表 k=80 趨勢轉強
白線代表 k=50 執行策略操作
綠線代表 k=20 趨勢轉弱
版本注释:
update the example
版本注释:
remove rule 5, 6
rule 3, 4, clear share
版本注释:
set transp=100, (share, direction, k), only show the value
版本注释:
add tomorrow value, k80, k50, k20
版本注释:
1. enhance the order strategy
2. change rule 1 and rule 2
版本注释:
1. update the tag
版本注释:
add the shadow arrow, if you want to buy or sell more.
加入加碼點箭頭
版本注释:
update the example
版本注释:
1. add rule 5 ~ rule 10
2. add rate to enhance the effectiveness
3. remove the shadow
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?