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

Skrypt open-source

W prawdziwym duchu TradingView autor tego skryptu opublikował go jako open source, aby inwestorzy mogli go zrozumieć i zweryfikować. Pozdrowienia dla autora! Możesz go używać bezpłatnie, ale ponowne użycie tego kodu w publikacji podlega Zasadom Regulaminu. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Chcesz użyć tego skryptu na wykresie?

Wyłączenie odpowiedzialności