Coding Bar Pattern
Posted: Fri Apr 01, 2022 9:46 pm
In Forex, in a down market, sometimes the top of the price candles will use the ema as resistance
Is this the right syntax for coding this pattern
//This code should detect the high of the previous bar when the high is equal to the ema or within 11 pips of the ema and the bar closed down.
(HIGH [1] <= (ta.ema - 0.09%) and (close [1] < ta.ema)
Is this the right syntax for coding this pattern
//This code should detect the high of the previous bar when the high is equal to the ema or within 11 pips of the ema and the bar closed down.
(HIGH [1] <= (ta.ema - 0.09%) and (close [1] < ta.ema)