BTC 200 Week Heat map
Forums › ProRealTime English forum › ProBuilder support › BTC 200 Week Heat map
- This topic has 4 replies, 3 voices, and was last updated 3 years ago by Daveangelaust.
Viewing 5 posts - 1 through 5 (of 5 total)
-
-
02/10/2021 at 12:58 AM #160876
Has anybody got the following for RPT?
200 Week Moving Average Heatmap
https://www.lookintobitcoin.com/charts/200-week-moving-average-heatmap/
Looks like this in Tradingview?
123456789101112131415161718//@version=4study("200 Week Moving Average Heatmap", shorttitle='200 Week Heatmap', overlay=true)lookback = input(defval=1400, title='Lookback', type=input.integer, minval=1)ma_source = input(defval=close, title='MA Source')ma = security(syminfo.tickerid,"D",sma(ma_source, lookback))var css = array.new_color(na)float mult=1250if (timeframe.period=='D')mult:=mult*4*7if (timeframe.period=='W')mult:=mult*4if barstate.isfirstarray.push(css,#0000ff), array.push(css,#0005ff), array.push(css,#000aff), array.push(css,#000fff), array.push(css,#0014ff), array.push(css,#0019ff), array.push(css,#001fff), array.push(css,#0024ff), array.push(css,#0029ff), array.push(css,#002eff), array.push(css,#0033ff), array.push(css,#0038ff), array.push(css,#003dff), array.push(css,#0042ff), array.push(css,#0047ff), array.push(css,#004cff), array.push(css,#0052ff), array.push(css,#0057ff), array.push(css,#005cff), array.push(css,#0061ff), array.push(css,#0066ff), array.push(css,#006bff), array.push(css,#0070ff), array.push(css,#0075ff), array.push(css,#007aff), array.push(css,#0080ff), array.push(css,#0085ff), array.push(css,#008aff), array.push(css,#008fff), array.push(css,#0094ff), array.push(css,#0099ff), array.push(css,#009eff), array.push(css,#00a3ff), array.push(css,#00a8ff), array.push(css,#00adff), array.push(css,#00b2ff), array.push(css,#00b8ff), array.push(css,#00bdff), array.push(css,#00c2ff), array.push(css,#00c7ff), array.push(css,#00ccff), array.push(css,#00d1ff), array.push(css,#00d6ff), array.push(css,#00dbff), array.push(css,#00e0ff), array.push(css,#00e5ff), array.push(css,#00ebff), array.push(css,#00f0ff), array.push(css,#00f5ff), array.push(css,#00faff), array.push(css,#00ffff), array.push(css,#00fffa), array.push(css,#00fff5), array.push(css,#00fff0), array.push(css,#00ffeb), array.push(css,#00ffe5), array.push(css,#00ffe0), array.push(css,#00ffdb), array.push(css,#00ffd6), array.push(css,#00ffd1), array.push(css,#00ffcc), array.push(css,#00ffc7), array.push(css,#00ffc2), array.push(css,#00ffbd), array.push(css,#00ffb8), array.push(css,#00ffb3), array.push(css,#00ffad), array.push(css,#00ffa8), array.push(css,#00ffa3), array.push(css,#00ff9e), array.push(css,#00ff99), array.push(css,#00ff94), array.push(css,#00ff8f), array.push(css,#00ff8a), array.push(css,#00ff85), array.push(css,#00ff80), array.push(css,#00ff7a), array.push(css,#00ff75), array.push(css,#00ff70), array.push(css,#00ff6b), array.push(css,#00ff66), array.push(css,#00ff61), array.push(css,#00ff5c), array.push(css,#00ff57), array.push(css,#00ff52), array.push(css,#00ff4d), array.push(css,#00ff47), array.push(css,#00ff42), array.push(css,#00ff3d), array.push(css,#00ff38), array.push(css,#00ff33), array.push(css,#00ff2e), array.push(css,#00ff29), array.push(css,#00ff24), array.push(css,#00ff1f), array.push(css,#00ff19), array.push(css,#00ff14), array.push(css,#00ff0f), array.push(css,#00ff0a), array.push(css,#00ff05), array.push(css,#00ff00), array.push(css,#05ff00), array.push(css,#0aff00), array.push(css,#0fff00), array.push(css,#14ff00), array.push(css,#1aff00), array.push(css,#1fff00), array.push(css,#24ff00), array.push(css,#29ff00), array.push(css,#2eff00), array.push(css,#33ff00), array.push(css,#38ff00), array.push(css,#3dff00), array.push(css,#42ff00), array.push(css,#47ff00), array.push(css,#4dff00), array.push(css,#52ff00), array.push(css,#57ff00), array.push(css,#5cff00), array.push(css,#61ff00), array.push(css,#66ff00), array.push(css,#6bff00), array.push(css,#70ff00), array.push(css,#75ff00), array.push(css,#7aff00), array.push(css,#80ff00), array.push(css,#85ff00), array.push(css,#8aff00), array.push(css,#8fff00), array.push(css,#94ff00), array.push(css,#99ff00), array.push(css,#9eff00), array.push(css,#a3ff00), array.push(css,#a8ff00), array.push(css,#adff00), array.push(css,#b3ff00), array.push(css,#b8ff00), array.push(css,#bdff00), array.push(css,#c2ff00), array.push(css,#c7ff00), array.push(css,#ccff00), array.push(css,#d1ff00), array.push(css,#d6ff00), array.push(css,#dbff00), array.push(css,#e0ff00), array.push(css,#e6ff00), array.push(css,#ebff00), array.push(css,#f0ff00), array.push(css,#f5ff00), array.push(css,#faff00), array.push(css,#ffff00), array.push(css,#fffa00), array.push(css,#fff500), array.push(css,#fff000), array.push(css,#ffeb00), array.push(css,#ffe500), array.push(css,#ffe000), array.push(css,#ffdb00), array.push(css,#ffd600), array.push(css,#ffd100), array.push(css,#ffcc00), array.push(css,#ffc700), array.push(css,#ffc200), array.push(css,#ffbd00), array.push(css,#ffb800), array.push(css,#ffb300), array.push(css,#ffad00), array.push(css,#ffa800), array.push(css,#ffa300), array.push(css,#ff9e00), array.push(css,#ff9900), array.push(css,#ff9400), array.push(css,#ff8f00), array.push(css,#ff8a00), array.push(css,#ff8500), array.push(css,#ff8000), array.push(css,#ff7a00), array.push(css,#ff7500), array.push(css,#ff7000), array.push(css,#ff6b00), array.push(css,#ff6600), array.push(css,#ff6100), array.push(css,#ff5c00), array.push(css,#ff5700), array.push(css,#ff5200), array.push(css,#ff4d00), array.push(css,#ff4700), array.push(css,#ff4200), array.push(css,#ff3d00), array.push(css,#ff3800), array.push(css,#ff3300), array.push(css,#ff2e00), array.push(css,#ff2900), array.push(css,#ff2400), array.push(css,#ff1f00), array.push(css,#ff1900), array.push(css,#ff1400), array.push(css,#ff0f00), array.push(css,#ff0a00), array.push(css,#ff0500)plot(ma,"Plot",array.get(css,round((ma/ma[1]-1)*mult)>199?199:round((ma/ma[1]-1)*mult)<0?0:round((ma/ma[1]-1)*mult)),3)plotchar(round((ma/ma[1]-1)*mult), "Color value unrounded", "", location = location.top)Moderators Note: Your post has been edited – code inserted.
02/10/2021 at 1:18 AM #160878Always use the ‘Insert PRT Code’ button when putting code in your posts to make it easier for others to read.
Thank you 🙂
02/10/2021 at 2:02 AM #160879Apologies, It’s at TV code so I didn’t think it would work. Now i know.
Thanks,
Dave
02/10/2021 at 2:44 PM #16094002/10/2021 at 10:10 PM #160997Thank you for your response.
You are right I will see if I can rework a SMA.
Thank you
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)