Order Pos
Understand the Order Pos parameter in Origami Tech, defining order position within grid or strategy logic for structured trade execution.
order_pos [integer]
order_pos [integer]This is internal counter value for orders inside one grid. It can’t be placed inside grid’s settings It is positive for orders with side=’sell’ and negative for side = ’buy’ . The value can’t be zero. Range for the value is [-buy_orders_count, -1] **∪** [1, sell_orders_count]
order_pos can’t be used in update_balance_formula inside group and/or account
Examples:
Last updated