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

Script de código abierto

Siguiendo fielmente el espíritu de TradingView, el autor de este script lo ha publicado en código abierto, permitiendo que otros traders puedan entenderlo y verificarlo. ¡Olé por el autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la reutilización de este código en la publicación se rige por las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

¿Quiere utilizar este script en un gráfico?

Exención de responsabilidad