I'm trying to get current value of upper and lower bollinger band and get the distance between them.
- Envelopes - Trend Indicators - Technical Indicators - Price Charts, Technical and Fundamental Analysis
- Envelopes - Trend Indicators - Indicators - Charts - MetaTrader 5 for Android
- Envelopes - Trend Indicators - Indicators - Chart - MetaTrader 5 for iPhone
I'm trying to make an indicator which alert when the bollinger band squeeze at the define distance and alert when the bands start open . I'm new to mql4 , Could someone help ?
If your new to MQL it can be helpful to take an existing indicator and adjust it so that it displays what you want. Perhaps take something like the RSI indicator, copy the code and adjust it so that it displays the Bollinger band squeeze. This function might be useful: iBands. You could then try to adjust it to include some extra reporting like SendMail, SendNotification, Comment, Print, Alert. If you don't need to see the squeeze and just want an email, you could stick it in an EA rather than an indicator. It would also be a good idea to think about when you want the alert to happen. For example it wouldn't be great if you had an Alert box firing off every time you get a tick outside of the Bollinger Band squeeze. You could take a look at the common functions list Common Functions, and you may want to know how to manipulate date and time.
- docs.mql4.com
If your new to MQL it can be helpful to take an existing indicator and adjust it so that it displays what you want. Perhaps take something like the RSI indicator, copy the code and adjust it so that it displays the Bollinger band squeeze. This function might be useful: iBands. You could then try to adjust it to include some extra reporting like SendMail, SendNotification, Comment, Print, Alert. If you don't need to see the squeeze and just want an email, you could stick it in an EA rather than an indicator. It would also be a good idea to think about when you want the alert to happen. For example it wouldn't be great if you had an Alert box firing off every time you get a tick outside of the Bollinger Band squeeze. You could take a look at the common functions list Common Functions, and you may want to know how to manipulate date and time.
Okay thanks very much. I've found the values of upper and lower band . I'll come back to you If I stuck somewhere. Thanks again.
Hi,
Can I get Bollinger band squeeze and expansion code .
If not so can anybody tell to get parameters value set in bollinger bands like deviation , bands_shift etc .
- tradingsim.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use