Exit
forge.signalsclassSince Forge API 1
Signaturepython
forge.signals.Exit()The ways to close trades together or by time: fg.Exit.basket.
Members
| Name | Signature | Summary |
|---|---|---|
| basket | (*, profit_cash: float | None = None, loss_cash: float | None = None, tag: str | None = None, note: str | None = None) -> Basket | Close the strategy's positions together at a total profit or loss, in cash. |
More constructors are added here as the language grows. They are class attributes of a
strategy, like basket = fg.Exit.basket(profit_cash=100).