Targets
forge.signalsclassSince Forge API 1
Signaturepython
forge.signals.Targets(rungs: Sequence[tuple[float, Target]],*,note: str | None = None) -> NoneSeveral targets that each close a part of the trade: fg.Targets([(0.5, t1), (0.5, t2)]).
Parameters
| Name | Type | Default |
|---|---|---|
| rungs | Sequence[tuple[float, Target]] | |
| note | str | None | None |
Members
| Name | Signature | Summary |
|---|---|---|
| label | (self) -> str | The declaration as written in a file. |
Each rung is a fraction of the trade and a fg.Target. Fractions are above 0 and add up to
at most 1, and there are 1 to 10 rungs. Two rungs never share a level.