Skip to content

ATOM 5.1 / TRADESCRIPT V1

TradeScript
Documentation

Your trading idea, written as a strategy.
Learn the language. Build your first script.

my_first_strategy.stratTradeScript v1
//@version=1

symbol: TCS
run: daily
size: 5% of portfolio per instrument

entry:
    long when: rsi(14) > 50 and ema(50) > ema(200)
exit:
    long when: rsi(14) < 45
A rule you can read.Enter on RSI strength with a trend filter.
Exit when RSI falls below 45.