mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-06 09:32:55 +00:00
A property grid offers to clear a Unit value unless the property is marked [Required]; pressed, the clear button wrote null into a setter that refuses it and nothing happened - the emulator's price shift among them. Every public Unit property of the core that refuses null now says so: the commission rules' value, the PnL risk rule, the volume trigger of a continuous security, the box size of point-and-figure candles, the emulator's price shift and the volume part of the position modify element, through a new DiagramElementParam.SetRequired. A test in UnitTests walks the public types and fails on a Unit property that refuses null and is not marked where a property grid reads it.