Documentation/AlgoCode/Function reference

bar-close

Scripts run once per closed bar — not tick-by-tick.

Reference/Language basics/Language

evaluated on each closed candle

buy / sell / exit fire after the candle closes. Live size and exchange still come from Deploy.

Return value

Note

  • There is no Bid/Ask tick stream in Dovee. Use OHLCV series.
For developers
  • MQL5: like an Expert Advisor on a new bar, not OnTick.

Example

when close crosses above ema(21)
  buy

See also