Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@version=3
- study("Supports/Resistances", overlay=true)
- s0 = (time >= 1539586800000 and time < 1542229200000) ? 5.5689 : na
- plot(s0, transp=0, linewidth=2, color=red)
- s1 = (time >= 1539568800000 and time < 1542160800000) ? 5.1846 : na
- plot(s1, transp=0, linewidth=2, color=red)
- s2 = (time >= 1539266400000 and time < 1541858400000) ? 5.3453 : na
- plot(s2, transp=0, linewidth=2, color=red)
- s3 = (time >= 1539025200000 and time < 1542175200000) ? 6.0039 : na
- plot(s3, transp=0, linewidth=2, color=red)
- s4 = (time >= 1538100000000 and time < 1541289600000) ? 5.8107 : na
- plot(s4, transp=0, linewidth=2, color=red)
- s5 = (time >= 1537916400000 and time < 1540627200000) ? 5.4202 : na
- plot(s5, transp=0, linewidth=2, color=red)
- s6 = (time >= 1537858800000 and time < 1541890800000) ? 5.12 : na
- plot(s6, transp=0, linewidth=2, color=red)
- s7 = (time >= 1537779600000 and time < 1542258000000) ? 5.6316 : na
- plot(s7, transp=0, linewidth=2, color=red)
- s8 = (time >= 1537570800000 and time < 1540162800000) ? 6.1931 : na
- plot(s8, transp=0, linewidth=2, color=red)
- s9 = (time >= 1537542000000 and time < 1542193200000) ? 5.7298 : na
- plot(s9, transp=0, linewidth=2, color=red)
- s10 = (time >= 1537534800000 and time < 1540893600000) ? 5.9112 : na
- plot(s10, transp=0, linewidth=2, color=red)
- s11 = (time >= 1537070400000 and time < 1542081600000) ? 5.27 : na
- plot(s11, transp=0, linewidth=2, color=red)
- s12 = (time >= 1536854400000 and time < 1541127600000) ? 5.5 : na
- plot(s12, transp=0, linewidth=2, color=red)
- s13 = (time >= 1536238800000 and time < 1539878400000) ? 5.18 : na
- plot(s13, transp=0, linewidth=2, color=red)
- s14 = (time >= 1536228000000 and time < 1539946800000) ? 4.99 : na
- plot(s14, transp=0, linewidth=2, color=red)
- s15 = (time >= 1535875200000 and time < 1538665200000) ? 6.63 : na
- plot(s15, transp=0, linewidth=2, color=red)
- s16 = (time >= 1535828400000 and time < 1538420400000) ? 6.76 : na
- plot(s16, transp=0, linewidth=2, color=red)
- s17 = (time >= 1535670000000 and time < 1540710000000) ? 6.07 : na
- plot(s17, transp=0, linewidth=2, color=red)
- s18 = (time >= 1535576400000 and time < 1538168400000) ? 6.26 : na
- plot(s18, transp=0, linewidth=2, color=red)
- s19 = (time >= 1535508000000 and time < 1540400400000) ? 5.84 : na
- plot(s19, transp=0, linewidth=2, color=red)
- s20 = (time >= 1535137200000 and time < 1539111600000) ? 5.08 : na
- plot(s20, transp=0, linewidth=2, color=red)
- s21 = (time >= 1534806000000 and time < 1539806400000) ? 4.7 : na
- plot(s21, transp=0, linewidth=2, color=red)
- s22 = (time >= 1534683600000 and time < 1539543600000) ? 5.36 : na
- plot(s22, transp=0, linewidth=2, color=red)
- s23 = (time >= 1534546800000 and time < 1537138800000) ? 5.58 : na
- plot(s23, transp=0, linewidth=2, color=red)
- s24 = (time >= 1534489200000 and time < 1538910000000) ? 4.94 : na
- plot(s24, transp=0, linewidth=2, color=red)
- s25 = (time >= 1534453200000 and time < 1537045200000) ? 4.49 : na
- plot(s25, transp=0, linewidth=2, color=red)
- s26 = (time >= 1534327200000 and time < 1537560000000) ? 4.57 : na
- plot(s26, transp=0, linewidth=2, color=red)
- s27 = (time >= 1534291200000 and time < 1539266400000) ? 4.76 : na
- plot(s27, transp=0, linewidth=2, color=red)
- s28 = (time >= 1534208400000 and time < 1536800400000) ? 4.27 : na
- plot(s28, transp=0, linewidth=2, color=red)
- s29 = (time >= 1534186800000 and time < 1536778800000) ? 4.62 : na
- plot(s29, transp=0, linewidth=2, color=red)
- s30 = (time >= 1534006800000 and time < 1538874000000) ? 5.27 : na
- plot(s30, transp=0, linewidth=2, color=red)
- s31 = (time >= 1534003200000 and time < 1537851600000) ? 4.87 : na
- plot(s31, transp=0, linewidth=2, color=red)
- s32 = (time >= 1533902400000 and time < 1536494400000) ? 5.65 : na
- plot(s32, transp=0, linewidth=2, color=red)
- s33 = (time >= 1533852000000 and time < 1538269200000) ? 5.92 : na
- plot(s33, transp=0, linewidth=2, color=red)
- s34 = (time >= 1533744000000 and time < 1538769600000) ? 5.44 : na
- plot(s34, transp=0, linewidth=2, color=red)
- s35 = (time >= 1533690000000 and time < 1538625600000) ? 6.42 : na
- plot(s35, transp=0, linewidth=2, color=red)
- s36 = (time >= 1533157200000 and time < 1535857200000) ? 6.93 : na
- plot(s36, transp=0, linewidth=2, color=red)
- s37 = (time >= 1533110400000 and time < 1535936400000) ? 7.32 : na
- plot(s37, transp=0, linewidth=2, color=red)
- s38 = (time >= 1533085200000 and time < 1535677200000) ? 7.1 : na
- plot(s38, transp=0, linewidth=2, color=red)
- s39 = (time >= 1532725200000 and time < 1535317200000) ? 8.5 : na
- plot(s39, transp=0, linewidth=2, color=red)
- s40 = (time >= 1532692800000 and time < 1535284800000) ? 8.03 : na
- plot(s40, transp=0, linewidth=2, color=red)
- s41 = (time >= 1532131200000 and time < 1535587200000) ? 7.63 : na
- plot(s41, transp=0, linewidth=2, color=red)
- s42 = (time >= 1531900800000 and time < 1535176800000) ? 8.83 : na
- plot(s42, transp=0, linewidth=2, color=red)
- s43 = (time >= 1531688400000 and time < 1535562000000) ? 7.51 : na
- plot(s43, transp=0, linewidth=2, color=red)
- s44 = (time >= 1531378800000 and time < 1533970800000) ? 6.64 : na
- plot(s44, transp=0, linewidth=2, color=red)
- s45 = (time >= 1531288800000 and time < 1534104000000) ? 6.84 : na
- plot(s45, transp=0, linewidth=2, color=red)
- s46 = (time >= 1530856800000 and time < 1535115600000) ? 8.38 : na
- plot(s46, transp=0, linewidth=2, color=red)
- s47 = (time >= 1530662400000 and time < 1534590000000) ? 8.63 : na
- plot(s47, transp=0, linewidth=2, color=red)
- s48 = (time >= 1530586800000 and time < 1533301200000) ? 9.27 : na
- plot(s48, transp=0, linewidth=2, color=red)
- s49 = (time >= 1530576000000 and time < 1535072400000) ? 8.95 : na
- plot(s49, transp=0, linewidth=2, color=red)
- s50 = (time >= 1530565200000 and time < 1534525200000) ? 9.09 : na
- plot(s50, transp=0, linewidth=2, color=red)
- s51 = (time >= 1530453600000 and time < 1535580000000) ? 7.87 : na
- plot(s51, transp=0, linewidth=2, color=red)
- s52 = (time >= 1530270000000 and time < 1534042800000) ? 7.19 : na
- plot(s52, transp=0, linewidth=2, color=red)
- s53 = (time >= 1530068400000 and time < 1534305600000) ? 7.32 : na
- plot(s53, transp=0, linewidth=2, color=red)
- s54 = (time >= 1529892000000 and time < 1534993200000) ? 7.76 : na
- plot(s54, transp=0, linewidth=2, color=red)
- s55 = (time >= 1529870400000 and time < 1534788000000) ? 8.26 : na
- plot(s55, transp=0, linewidth=2, color=red)
- s56 = (time >= 1529852400000 and time < 1532444400000) ? 6.96 : na
- plot(s56, transp=0, linewidth=2, color=red)
- s57 = (time >= 1529161200000 and time < 1531753200000) ? 10.27 : na
- plot(s57, transp=0, linewidth=2, color=red)
- s58 = (time >= 1528905600000 and time < 1531497600000) ? 9.55 : na
- plot(s58, transp=0, linewidth=2, color=red)
- s59 = (time >= 1528668000000 and time < 1532062800000) ? 10.14 : na
- plot(s59, transp=0, linewidth=2, color=red)
- s60 = (time >= 1528632000000 and time < 1531224000000) ? 13.2 : na
- plot(s60, transp=0, linewidth=2, color=red)
- s61 = (time >= 1528387200000 and time < 1530979200000) ? 14.43 : na
- plot(s61, transp=0, linewidth=2, color=red)
- s62 = (time >= 1528185600000 and time < 1530777600000) ? 13.91 : na
- plot(s62, transp=0, linewidth=2, color=red)
- s63 = (time >= 1528142400000 and time < 1531044000000) ? 13.72 : na
- plot(s63, transp=0, linewidth=2, color=red)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement