Configure the real generated copy
- Select the intended linked account and instrument in Liftx Trading.
- Create an Advanced setup with terminate permission only. No imported opening request is required, but the selected market must resolve its unit and the setup still requires a positive quantity cap. That cap does not grant OPEN permission.
- Decide which positions the new setup can actually manage. A fresh namespace has no own positions; This strategy’s positions may therefore match none. To select manual or other strategy positions, explicitly grant market termination and choose All positions in this market.
- Generate Exit-only · confirmed-bar termination signals.
- Use standard time-based candles of at least one minute. Set a future Start time and a positive TERMINATE when close crosses below threshold.
- After activation, enable it and create Any alert() function call before Start time, using the Liftx webhook URL.
Complete source
Download the public Pine example.Before adapting the sample
The generated private copy replaces the dummytoken, link, catalog ID, source UUID, binding revision and liftxCredentialExpiresAt. This Exit-only script has no opening payload. Do not turn the public sample into a live sender by changing only its token.
Retain one ordered producer per setup, preserve event identities on delivery retries and never reuse a lifecycle reference for a new position. Pine setup, canonical command fields and target semantics explain the contract.
After any interruption, inspect Activity and actual positions, manage remaining orders/exposure and create a fresh source for a new alert. The example has no execution feedback, automatic delivery retry, automatic rearm or restart recovery.