Lean icon indicating copy to clipboard operation
Lean copied to clipboard

Extreme Unrealized Profit

Open AlexCatarino opened this issue 7 months ago • 0 comments

Expected Behavior

We don't see equity curve jumps due to unrealized profit that aren't real (e.g.: huge bid/ask when the market is closed)

Actual Behavior

Image

Image

Potential Solution

When the market is closed or the bid/price/ask spread is "suspicious" in live mode, use the price instead of the bid or ask.

Checklist

  • [x] I have completely filled out this template
  • [x] I have confirmed that this issue exists on the current master branch
  • [x] I have confirmed that this is not a duplicate issue by searching issues

AlexCatarino avatar May 26 '25 17:05 AlexCatarino