-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Little changes in Criterions and order creation needed #23
Comments
It is possible to create an |
And if we customize the |
Preparation for pending updates regarding Criterions see #23 #118 Changed the constructor of Order object: If creating a order via static buyAt() or sellAt() it must be delivered the corresponding time series, or a price and an amount. This should prevent to initialize an order with order price and amount of NaN, although the user wants to have close price (and default amount = 1) as order price. It is still possible to create an Order without time series and without price and amount, but it must happen explicit via sell/buyAt(index, NaN, NaN) TotalProfitCriterion can use order price: The TotalProfitCriterion is the first criterion that has been updated regarding #23 #118. It now takes the order price if it is NaN it takes the close price of entry/exit indices
Preparation for pending updates regarding Criterions see #23 #118 Changed the constructor of Order object: If creating a order via static buyAt() or sellAt() it must be delivered the corresponding time series, or a price and an amount. This should prevent to initialize an order with order price and amount of NaN, although the user wants to have close price (and default amount = 1) as order price. It is still possible to create an Order without time series and without price and amount, but it must happen explicit via sell/buyAt(index, NaN, NaN) TotalProfitCriterion can use order price: The TotalProfitCriterion is the first criterion that has been updated regarding #23 #118. It now takes the order price if it is NaN it takes the close price of entry/exit indices Removed TraillingStopLossIndicator and Test
Preparation for pending updates regarding Criterions see #23 #118 Changed the constructor of Order object: If creating a order via static buyAt() or sellAt() it must be delivered the corresponding time series, or a price and an amount. This should prevent to initialize an order with order price and amount of NaN, although the user wants to have close price (and default amount = 1) as order price. It is still possible to create an Order without time series and without price and amount, but it must happen explicit via sell/buyAt(index, NaN, NaN) TotalProfitCriterion can use order price: The TotalProfitCriterion is the first criterion that has been updated regarding #23 #118. It now takes the order price if it is NaN it takes the close price of entry/exit indices Removed TraillingStopLossIndicator and Test
The analysis criteria are used in a backtesting phase. Basically, backtesting is executing a new strategy over past data. |
I do not quiet understand you. If your strategy is based on close prices and you want to specify that your sell/buy price equals the underlying close price (currently the only possible case) you can do so further on. The only difference in #126 is, that the order price has to be initialized with this close price or another price
Otherwise it is confusing if we provide the |
OK, I understand. Sorry I did not check #126 before. |
Okay, thanks for your support |
#126) * Constructor of Order changed. TotalProfitCriterion can use order price Preparation for pending updates regarding Criterions see #23 #118 Changed the constructor of Order object: If creating a order via static buyAt() or sellAt() it must be delivered the corresponding time series, or a price and an amount. This should prevent to initialize an order with order price and amount of NaN, although the user wants to have close price (and default amount = 1) as order price. It is still possible to create an Order without time series and without price and amount, but it must happen explicit via sell/buyAt(index, NaN, NaN) TotalProfitCriterion can use order price: The TotalProfitCriterion is the first criterion that has been updated regarding #23 #118. It now takes the order price if it is NaN it takes the close price of entry/exit indices * Constructor of Order changed. TotalProfitCriterion can use order price Preparation for pending updates regarding Criterions see #23 #118 Changed the constructor of Order object: If creating a order via static buyAt() or sellAt() it must be delivered the corresponding time series, or a price and an amount. This should prevent to initialize an order with order price and amount of NaN, although the user wants to have close price (and default amount = 1) as order price. It is still possible to create an Order without time series and without price and amount, but it must happen explicit via sell/buyAt(index, NaN, NaN) TotalProfitCriterion can use order price: The TotalProfitCriterion is the first criterion that has been updated regarding #23 #118. It now takes the order price if it is NaN it takes the close price of entry/exit indices Removed TraillingStopLossIndicator and Test * Constructor of Order changed. TotalProfitCriterion can use order price Preparation for pending updates regarding Criterions see #23 #118 Changed the constructor of Order object: If creating a order via static buyAt() or sellAt() it must be delivered the corresponding time series, or a price and an amount. This should prevent to initialize an order with order price and amount of NaN, although the user wants to have close price (and default amount = 1) as order price. It is still possible to create an Order without time series and without price and amount, but it must happen explicit via sell/buyAt(index, NaN, NaN) TotalProfitCriterion can use order price: The TotalProfitCriterion is the first criterion that has been updated regarding #23 #118. It now takes the order price if it is NaN it takes the close price of entry/exit indices Removed TraillingStopLossIndicator and Test
@team172011 this issue is 4 years open. (When) are you planning to work on this? |
I think this has been partially resolved by introducing the Position#getProfit and similar methods. So I think this can be closed as far as there are no further issues discovered by other users |
@team172011 In general: Would be nice to cleanup the remaining issues, those:
Please take care of it and close all those issues. |
Regarding: mdeverdelhan/ta4j-origins#194 (comment)
Ccob:
In my opinion it does not make much difference at the moment. But it needs to be fixed for the sake of accuracy
The text was updated successfully, but these errors were encountered: