Alert when price crosses upper and/or lower BB


0
0

I am trying to create an alert that alerts me when the price is crossing the bollingerband (9 length,exponential) on either the upper and/or lower band. This is for forex pairs. I would also liek to ou tthat code into a scan if possble. The code that I have created with condition wized is below. Also, a screenshot of the price action set up im looking for. I want the alert when its eithere or.

bid() is greater than BollingerBands(“length” = 9, “average type” = “EXPONENTIAL”).”UpperBand” or bid() is less than BollingerBands(“length” = 9, “average type” = “EXPONENTIAL”).”LowerBand”

Attachments:
Marked as spam
Posted by (Questions: 1, Answers: 1)
Asked on July 1, 2020 1:54 pm
220 views
0
Private answer

There is nothing for me to do there. What you have is already complete. Why did you post this question if you have already created the solution?

The only change I could suggest is to replace "is greater than" with "crosses above" and replace "is less than" with "crosses below".

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on July 1, 2020 4:52 pm
0
Thank you Pete! I just wanted to make sure that there weren’t slight changes that could be made to improve it. It seems when I do ”crosses above” or ”crosses below” the condition wizard grays out and its says No historical values for BID. Also, it wont let me create alert. What shoud I do to fix that? Thank you CC
( at July 1, 2020 6:54 pm)
0
I have zero experience with Forex. Only thing I can suggest is to try using something other than Bid until you find something that works.
( at July 1, 2020 9:26 pm)