OPEN-SOURCE SCRIPT

Double Inside Bar & Trend Strategy - Kaspricci

Double Inside Bar & Trend Strategy - Kaspricci

This strategy combines the Double Inside Bar candlestick pattern with a trend filter. Once the second inside bar closes and price is above trend moving average, a buy stop order is placed at high of the candle. If price is below trend moving average, a sell stop order is placed at the low of the candle.

This strategy is for educational purposes only! It is not meant to be a financial advice.

Settings
  • Trend source, type of moving average and length for calculating trend
  • Stop Loss Type - default: ATR. You can switch between stop loss calculation based on Average True Range value or fixed value.
  • ATR Length / Factor / TP Ratio - default: 14 / 2.0 / 2.0. Used to calculate the Stop Loss as ATR * Factor and Take Profit as Stop Loss * TP Ratio.
  • FIX Stop Loss / Take Profit - default: 10 pips / 20 pips. In case you select Stop Loss Type = FIX, these value swill be used.
  • Risk in % - default: 1%, option to adjust the quantity of a trade based on a defined risk percentage. If enabled, it will overwrite the quantity parameter of the strategy settings.


On top you can filter trades by start and end date as well as time of the day.
Candlestick analysisdoubleinsidebarMoving Averages

オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

チャートでこのスクリプトを利用したいですか?

免責事項