This script is a better version of my old intraday strategy. Now can also have BB with ATR to control volatility, you can see on the chart Take Profit and Stop loss value, but you can adjust it as you like. It is good on Intraday Time frame from 5 to 60 . Better if use together with some trend indicator like ADX , because with no trend is not accurate
Komen
TheConcierge
⋅
Hi, could you possibly clarify which colored line represents what?
Thanks
MarcoValente
⋅
If you open data window on the right of your scrren you ll find a legend of lines and colors. But if you need to know more , please just ask
MarcoValente
⋅
//Created By Marco 20 10 2016
//@version=2
// Intraday
study(title="BB ATR Intraday ", shorttitle=" BB ATR Intra Strat", overlay=true)
src = close
bas=input(true,"Base use Filter or MA?(filter is default)")
bblenght = input(55, minval=1, title="Bollinger Bars Lenght")
bbstdev = input(0.3, minval=0.1,step=0.05, title="Bollinger Bars Standard Deviation")
yy=input(true,"Use ATR BB?")
lena=input(20,"ATR Length")
mult = input(0.6,"Mult ATR",step=0.1, minval=0.001, maxval=50)
qw=input(false,"Show Take Profit level?")
tp =input(2.0,defval=2.0,step=0.5,title ="percentuale take profitto")
midBB=(upperBB+lowerBB)/2
col=close>midBB?lime:red
//is over the top?
isOverBBTop =low and close > upperBB ? true : false
isUnderBBBottom = high and close< lowerBB? true : false
newisOverBBTop = isOverBBTop != isOverBBTop[1]
newisUnderBBBottom = isUnderBBBottom != isUnderBBBottom[1]
//receive high and low range
high_range = valuewhen(newisOverBBTop and close>high[3]and close>high[1],hl2,0)
low_range = valuewhen(newisUnderBBBottom and close<low[3] and close < low[1],hl2,0)
//take it only if over the BB limit
buy_limit_entry = isOverBBTop ? high_range==high_range[1] ? high_range+0.0001: na : na
sell_limit_entry = isUnderBBBottom ? low_range==low_range[1] ? low_range-0.0001: na : na
take_profit_buy= isOverBBTop ? high_range==high_range[1] ? buy_limit_entry + 1*(buy_limit_entry-bblow)+2*(abs(bbhigh-bblow)) : na : na
take_profit_sell= isUnderBBBottom ? low_range==low_range[1] ? sell_limit_entry - 1*(bbhigh-sell_limit_entry)-2*(abs(bbhigh-bblow)) : na : na
take_profit2_buy= isOverBBTop ? high_range==high_range[1] ? buy_limit_entry + 1*(buy_limit_entry-bblow)+2*(abs(bbhigh-bblow)) + buy_limit_entry*tp/100 : na : na
take_profit2_sell= isUnderBBBottom ? low_range==low_range[1] ? sell_limit_entry - 1*(bbhigh-sell_limit_entry)-2*(abs(bbhigh-bblow))-sell_limit_entry*tp/100 : na : na
stop_loss_buy = isOverBBTop ? high_range==high_range[1] ? bblow : na : na
stop_loss_sell = isUnderBBBottom ? low_range==low_range[1] ? bbhigh : na : na
highlightHigh = isOverBBTop ? lime : aqua
highlightLow = isUnderBBBottom ? lime : aqua
colorLineUp = buy_limit_entry ?green : green
colorLineDown = sell_limit_entry ? red : red
colorBuyTP = high>=take_profit_buy ? lime : blue
colorSellTP = low<=take_profit_sell ? orange : maroon
colorBuyTP2 = high>=take_profit2_buy ? green : navy
colorSellTP2 = low<=take_profit2_sell ? maroon : fuchsia
I plot it again try to copy this one . This version you can hide the profit line so the grafic looks more clear
CEHido
⋅
Hi sir. Sorry to bother you. I have a question. I really liked the indicator you wrote. However, since it is an old pine version, I may have problems in the future. Is there a new version of this available? Or can you help with the new pine version?
Thank you so much.
Sincerely...
geochristythomas1996
⋅
Jh
ducip254
⋅
Hello! Does this repaint?
UnknownUnicorn2268682
⋅
Can you update this script to verrsion 4? Thanks
socialjks8
⋅
Really Great Indicator. Thanks. sir buy sell arrow too long. pls customise as triangle or dot...
Thanks