OPEN-SOURCE SCRIPT

TrapTrading

Updated
Buy on dips and sell into rallies. Simple as that.

- Short line (green)
- Base line (white)
- Long line (red)

When the market price touches the white or the red(green) lines, buy(sell) orders are generated.
The exit points are 2 lines above(below) the entries.

Parameters
- Period: It affects the value of Base line and the spacing of each line.
- Multiple: Specify the spacing between each line.
Release Notes
- bug fix
- add a setting "Color Bars"
Release Notes

- Add "Profit Margin". If "1" is set to this parameter, exit long(short) points are "1" line above(below) the entries.
- Add "Buy Equal Amounts?".
- Remove "Color Bar". (Bar color can be changed in the style tab.)
- Modify default values.
Release Notes
Fix a typo.
Release Notes
modify default values
Release Notes
modify default values etc.
Average True Range (ATR)Momentum Indicator (MOM)Volatility

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer