private float GenerateMockData(Random rnd, Candle candle, float vlr, float animosity) { float gapNext = Utils.Random(rnd, -0.5f + (animosity < 0?animosity:0), 0.5f + (animosity > 0 ? animosity : 0)); candle.AddData(vlr, vlr, vlr, vlr, 100000 * (1 + Math.Abs(gapNext) / 100)); vlr *= (1 + gapNext / 100); if (vlr < 10) { vlr = 10; } return(vlr); }