Tonyder

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

Tonyder Telah dikemas kini   
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 出清持股
Nota Keluaran:
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 趨勢轉弱
Nota Keluaran:
update the example
Nota Keluaran:
remove rule 5, 6
rule 3, 4, clear share
Nota Keluaran:
set transp=100, (share, direction, k), only show the value
Nota Keluaran:
add tomorrow value, k80, k50, k20
Nota Keluaran:
1. enhance the order strategy
2. change rule 1 and rule 2
Nota Keluaran:
1. update the tag
Nota Keluaran:
add the shadow arrow, if you want to buy or sell more.
加入加碼點箭頭
Nota Keluaran:
update the example
Nota Keluaran:
1. add rule 5 ~ rule 10
2. add rate to enhance the effectiveness
3. remove the shadow
Skrip sumber terbuka

Dalam semangat TradingView yang sebenar, penulis skrip ini telah menerbitkannya dengan menggunakan sumber terbuka supaya pedagang-pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda dapat menggunakannya secara percuma tetapi penggunaan semula kod ini dalam penerbitan adalah dikawalselia oleh Peraturan Dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.

Ingin menggunakan skrip ini pada carta?