flat
Simulated strategy state (not a broker position).
flat long short in position
These words describe Dovee's analytical position after buy/sell/exit rules — Charting.in does not connect them to a live broker account. Also available: entry price, entry time, bars since entry, position size, position average price, profit, profit percent, trade count.
Return value
true/false or series
Note
- State updates on closed bars as rules fire.
- Webhook payloads may include strategy_state as analysis metadata only.
Example
when fast crosses above slow and flat buy when long and close crosses below slow exit when long and bars since entry > 10 exit