@xFelipe
I’m so sorry, but I mistakingly deleted your last post can you please re-post it?
Thank you 🙂
Ciao Roberto! No problem.
I am looking for to have a bb with 2 offset settings at the same indicator. Let me try to explain. I would like to have the bb upper and lower positioned in 2 difference values at the same time frame. let´s say: one value at a – position and the other value at the current price position. Would it be possible to create a rule showing offset “position view” -5 and another one saying offset “current position” +1? I know it sound strange but this would show me what i want to see.
For reference, the overall settings can be something like this: Length: 0 to 30, Source: close, Stddev: 0 to 5, Offset “position view”: -5 to +5, Offset “current position”: -5 to +5.
Please feel free to share your ideas. Thank you Roberto!
I don’t know if this is exactly what you meant, if it isn’t please attach a screenshot of what you want:
//BBp = 20 //20 periods
//BBdev1 = 1.0 //1.0 deviation
//BBdev2 = 2.0 //2.0 deviation
BBavg = average[BBp,0](close) //BB mean (middle line)
BollUp1 = BBavg + ((std[BBp](close)) * BBdev1) //BB Upper Band 1
BollDn1 = BBavg - ((std[BBp](close)) * BBdev1) //BB Lower Band 1
BollUp2 = BBavg + ((std[BBp](close)) * BBdev2) //BB Upper Band 2
BollDn2 = BBavg - ((std[BBp](close)) * BBdev2) //BB Lower Band 2
RETURN BollUp1 AS "UpperBand1",BollDn1 AS "LowerBand1",BollUp2 AS "UpperBand2",BollDn2 AS "LowerBand2"
I created a new topic, to keep it separate from the other one.
I might change the title if you prefer a different one.