You are viewing a single comment's thread from:

RE: A free Copy and paste TradingView Script to see when patterns repeat

in #bitcoin6 years ago

This will be constantly improving. this is the new code that works with BTCs higher price: (copy and paste and no need to add tabs to this one)

//@version=3
study(title="buybuypig timming when things are happening")

//get the last smaller price to set the mtiplier for the scale
adjsc_temp = close<open?close:open//adjusting_scale
adjsc = adjsc_temp<.5?.5:adjsc_temp
//function
showmetime(hours,minutes)=>hset=hour==hours,mset=minute==minutes,[hset,mset]

//default is 14 hours and 30 minutes but it can be adjusted
hourtoadd1 = input(14, title="Hour A")
minutetoadd1 = input(30, title="Minute A")
// //default for the minutes B
minutetoadd2 = input(45, title="Minute B")

[hset,mset]=showmetime(hourtoadd1,minutetoadd1)
plot(hset?.5adjsc:0)
plotchar(hset?minute==minutetoadd1?true:0:0, text='H A', location=location.belowbar, char='A')
plot(hset?mset?.7
adjsc:0:0)

msetb=minute==minutetoadd2
plot(msetb?.3*adjsc:0)

//lets you konw that the hour is next
earlywarninga=hour==hourtoadd1-1
earlyminituea=minute==45
//plot(earlywarninga?earlyminituea?.5*adjsc:0:0)
plotchar(earlywarninga?earlyminituea?true:0:0, location=location.top, text="\n\n\n\n-1")

earlywarningc=hour==hourtoadd1-7
earlyminituec=minute==45
plot(earlywarningc?earlyminituec?.5*adjsc:0:0)
plotchar(earlywarningc?earlyminituec?true:0:0, location=location.top, text="\n\n\n\n-7")

earlywarningd=hour==hourtoadd1-14
earlyminitued=minute==45
plot(earlywarningd?earlyminitued?.5*adjsc:0:0)
plotchar(earlywarningd?earlyminitued?true:0:0, location=location.top, text="-\n\n\n\n-14")

earlywarninge=hour==hourtoadd1+7
earlyminituee=minute==45
plot(earlywarninge?earlyminituee?.5*adjsc:0:0)
plotchar(earlywarninge?earlyminituee?true:0:0, location=location.top, text="\n\n\n\n-17")

Coin Marketplace

STEEM 0.18
TRX 0.15
JST 0.029
BTC 62639.70
ETH 2439.41
USDT 1.00
SBD 2.64