TradingView
Trebor_Namor
24 okt 2021 06:38

CryptoNite - Machine Learning Strategy (15Min Timeframe) 

Bitcoin / TetherUSBinance

Beskrivning

Greeting Traders! I am back with another ML strategy. :D I kept my word with combining my machine learning algorithms from Python and integrating them into Tradingview. Thanks to Tradingview's new release of Pinescript v5 it is now possible. This strategy respects the Sortino Ratio and was created using 2 years of data for 50 different cryptocurrencies. That is a total of 100 years of data and 44,849 trades to create this strategy. Now let me tell you, my computer and I are exhausted. We both been at it non-stop for about two months everyday. I refine the strategy, and the computer runs 24/7 for a few days to spit out the best results into the terminal. It's been a good run so my computer will finally get some sleep tonight.

So let's talk a little about the features of the strategy. In the settings window, you'll see the Stoploss, Take Profit Parameters, and Date Range. You can change the Date Range, but I recommend to leave the SL/TP parameters how they are because the machine learning algo chose those input. If you wish to change them you are always welcome to do so but backtest results will change. For the Take Profit parameters you'll see on the left side you something labeled time duration(displayed in minutes) and on the right side you'll see take profit values. Let's talk a little bit how they work.

TP_values = {
"0": 0.102,
"133": 0.051,
"431": 0.039,
"963": 0
}

In python, the table looks like this but it is quite easy to understand in Tradingview.

From 0-133 minutes, the strategy is looking to the reach target point 1 at 10.2% profit.
From 133-431 minutes, the strategy is looking to the reach target point 2 at 5.1% profit.
From 431-963 minutes, the strategy is looking to the reach target point 3 at 3.9% profit.
From 963+ minutes, the strategy is looking to break even at 0% profit on target point 4.
Through each target point a sell trigger is active. It will look for the best time to sell even if TP has not been reached.
This helps the trade not stay open too long.

The last thing I need to mention is the textbox displayed on the right side of your chart. This textbox displays the current Take Profit value in dollar amount. So when you're in a trade you'll know what TP target has to be reached when the open trade is active. Throughout time, the target price changes depending how long the trade has been open. If you have any questions feel free to comment down below, and enjoy this strategy!
Kommentarer
f1reX
Do you really use this indicator for BTCUSDT on 15 min timeframe?

I backtested the given values in different date ranges:
For date range 17th july 2021 - 01st november 2021 with 100% ordersize and 0% commission
Nettoprofit 81.56%, 80 trades, 96.25%, 2.56 profitfactor

But backtesting greater date range and 0.1% commission gives really bad results
Date range 01st may 2021 - 01st december 2021 with 100% ordersize and 0.1% commission
Nettoprofit -34.78%, 150 trades, 56.67%, 0.75 profitfactor

How do you use that?
kirapwn
Can you share the code of this strategy? Looks interesting but some bugs submited in comments
f1reX
Great work!

Additionally, I've found an error: You cannot set "End Date" to values > 12. I think you did a copy/paste mistake at the validator for End Month :P
bertalt
Hi, mate
Again, your "ML" strategies works only on Bull trend. Super easier and more profitable just buy & hold.
starnod133
bunghole I really appreciate your work and honestly its better than anyone out there but yea "ML" strategies trigger when the price goes below the price ..now i liked your trend strength indicator .. and i wanna say why don't you use that on a smaller time frame I mean orders should only be placed when 15 mins trigger(of strength indicator) is inside of a larger time frame trigger (first weekly and then daily) and also it could work reverse as well for shorting so your indicator can set short triggers when all over market is downtrend..and another thing maybe you should refer to linear regression rather than rsi.. because that gives better levels.....ok m not a programmer idk even if its possible for an indicator to work on multi time frame but thats just something I thought would be nice ....and I hope you would say something about it and I understand you are a busy person.....
rhg6932
Why does it always have a buy signal? does it work on the strategy assuming that crypto will always be in bull phase?
foreignDingo28032
Hi, good work friend, can you add some options for the alerts, like sell,buy.....
Ashishaxxx
sir need help with a script any email or contact
qwwerttyy
a
Mer