RicardoSantos

[RS]Grid Deploy System V0

143 3 20
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)
Ricardo ! You rock man, thank you!
Reply
Alphaoptions
2 years ago
Thank you. Looking forward to commentary when you have time.
Reply
These fixed value price grids are the best levels for short term tp and sl.
Reply
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