Hello Apprentice, may I ask you to create this code?
ema34 on high
ema34 on close
ema34 on low
uptrend:
- if price has crossed ema34 "high" and it is still above ema34 "low";
downtrend:
- if price has crossed ema34 "low" and it is still below ema34 "high"
inside-bar:
- if "high-today" < "high-yesterday" and "low-today" > "low-yesterday"
signal:
- ▲ (long) if donwtrend is confirmed and the current candle is bull and the yesterday-candle
is bear
- ▼ (short) if uptrend is confirmed and the current candle is bear and the yesterday-candle
is bull
signal is invalidated if:
- the range of the current candles is < than 50% (customizable)
Many thanks, have a nice evening