yuya_takahashi_

Pine講座㊷ バックテスト|OutSide Bar Strategy の解説(つつみ足の途転戦略)

Education
FX:USDJPY   U.S. Dollar / Japanese Yen
今回はつつみ足の戦略です。

テクニカル指標を算出する必要がないので、
コードも非常にシンプルですね。

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

※ 解説はコードの中で

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

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

//つつみ足を検出したら
if (high > high[1] and low < low[1])
 //陽線の場合
 if (close > open)
  //成行の買い注文
  strategy.entry("OutBarLE", strategy.long, comment="OutBarLE")
 //陰線の場合
 if (close < open)
  //成行の売り注文
  strategy.entry("OutBarSE", strategy.short, comment="OutBarSE")
==========
Comment:
次の講座

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

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

小次郎講師のチャート情報局
bit.ly/2GvLAEp
Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.