CPR Dhaval
CPR Dhaval
0 at
https://mozilla.org/MPL/2.0/
// © D_CryptoKnight
// 🆂🆄🅿🅻🅴🆇 🅲🅸🆃🆈 EDIT 5/2/2023
//@version=5
new_bar(res) =>
ta.change(time(res)) != 0
new_period(condition, src) =>
result = 0.0
result := condition ? src : result[1]
result
one_day = 1000 * 60 * 60 * 24
new_day = daily_cpr > 0 and timenow - time < one_day * daily_cpr and new_bar('D')
dpp_ = new_period(new_day, dpp)
dtc_ = new_period(new_day, dtc)
dbc_ = new_period(new_day, dbc)
dR1_ = new_period(new_day, dR1)
dS1_ = new_period(new_day, dS1)
dR2_ = new_period(new_day, dR2)
dS2_ = new_period(new_day, dS2)
dR3_ = new_period(new_day, dR3)
dS3_ = new_period(new_day, dS3)
dPH_ = new_period(new_day, dPH)
dPL_ = new_period(new_day, dPL)
//Weekly
//Monthly pvts
// Script settings
emaLength = input.int(title='EMA Length', defval=200, minval=2)
emaSource = input(title='EMA Source', defval=close)
// This source code is subject to the terms of the Mozilla Public License 2.0 at
https://mozilla.org/MPL/2.0/
// © D_CryptoKnight
indicator(title='𝗜𝗻𝘁𝗿𝗮𝗱𝗮𝘆-𝗗𝗵𝗮𝘃𝘀', shorttitle='𝗜𝗻𝘁𝗿𝗮𝗱𝗮𝘆-𝗗𝗵𝗮𝘃𝘀', overlay=true)
//fil