Python for traders, tested by an engine that tells you if the edge is real.

Forge Developers is the manual, the reference and the code editor for Forge, Oathra's strategy tester. Indicators draw here. Strategies are tested in Forge on oathra.app.

A free Oathra account is enough to draw an indicator. A first test in Forge also needs price history, storage and credits.

rsi_cross.pypython
import forge as fg
from forge import param, ta

FORGE_API = 1


class RsiCross(fg.Strategy):
    bars = fg.bars.Time("H1")
    direction = "long"

    period = param.Int(14, min=2, max=50, group="RSI")
    buy_level = param.Int(30, min=10, max=45, step=5, group="RSI")
    exit_level = param.Int(60, min=50, max=80, step=5, group="RSI")

    def compute(self, d) -> fg.Signals:
        rsi = ta.rsi(d.close, self.period)
        return fg.Signals(
            long_entry=ta.crossover(rsi, self.buy_level),
            long_exit=rsi > self.exit_level,
        )

Open in the editorSee the example

I come from

Start here

Look it up

Coming soon: publishing, the Library, the API and MCP.