correct ema filter and alert on this indicator

Job ID: 34859791

Budget: $10 – $30 CAD

Hello,

it's a range indicator on chart, it draws the candle a different color according to :


the size (narrow, normal, climax)

and

the close (upclose = close is in the 33% higher / dnclose = close is in the 33% higher / else = Mid close).


2 corrections :


1/ add a Moving average filter for the alerts : close > ema = buy order only alerts / close < ema = sell order only alerts , also add switch false/true to enable the filter.

i already add the settings in the parameters but the rest of my code didn't seem to work.


2/ you can select how to draw bars between up/down candles and up close / mid close /down close, but the alerts need to be slighly modify :

modify it so it doesn't send alerts when it's a midclose bar on up/middle/down mode.

but still sending alert on mid close if it's on up / down mode.



thanks