Appearance

Personalize your experience

Mode
Accent Color
Direction
All Docs/QuaScript//
QuaScript logo

QuaScript Documentation

Language guide, engine API, 601 builtins and the preset library · v3.0.0-phase1

exit

Generated from the engine catalog by tools/gen-docs.mjs; do not edit.

exit.bracket

script.qs
exit.bracket(id, entry = , stop = na, target = na, trail_offset = na, trail_trigger = na, qty = na, qty_pct = 100, unit = price)

Stop / target / trailing exit for an entry (or all lots); stop and target cancel each other.

ArgumentKindDefaultNotes
idtextrequired
entrytext""
stopnumna
targetnumna
trail_offsetnumna
trail_triggernumna
qtynumna
qty_pctnum100
unittextpriceone of price, ticks

exit.close

script.qs
exit.close(id, qty = na, qty_pct = 100)

Closes the lots opened by entry id at the next open.

ArgumentKindDefaultNotes
idtextrequired
qtynumna
qty_pctnum100

exit.close_all

script.qs
exit.close_all()

Flattens the position at the next open.


© 2026 Quatick Technologies. All rights reserved.