Indicator line values - how to compare

 

Thanks for taking time to read and reply to my question:

.

If I am interested in evaluating the bollinger band 'width' (width would be defined as the value in pips between the outer bands).

.

I would like to put a pre-condition in the EA that says:

.

If the top bollinger band (value in price or pips) minus the bottom bollinger band is > than 40 pips then use the other logic and trade.

.

Thank you for your kind replies :)

 

https://docs.mql4.com/indicators/iBands

Get upper, get lower, substract, compare...

 
hasayama:

https://docs.mql4.com/indicators/iBands

Get upper, get lower, substract, compare...


Thanks for the link.