CommunityGlossary › Holding Context
Strategy Engine

Holding Context

What the engine knows about your open position — entry price, profit, hold time — injected into the strategy.

What it means

Once a position opens, exit rules need facts about it: what you paid, how long you have held, how far up or down you are, and the best it ever looked. The engine maintains these and injects them as variables, so exit logic never has to reconstruct them from raw data.

Using the engine's values rather than hand-tracking them matters: self-computed entry prices drift from reality across partial fills and re-entries, and a drifted reference silently corrupts every exit threshold built on it.

Why traders care

  • Accurate position facts are the foundation of every exit rule.
  • Peak-profit tracking (for trailing exits) comes for free.

In a TraderWe strategy

if Price < EntryPrice and HoldTime > 900:
    Sell()
Underwater after 15 minutes — the thesis had its chance.

Educational content, not investment advice. Engine details describe how TraderWe computes this value; other platforms may define it differently.