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 open-source

In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?

Declinazione di responsabilità