TradingView
macropunting
1 ספט׳ 2021 14:56

1k TICK arrows 

E-mini S&P 500 FuturesCME

תיאור

This plots green up arrows when the TICK index goes to -1,000 or lower or red down arrows when the TICK index goes +1,000 or higher. Can be used as a short term reversal signal (not investment advice). Will unfortunately plot on all charts but should only be relevant for US equity indices, mainly S&P500/ES futures. Indicator will adapt to the charts time frame and is hard coded to only show during 9:30-16:00 EST.
תגובות
theodorewakefield
Hi, is it possible to open up the script. Its quite useful, but it would be great to change the tick data to tick.nq for a nasdaq specific indicator.
macropunting
hi @theodorewakefield, unfortunately i cant seem to update the status to open. but below is the code

// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org/MPL/2.0/
// © ldbc

//@version=4
study('1k tick', overlay=true)
tick_low = security("USI:TICK",timeframe.period,low[0])
tick_high = security("USI:TICK",timeframe.period,high[0])

downtick = false
uptick = false

// Inputs
//input_rth = input("0930-1600", type=input.session)
rth_session = time("1440",str.format("{0}:23456", "0930-1600"), "America/New_York")

if rth_session
if not rth_session[1]
downtick := false
uptick := false
else
downtick := tick_low <=-1000
uptick := tick_high >=1000

plotshape(downtick, style=shape.triangleup,
location=location.belowbar, color=color.green, size = size.small)
plotshape(uptick, style=shape.triangledown,
location=location.abovebar, color=color.red, size = size.small)
theodorewakefield
@ldbc, Thanks a lot. Great help!
עוד