It should be considered that the TradeAlgorithms.mqh library file is designed to use Expert Advisors by brokers who offer nonzero spread and ability to set Stop Loss and Take Profit simultaneously opening a position.
Default Expert Advisor's input parameters have been used during the tests shown below. Stop Loss and Take Profit have not been used during the tests.
Default Expert Advisor's input parameters have been used during the tests shown below. Stop Loss and Take Profit have not been used during the tests.