hi i wanted to code a rejection based strategy like a candlestick pattern of hammer coming on 50 ema or nearby touching that i am unable to do it can someone pleaser help me with it
hi i wanted to code a rejection based strategy like a candlestick pattern of hammer coming on 50 ema or nearby touching that i am unable to do it can someone pleaser help me with it
Yes. Combine a candlestick pattern keyword with an EMA check.
Position(HAMMER(Symbol(<inst>, '15m')), -1) == Number(1). HAMMER returns 1 on candles that form a hammer, else 0. -1 = last closed candle.Position(LOW(Symbol(<inst>, '15m')), -1) <= Position(EMA(CLOSE(Symbol(<inst>, '15m')), 50), -1)Position(CLOSE(Symbol(<inst>, '15m')), -1) > Position(EMA(CLOSE(Symbol(<inst>, '15m')), 50), -1)For “nearby” instead of an exact touch, allow a small gap: LOW <= EMA + Number(X).
For short trades, mirror it with SHOOTINGSTAR or INVERTED HAMMER, HIGH >= EMA and CLOSE < EMA. Other patterns: ENGULFING, DOJI, HARAMI, MORNINGSTAR.
Test in Live Offline. Keywords: Keyword Documentation — Tradetron
Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.
Request received. Pick a time now, or close this and we'll call you to set one up.
The calendar didn't load here. Open the booking page ↗
Booked. The calendar invite is on its way to your email.
Tradetron's AI assistant — pricing, brokers, strategies, anything.
AI can make mistakes. Consider checking important information.
How good was it?
We store the question and the answer with your report so the team can audit it.