MaxTesla

QP by FXNH

114 0 12
adfasdf
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
study(title="QP by FXNH",shorttitle="QP", overlay=true)
timeinrange(res, sess) => time(res, sess) != 0
priceFraction = input(defval=0.01, title='Price Fraction')
MajorQuarter = input(defval=1.12500, title='Major Quarter')
MQhigh = MajorQuarter+priceFraction
MQlow = MajorQuarter-priceFraction
MQhighTwice = MQhigh+priceFraction
//MLQPh = MLQPm + priceFraction
plot(MQhighTwice,style=line,color=orange, linewidth=4)
plot(MQhigh, style=line,color=orange, linewidth=4)
plot(MajorQuarter,style=line,color=orange, linewidth=4)
plot(MQlow,style=line,color=orange, linewidth=4)

LQ = MajorQuarter-(priceFraction/2)
LQhigh = MQhigh-(priceFraction/2)
LQhighTwice = MQhighTwice-(priceFraction/2)
LQlow = MQlow-(priceFraction/2)
plot(LQhigh, style=line,color=blue, linewidth=2)
plot(LQ,style=line,color=blue, linewidth=2)
plot(LQlow,style=line,color=blue, linewidth=2)
plot(LQhighTwice,style=line,color=blue, linewidth=2)
plot(MQhigh-(priceFraction/4), style=line,color=yellow, linewidth=1)
plot(MQhighTwice-(priceFraction/4), style=line,color=yellow, linewidth=1)
plot(MajorQuarter-(priceFraction/4), style=line,color=yellow, linewidth=1)
plot(MQlow-(priceFraction/4), style=line,color=yellow, linewidth=1)
plot(LQhigh-(priceFraction/4), style=line,color=yellow, linewidth=1)
plot(LQhighTwice-(priceFraction/4), style=line,color=yellow, linewidth=1)
plot(LQ-(priceFraction/4), style=line,color=yellow, linewidth=1)
plot(LQlow-(priceFraction/4), style=line,color=yellow, linewidth=1)
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out