/** * @test */ public function create_custom_simulation() { $simulator = new Simulator(); $simulator->startPrice(100); $simulator->simulate(10, 0.01, 0.1); $simulator->simulate(10, 0.02, 0.05); $simulator->close(); $this->assertNotEquals(100, $simulator->close); }
/** * Set Volatility * * @param $deviation */ public function volatility($deviation) { $this->simulator->volatility($deviation); }