Distant Between Band
-

Hi, need help with this one. How can i tell the EA to check if the distant of the 2 bands if it's increasing @ decreasing? Thanks.
-
Check distance over candle id's, for e.g if id4is<if3&id3<id2&ifid2<id1 then gap is increasing.
-
@jstap so I'll need to use lots of block?
What i understand your example is only for single band? I'm trying to get distant between 2 band in candle id3<id2<id1. -
Yes multiple blocks, as many as you need, but when upper band is increasing, the tower is too.
-
@jstap I'm sorry, what i mean is the distance, gap between the 2 bands. Upper1&Upper2, Lower1&Lower2.
-
On you're picture you have an upper and lower band, they both move in conjunction.
-
https://fxdreema.com/shared/jWeTdUXTd its good ?
-
Not sure what you are doing with your formula, this is an idea of how to do it, you will need as many blocks as candles:

-
it is however simple, the upper limit returns a price the lower limit also returns a price, I subtract the 2 with a formula block to measure the distance in price
if you want to measure the evolution you do the same on x previous candle with a condition block which checks the evolution of the varialbe
-
Ok but the lines are never = so you need to set a distance value to know if lines are widening.
-
-
@biztet You can do it like this: https://fxdreema.com/shared/GFLkPs3xb
-
yes jstep you are right about the answer you gave me, doing as would even be better -
Thanks guys. Appreciate it. I'll try this. Thanks again.
-
Don't think you need the +2? As was, it was was comparing candle to the one before, as is now you are messing with the the distance of a candle, but you change this on different blocks..
-
here we do not count the lower limit to the lower limit +1 but the difference between the deviation terminal 4 to the deviation terminal 2 and we look for a positive evolution, and by taking a step we avoid too weak evolution