CREDITS to @HPotter for the orginal code.
CREDITS to @Yo_adriiiiaan for recently publishing the UT Bot study based on the original code -

I just added some simple code to turn it into a strategy. Now, anyone can simply add the strategy to their chart to see the backtesting results!

While @Yo_adriiiiaan mentions it works best on a 4-hour timeframe or above, I am happy to share that this seems to be working on a 15-minute chart on e-mini S&P 500 Index (using the KeyValue setting at 10)! You can play around with the different settings, and may be you might discover even better settings.

Hope this helps. Btw, if any of you play with different settings and discover great settings for a specific instrument, please share them with the community here - it will be rewarded back multiple times!

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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


How do I use this? Do I translate the code to a coding platform to read it?... Thx.
+18 Reply
Thank you for updating the code.
+5 Reply
Good day. 1.Can you. add a function: set the testing time 2. And the taik profit function, If the price has reached + 10% + 11% + 12% .., set the take profit at 5%, 5.5%, 6 .... That would help a lot, thanks.
+3 Reply
Hi. Great work! Could you publish it as an indicator with alerts as well? That would be really great since the other indicator doesn´t has so many settings (where you can set RSI, MACD etc.) like yours. Thx!!
Tested this on a gazzilion different eqities from different markets and in different timeframes. It does not work
KirillNET matzero
@matzero, ust for fun, what doesn't work for you? Everything works here, it is clear that the script is laid out here not for beginners, I’ve added a little, changed the parameters and the fire works like. This script, for those who understand, at least a little bit. I consider it to be the most effective trade view today. However, yes, it needs to be adjusted a little, otherwise tomorrow everyone will run to use it.
KirillNET matzero
just for fun I’ll write: script efficiency on sentries for 2019 + 127%, percentage of profitable 64.29%, drawdown 5.37% btc/usdt binance
matzero KirillNET
@KirillNET, I'm on market for 5 years and profitable so maybe know something. This script works on random equities in random situations. I can find four you hundreds of tickers and timeframes where it will simply eat all of your money
Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter