You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am reading through the code since I plan to use this environment for a project, and I've realised that an action is only considered a trade if we change from a buy-action sequence to a sell-action or vice versa.
If at a time point t, the agent buys, and then at the next time point t+1 it also suggests a buy action, will the agent now hold 2 shares? I haven't been able to find evidence in the code that the second buy action is considered, and that a second share is bought. It seems that once there is a buy action, all subsequent buy actions pertain to "holding"?
Could you outline how the subsequent buy orders are handled please?
The text was updated successfully, but these errors were encountered:
Since (ignoring ask and bid fees) the profit update is $$\text{current profit} \times \frac{\text{current price}}{\text{last price}}$$,
If the current price is 0, then regardless of the previous profit, we now have 0 profit. So a buy position assumes we are all-in every time rather than a single share, or am I missing something? This is different from the reward calculation behaviour, which considers absolute price differences instead. So there is often a disagreement between both metrics. Please see an example below from a signal I simulated.
Hi, I am reading through the code since I plan to use this environment for a project, and I've realised that an action is only considered a trade if we change from a buy-action sequence to a sell-action or vice versa.
If at a time point t, the agent buys, and then at the next time point t+1 it also suggests a buy action, will the agent now hold 2 shares? I haven't been able to find evidence in the code that the second buy action is considered, and that a second share is bought. It seems that once there is a buy action, all subsequent buy actions pertain to "holding"?
Could you outline how the subsequent buy orders are handled please?
The text was updated successfully, but these errors were encountered: