PROTECTED SOURCE SCRIPT

Spaghetti by RainbowLabs

When I started trading, very few people gave me a hand or even a small piece of advice. One of them was @btc_charlie. From Charlie, I first saw the spaghetti chart, and he explained to me how it was useful in identifying which coin made the most sense to trade at a specific time.

In practice, it worked like this: in the "add" section, you add all the pairs you want and overlap them on the chart, creating the spaghetti chart. Although it worked, and still works, this way, I wondered if it would be better to write an indicator that does the same thing, maybe less invasive on the chart, that you can call as many times as you want and in different versions. In short, I tried to recreate the same thing but potentially better, let's see if I succeeded.

Introducing Spaghetti chart by RainbowLabs:

This indicator takes 20 different pairs as user input and works with any pair on any exchange provided the name is spelled correctly. In the settings, there are four columns: the first for the exchange, the second for the ticker, the third for the base pair, and lastly, the color. Again, it works with any pair on any exchange, but if you put something that does not exist or is misspelled, it will cause the script to error.

The second thing to do is to set when our spaghetti will be reset. By default, it resets every hour, but you can change it to any preferred timeframe in the menu, keeping in mind that we will write the timeframe in minutes, not alphanumeric. For example, 4h will not be four hours, but you will have to write 240.

In the settings, we can also change the position and size of the table.

How it works:

All pairs are reset when the timeframe defined by the user in the settings changes. The script then calculates the percentage difference from that moment onwards for each pair at the closing of the candle of the timeframe we are in. For example: by default, the timeframe resets every hour, so we will use it on one minute. It does not make sense on larger timeframes, and you will have to increase the reset timeframe.

How to use it:

Risk on\off BTC vs alts
As Charlie says in his tweet: "should I be risk on or off?" for ALTS rule might be ">70% of Alts recovering after a dip."

Identify a dip on bitcoin and compare what happens immediately after. If more than 70% of alts gain more than BTC, it may be better to remain positioned in alts. When the opposite happens, it is better to stay on BTC or stable.

لقطة

Sell-off, Rally
During a significant sell-off or rally, it is important to analyze which coins were performing better or worse in the immediate past. It is statistically more profitable to trade those pairs that were over-performing, positively or negatively, just before the event.

لقطة

Arbitrage and Triangular Arbitrage.
While it may be difficult to find large arbitrage opportunities in current market conditions, we can use tools to identify the best price of the same pair on multiple exchanges and compare it with one or multiple pairs on other exchanges. Having a comprehensive view of the market can be useful for anyone who is not using advanced trading bots to find arbitrage opportunities.

لقطة

Quick Screener
You can add multiple spaghetti indicators to a single chart, and with the paid version of TradingView, you can use multiple layouts to plot as many coins on as many exchanges as you want. In the picture, you can see 240 pairs on four different exchanges all together. This feature allows you to quickly screen for potential trading opportunities and identify trends across multiple pairs and exchanges.

لقطة

Known issues:

When the currency exchange rate is equal to 0.0000, the plotted line may not be visible.
spaghettiVolatility

نص برمجي محمي

تم نشر هذا النص البرمجي بمصدر غير مفتوح ويمكنك استخدامه بحرية. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني. لا يمكنك مشاهدة أو تعديل كود المصدر الخاص به.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟

إخلاء المسؤولية