Quoting brainjtDislikedHi how can candle close outside channelprice?
Whenever the candle closes outside the channel lines, this is the entry (closing price or as close to it)
can you attach. chart:?
bjIgnored
It's simply the latest highs and lows but excluding the current candle, if you set shift = 1.
I'll still add my version, for those who prefer a little cleaner code. :
And I got rid of the Middle Line.
Attached File(s)
PriceChannel.mq4
2 KB
|
1,523 downloads