Skip to content

a self.eta error in TCO #88

@GXY2017

Description

@GXY2017

I don't know where does this int 10 come from, guess should be self.eta which default value is 10 ?

    def update_tco(self, x: npt.NDArray, b: npt.NDArray, x_pred: npt.NDArray):
        """
        :param x: ratio of change in price
        """
        lambd = 10 * self.trx_fee_pct  # SHOUD BE   self.eta * self.trx_fee_pct  ?

        # last price adjusted weights
        updated_b = np.multiply(b, x) / np.dot(b, x)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions