Value When for RSI — Tradetron Community
← Community

Value When for RSI

Uncategorized 1,040 views

Sunil

Entry by shorts and exit when SL trigger by Value When logic. Logic Value When code required with -1 candle crossed and closed above RSI 60 + 25 points (or 2.5%)

Tradetron Team Tradetron team

Value When returns a series value at the candle where one series crossed another:

Value When(Series1, 'crossed above' | 'crossed below', Series2, Series result, n) (n = 0 is the most recent cross)

Example, close of the candle where RSI crossed above 60:

Value When(RSI(CLOSE(Symbol(<inst>, '5m')), 14), 'crossed above', Number(60), CLOSE(Symbol(<inst>, '5m')), 0)

For a stop loss 25 points above it, use that value + Number(25) in the exit of your short. Keyword reference: Keyword Documentation — Tradetron

:sparkles: Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.