I open up a strategy using a streaming chart, specifically for ETH.USD. I can see my positions correctly indicated on the chart. However, when I switch to Weekly, my positions are shown on the incorrect week. See attached.

Rename
Thanks, well take a look at this.
So far I haven't been able to duplicate this. I see Coinbase in your Broker drop down. Are you using our old Coinbase extension?
The coinbase account is one of the paper accounts in my custom paper accounts provider. All the charting works correctly for every position in my paper accounts provider except crypto. The only thing I could think of is that crypto is traded 24x7. Not sure why that would matter. I have another crypto position and it is failing as well. Could the issue be in the strategy? I should try another strategy with crypto to see if the issue follow the crypto or the strategy.
Which Historical Data Provider is showing in the status bar at the bottom of the chart?
I am using CryptoCompare as the data provider and the market Cryptos. I was able to recreate the issue using the dummy broker and a simple strategy.
1) Purchase ETH.USD into the Dummy Broker account. I did that on a sunday but for some reason it shows as being bought last Wed.
2) Create a simple strategy (see attached).
3) Set up chart streaming with the strategy, data broker account, and symbol ETH.USD for Daily (see attached).
4) Switch to weekly (see attached). Again it is off.


1) Purchase ETH.USD into the Dummy Broker account. I did that on a sunday but for some reason it shows as being bought last Wed.
2) Create a simple strategy (see attached).
3) Set up chart streaming with the strategy, data broker account, and symbol ETH.USD for Daily (see attached).
4) Switch to weekly (see attached). Again it is off.
Even though you bought the position on Sunday (today) it is showing up earlier in the history because the Sunday bar is not completed yet.
The Live Positions attempts to sync a position reported by the broker to the most recent historical bar that can accommodate its price. The broker doesn't report an entry date for a position so this is the best we can do. Since the Sunday bar isn't complete yet, it's not considered.
As for this weekly anomaly, let me take a look.
The Live Positions attempts to sync a position reported by the broker to the most recent historical bar that can accommodate its price. The broker doesn't report an entry date for a position so this is the best we can do. Since the Sunday bar isn't complete yet, it's not considered.
As for this weekly anomaly, let me take a look.
I see the issue in weekly, we'll work on fixing that.
The reason it's setting it to that bar on the weekly chart is because the strategy generated an entry on that bar in the historical backtest. Even though the price is out of range of that bar, there are cases where it's legitimate to still place the live position on that bar. So while it may not look nice, we'll leave this as is in this case. Either way it should not impact the execution of the strategy.
Your Response
Post
Edit Post
Login is required