PJSantos100: alert when 3 consecutive bars close (bearish or bullish) ... Any clue how to do it? |
You'll want to have a read up on Open[] and Close[] to determine if a bar is bullish and bearish. For example, Open[0] is the current bar's open price whereas Close[1] is the close price of the previous bar. Close[2] would be the close of the bar before that, and so on.
You'll want to have a read up on Alert() for generating the alert.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi guys,
I just want to write a small indicator to give me an alert when 3 consecutive bars close (bearish or bullish) ... Any clue how to do it?
Thanks in Advance