EN ▢-TradingView Code

[Overview]

This section shares TradingView codes.

Everything is available for completely free.

These are original codes, not copied from others. (LLMs were utilized in the creation process.)

You can run the code simply by copying it from the article and pasting it into the Pine Editor on TradingView. 

Uploading the code to an LLM to add your own custom features (modifications) is also an intended use case.


* TradingView is a chart analysis platform used by over 100 million users worldwide. "Pasting and running the code" is fully supported even for free members.


[Notice for Articles in this Section]

  • - We do not provide individual installation support, accept requests for code modifications, or troubleshoot bugs.
  • - We assume no liability for any losses incurred from using these tools. Please ensure you conduct your own verification and backtesting before use.
  • - The codes are governed by the MIT License.

For further details, please refer to the About page of this site.

| About this site |


| 1.NK-Fixed |

→ A series of indicators that allows you to adjust when to start real-time drawing, anywhere from 0 seconds to 5 minutes before the candle closes. Each indicator is equipped with useful features.
Example: Hiding the drawing on the current candle until 10 seconds before it closes.

| 1-1 SMA | 1-2 EMA | 1-3 WMA | 1-4 Multi MA | 1-5 RSI | 1-6 MACD | 1-7 Stochastics | 1-8 DMI |
| 1-9 RCI | 1-10 CCI | 1-11 ATR |

* Regarding the behavior where it may not display at the exact specified seconds:

TradingView's system is designed to calculate and render indicators only at the "moment the price moves (when a tick is updated)." Therefore, during periods with no market movement (such as when the price doesn't move for dozens of seconds), it may not be drawn at the exact specified seconds, but rather rendered with a delay matching the timing of the next price movement. This is not a bug in the tool. There should be few practical issues if you choose highly liquid assets.


| 2.NK-Box |

→A series of indicators that plots the previous period's data as a box in the current period.
It consists of a main indicator and optional indicators designed to be overlaid on it.

| 2-1 NK-Box | 2-2 option1_Zone & Gap | 2-3 option2_SVWAP & Zone | 2-4 option3_Fibo & Quarters |


| 3.NK-Horizon |

→An indicator that draws horizontal lines at round numbers.

| 4.NK-Session |

→It can display the opening and closing times of the Japan, London, and New York stock markets with vertical lines.