心理的な線取引戦略

作者: リン・ハーンチャオチャン開催日:2023年9月20日 (月) 14:50:47
タグ:

概要

この戦略は,市場における買い/売り力を測定し,トレンド変化を把握するために心理線指標を使用する. 買い力が売り力より強いとき,買い力が強くなると長引く. 売力が買い力を上回ると短引く. 心理線はシンプルで,トレンド発見ツールとして使用しやすい.

戦略の論理

  1. サイコロジカルラインは 閉店価格の割合を計算します

  2. その割合が50%を超えると 買える力が売れる力より大きいことを示し 長い信号を出すのです

  3. その割合が50%以下になると 売り力が買い力を上回る 短信号になります

  4. この割合が50%近くで振動すると,バランスのとれた買い/売りが示され,明確な方向性が示されない.

  5. 短期的または長期的傾向を判断するために,パラメータを柔軟に調整できます.

利点分析

  1. シンプルな計算方法で リアルタイム取引で 簡単に実行できます

  2. 資本流動の補足判断として,購買/販売力の強さを直感的に表示します.

  3. 逆転信号を検出できる

  4. 戦略の業績を改善するために他の指標と一緒に使用できます.

リスク分析

  1. 傾向の持続時間と強さを 特定できない.

  2. パラメータの設定が正しくない場合,誤った信号が過剰に発生する可能性があります.

  3. 単独で使用すると,鞭に易く,他の指標と併用する必要があります.

  4. 異なる製品と時間枠にパラメータ最適化が必要です

改善 の 方向

  1. 適正な周期を見つけるために 様々な製品で異なるパラメータをテストします

  2. 傾向の持続性を判断するためにより多くの指標を組み込む.

  3. ストップ・ロスを設定して 利益を取ることで 資金管理戦略を最適化します

  4. トレンドの強さを評価し,早急な逆転を避ける.

  5. 特定の時間に戦略を無効にします 間違った信号が発信される時期を避けるためです

概要

心理線指標自体はかなりシンプルですが,他のツールと組み合わせるとうまく機能します.トレンドの変化を発見するための補助ツールとして機能しますが,単独では使用すべきではありません.パラメータを最適化し,他の指標と統合することにより,心理線戦略は新しいレベルに向上し,さらなる研究に値します.


/*backtest
start: 2023-09-12 00:00:00
end: 2023-09-19 00:00:00
period: 15m
basePeriod: 5m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=2
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 10/04/2018
// Psychological line (PSY), as an indicator, is the ratio of the number of 
// rising periods over the total number of periods. It reflects the buying 
// power in relation to the selling power.
//
// If PSY is above 50%, it indicates that buyers are in control. Likewise, 
// if it is below 50%, it indicates the sellers are in control. If the PSY 
// moves along the 50% area, it indicates balance between the buyers and 
// sellers and therefore there is no direction movement for the market.
//
// You can change long to short in the Input Settings
// WARNING:
//  - For purpose educate only
//  - This script to change bars colors.
////////////////////////////////////////////////////////////
strategy(title="Psychological line Backtest")
Length = input(20, minval=1)
reverse = input(false, title="Trade reverse")
xPSY = sum(close > close[1],Length) / Length * 100
clr = iff(xPSY >= 50, green, red)
pos = iff(xPSY > 50, 1,
       iff(xPSY < 50, -1, nz(pos[1], 0))) 
possig = iff(reverse and pos == 1, -1,
          iff(reverse and pos == -1, 1, pos))	   
if (possig == 1) 
    strategy.entry("Long", strategy.long)
if (possig == -1)
    strategy.entry("Short", strategy.short)	   	    
barcolor(possig == -1 ? red: possig == 1 ? green : blue ) 
p1 = plot(50, color=black, title="0")
p2 = plot(xPSY, color=blue, title="PSY")
fill(p1, p2, color=clr)

もっと