- Platform
-
- TradingView
This was a request from Discord VIP discussions. It overlays another ticker on top of current one and allows for multiplier for the close price. It is preset for SPY to be overlayed on ES. Adjust as needed.
Code:
// Free for use. Header credits must be included when any form of the code included in this package is used.
// User assumes all risk. Author not responsible for errors or use of tool.
// Copyright (c) 2021 B4 Signals
//
// Get support at: https://b4signals.com
// Join us at: https://discord.gg/TveydqPWDF
//
//@version=5
indicator("Ticker Overlay", overlay=true)
symbol = input.string("SPY", "Symbol")
mult = input.float(10, "Multiplier")
sClose = request.security(symbol, timeframe.period, close, gaps = barmerge.gaps_off, lookahead = barmerge.lookahead_on)
fClose = sClose * mult
plot(fClose, "Symbol")
