RicardoSantos

[RS]Grid Deploy System V0

159 3 21
request for coondawg71
showgriddepth options (0 to 4) will show more or less lines.
gridspacing : value in points (PIP*0.1)
Remove from Favorite Scripts Add to Favorite Scripts
study(title="[RS]Grid Deploy System V0", shorttitle="[RS]GDS.V0", overlay=true)//, precision=5)
showgriddepth = input(defval=4, minval=0, maxval=4)
gridspacing = input(250, type=float) * syminfo.mintick

midline = round(close/gridspacing)*gridspacing

upline1 = midline + gridspacing
upline2 = midline + gridspacing * 2
upline3 = midline + gridspacing * 3
upline4 = midline + gridspacing * 4
downline0 = midline - gridspacing
downline1 = midline - gridspacing * 2
downline2 = midline - gridspacing * 3
downline3 = midline - gridspacing * 4
downline4 = midline - gridspacing * 5

scolor = midline == midline[1] ? black : na
plot(midline, style=linebr, color=scolor, trackprice=true)
plot(showgriddepth < 1 ? na : upline1, style=linebr, color=scolor, trackprice=true)
plot(showgriddepth < 2 ? na : upline2, style=linebr, color=scolor, trackprice=true)
plot(showgriddepth < 3 ? na : upline3, style=linebr, color=scolor, trackprice=true)
plot(showgriddepth < 4 ? na : upline4, style=linebr, color=scolor, trackprice=true)
plot(downline0, style=linebr, color=scolor, trackprice=true)
plot(showgriddepth < 1 ? na : downline1, style=linebr, color=scolor, trackprice=true)
plot(showgriddepth < 2 ? na : downline2, style=linebr, color=scolor, trackprice=true)
plot(showgriddepth < 3 ? na : downline3, style=linebr, color=scolor, trackprice=true)
plot(showgriddepth < 4 ? na : downline4, style=linebr, color=scolor, trackprice=true)
These fixed value price grids are the best levels for short term tp and sl.
Reply
Thank you. Looking forward to commentary when you have time.
Reply
Ricardo ! You rock man, thank you!
Reply
English
English (UK)
English (IN)
Deutsch
Français
Español
Italiano
Polski
Türkçe
Русский
Português
Bahasa Indonesia
Bahasa Melayu
ภาษาไทย
Tiếng Việt
日本語
한국어
简体
台灣
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out