Lavoro terminato
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Specifiche
Bollinger Bands Alerts Indicator
I want an indicator that triggers alerts when price crosses above the upper Bollinger band and also when it crosses the lower Bollinger band in real time. This means the indicator will not wait for the candle to close. The settings section should be something like this.
input int BB_Period = 20; //Bollinger Band Period
input double SD = 2.0; //Standard Deviation
input int Margin = 60; //Margin in Points
input bool MobileAlert = True; //Mobile Alert
input bool ScreenAlert = True; //Screen Alert
input int AlertNumbers = 3; //Count of Alerts
input int AlertSpace = 1; //Seconds Interval Between Alerts
Also Add Custom Alert Tune To Be Selected
input int AlertTrigger = X; //Number of times alerts will trigger per candle
Active Timeframe1 = M30; H1; H4; D1; W1
Once the Indicator is attached to any chart, I want it to operate on these mentioned timeframes irrespective of which timeframe the chart is on.
I want to be able to add or delete the timeframes from within the settings.
Alerts Messages:
When Bid price moves 60 points above the upper Bollinger band (60 is the Margin figure in settings) the Alert Message Should Read:
“(Currency Paid) (Timeframe) Above BB”
When Ask price moves 60 points below the lower Bollinger band (60 is the Margin figure in settings) the Alert Message Should Read:
“(Currency Paid) (Timeframe) Below BB”
Condition – Alert can only trigger X times during the candle timeframe. If X = 2 then when price crosses above it will trigger alert. Price must now close 60 points below this level. Now if it goes up again a second time alerts will be triggered. If this same happens a 3 rdtime alerts will Not trigger since X = 2
If you need any clarification on this please ask.