yuya_takahashi_

Pine講座㊸ バックテスト|Price Channel Strategy(チャネルブレイクアウトで途転)

Formazione
yuya_takahashi_ Aggiornato   
FX:USDJPY   Dollaro / Yen giapponese
エントリーのロジックは
タートルズが用いていた手法と同じものです。

ひたすら途転していきます。
トレンドがないと勝てない戦略ですね。

※ TradingView内蔵のストラテジーを
  上から順番に解説しています

※ 解説はコードの中で

※ コピペする場合は以下の変更を行ってください
[](全角の角括弧)→(半角の角括弧)
(全角スペース)→(半角スペース)

=====
//@version=4
strategy("Price Channel Strategy の解説", overlay=true)

length = input(20)

//期間の最高値を算出
hh = highest( high, length )

//期間の最安値を算出
ll = lowest( low, length )

//設定期間以上、ローソク足が生成されていることを確認
if ( not na( close[length] ) )
 //常にレンジの上限・下限に逆指値注文を入れておく
 strategy.entry( "PChLE", strategy.long, comment="PChLE", stop=hh )
 strategy.entry( "PChSE", strategy.short, comment="PChSE", stop=ll )

//確認用で描画
plot( hh ,offset=1 )
plot( ll ,offset=1 )
=====
Commento:
次の講座

小次郎講師公式インジケーターのお申込
bit.ly/2vdSV4Q

小次郎講師のLINE@
bit.ly/2VZQFu3

小次郎講師のチャート情報局
bit.ly/2GvLAEp
Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.