.. Copyright (C) 2023-2024 Enzo Busseti .. This file is part of Cvxportfolio. .. Cvxportfolio is free software: you can redistribute it and/or modify it under .. the terms of the GNU General Public License as published by the Free Software .. Foundation, either version 3 of the License, or (at your option) any later .. version. .. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT .. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS .. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more .. details. .. You should have received a copy of the GNU General Public License along with .. Cvxportfolio. If not, see . Market-Neutral Portfolio (Without Costs) ======================================== .. automodule:: examples.market_neutral_nocosts .. literalinclude:: ../../examples/market_neutral_nocosts.py :language: python :start-after: if __name__ == :end-before: # we use this to save the plots :dedent: This is the output printed to screen when executing this script. .. literalinclude:: ../_static/market_neutral_nocosts_output.txt :language: text And this is the figure that is plotted. .. figure:: ../_static/market_neutral_nocosts.png :scale: 100 % :alt: examples/market_neutral_nocosts.py result figure This figure is made by the :meth:`cvxportfolio.result.BacktestResult.plot` method.