OPEN-SOURCE SCRIPT
업데이트됨 Diff Price (Future - Spot)

Diff Line (Future – Spot) plots a grid of spot-price levels derived from the current futures price.
It rounds the current futures price up to the nearest price block (e.g. every 25 points), then subtracts a user‑defined Diff (Future – Spot) to find the main spot level and draws that as the central line. Additional lines are plotted above and below at equal block distances, with labels showing both Future and Spot values (e.g. 4250 (4215)), plus a compact diff info box for quick reference.
It rounds the current futures price up to the nearest price block (e.g. every 25 points), then subtracts a user‑defined Diff (Future – Spot) to find the main spot level and draws that as the central line. Additional lines are plotted above and below at equal block distances, with labels showing both Future and Spot values (e.g. 4250 (4215)), plus a compact diff info box for quick reference.
릴리즈 노트
Diff Price (Future – Spot)This script draws horizontal price levels based on the difference between a Futures chart and its Spot price.
It calculates a “main” Spot level from the current Futures price and the input Diff value, then plots equally spaced lines above and below that level.
How it works
- Assumes the current chart is the Futures price.
- Rounds the Futures price to the nearest grid defined by Block Trade Distance.
- Computes the main Spot level as: Future block – Diff (Future – Spot).
- Draws the main line plus a user‑defined total number of lines above and below, spaced by the block distance.
- Optional labels show both prices in the format Future (Spot).
Basic usage
- Add the script to a Futures chart.
- Set Block Trade Distance to your desired grid size (e.g. 25).
- Set Diff (Future – Spot) to the current spread between Futures and Spot.
- Adjust Total number of lines (including main line) to control how many levels are shown.
- (Optional) Customize line color, style, and label appearance in the settings.
Use these levels to visualize where Futures and Spot prices align across a consistent grid of price blocks.
릴리즈 노트
Diff Price (Future – Spot)This script draws horizontal price levels based on the difference between a Futures chart and its Spot price. It now supports both full‑block and half‑block levels.
How it works
- Assumes the current chart is the Futures price.
- Rounds the Futures price to the nearest grid defined by Block Trade Distance.
- Computes the main Spot level as:
Spot main = Future block − Diff (Future – Spot)
- Draws the main line plus a user‑defined total number of full‑block lines above and below, spaced by the block distance.
- Between every adjacent pair of full‑block levels, draws half‑block lines at half the block distance.
- Half‑block lines use a different, less prominent color and thinner style.
- Full‑block labels show both prices in the format Future (Spot).
- Half‑block labels are smaller and show only the Spot price, to keep the grid readable.
- A small table in the top‑right corner shows the current Block Distance and Diff (Future – Spot).
Basic usage
- Add the script to a Futures chart.
- Set Block Trade Distance to your desired grid size (e.g. 25).
- Set Diff (Future – Spot) to the current spread between Futures and Spot.
- Adjust Total number of lines (including main line) to control how many full‑block levels are shown.
- In the settings:
- Use the FULL‑BLOCK section to configure main grid color, style, and labels.
- Use the HALF‑BLOCK section to enable/disable half‑block lines and customize their appearance and labels.
- Use the FULL‑BLOCK section to configure main grid color, style, and labels.
Use these levels to visualize where Futures and Spot prices align across a consistent grid of price blocks, with half‑block lines providing finer intermediate levels without overwhelming the chart.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.