i would appreciate some Help with pine code to plot sell signal for red candle close is at or below 50% below mid point of candle( i.e. open and close should be in the lower 50% of the body). Candle should be above 5ema and should not touch 5ema
Also if possible - option of Adjustment of candle formation ( if we want to change the lower 50% formation) i.e body of candle size less than 50% but can open anywhere.
Any help would be grateful enter image description here