Montclair, NJ
Experience: Intermediate
Platform: NT 8
Trading: Index Futures
Posts: 14 since Nov 2013
Thanks Given: 0
Thanks Received: 1
|
I need to convert Pine script to NT 7 script - This is part of a much longer script that I wrote for Pine. I have tried to convert it to Ninja Script and flamed out. Can somebody please convert this 10 line script to NT 7 please? That should let me figure out how to code the entire script. BTW I use this script using W, D & 240 bars data as indicator inputs for intra day tick charts.
Thanks!!
study("W_975", overlay=true)
//assign variable to time granularity and set default at Y,W,D,240,60,15,5
timeFrame = input(title="Other time frame", type=input.resolution, defval="W")
//create variables with X time frame data
t = tickerid(syminfo.prefix, syminfo.ticker)
high_1 = security(t, timeFrame, high[1], lookahead=true)
W_975 = (high_1 * .975)
//plot horizontal line
plot(W_975, 'W_975', color=color.black, style=plot.style_cross, linewidth=2, offset=0)
|