Code Tradingview Pine Script
Budget: $10 – $30 USD
Looking to take the code from the site referenced and add a multi-time frame aspect to the code. For this example, I’ll assume we are on a 5 minute bar chart. The first-time frame would be the same as the underlying chart, 5 minute. The added code would allow the user to select another time frame that works with the incremental time of the first time frame. In this case we would have an input variable of 10 min, 15 min, 20 min. We will use a 15 min second time frame for this example. If the 2nd time frame is long, the 1st time frame gets a long signal, the arrow would be the same as the current output. If the 1st time frame gets a short signal, the arrow would be colored yellow, meaning exit, but do not initiate a short position. If the 2nd time frame is short, the 1st time frame gets a short signal, the arrow would be the same as the current output. If the 1st time frame gets a long signal, the arrow would be colored yellow, meaning exit, but do not initiate a long position. The underlying AI approach to the second time frame supertrend would be the same as the first-time frame calculation. The graph shows the model applied to the 5 min chart on the top and 15 minute on the bottom. Please let me know if you have any questions.
https://www.tradingview.com/script/wP7WWjLL-SuperTrend-AI-Clustering-LuxAlgo/
https://www.tradingview.com/script/wP7WWjLL-SuperTrend-AI-Clustering-LuxAlgo/