-
Notifications
You must be signed in to change notification settings - Fork 15
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
'quotes' values are incorrect? #6
Comments
I noticed that the lag comes from the function websocket_log() when it get the data it is 2 hours ahead, e.g. for the timestamp '1719123870.591' it is '6/22/2024, 11:24:30 PM' when really my actual time is '09:24:30 PM'. |
hi @Leoalv72, datetimes coming from websocket have UTC timestamps, where is your local timezone can be different. That's why you can have a lag 2-3 hours. |
The condition you have in the second picture will not work, as you have orders all the time. Today I pushed a little update to |
To make sure that data from websocked is valid, you can compare a current currency value in the graph and the one in the console |
Ok, thanks for replay. |
to print a graph, you can place this code somewhere inside
|
I Watch the last values for Psar[-1] and notice the value for date is not the same of the actual time.. it was hour 23:46 and my times was 20:40 (10:40pm), It is the same problem if I use the actual time in PO or change it 2 hours after. I think that is the reason why the values do not correspond to the graph.
...This is a good capture.. you can see the is_reversal and sar values printed in the Terminal and the erratic signal in the Closed Tab in referal to the Psar poits in the graph. To this case I change the signal in the If Else, but is the same problem in contrary case.
![image](https://private-user-images.githubusercontent.com/172874464/341637018-f8ab3644-a2bd-44c2-a9fc-fe5bff0c3fa3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMjYyNjksIm5iZiI6MTcyMjEyNTk2OSwicGF0aCI6Ii8xNzI4NzQ0NjQvMzQxNjM3MDE4LWY4YWIzNjQ0LWEyYmQtNDRjMi1hOWZjLWZlNWJmZjBjM2ZhMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyOFQwMDE5MjlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zYjg2Zjc0YTQ4Zjc2MzdjZjMwN2FkZGYyNzE3MjVhNjdhMWM0YjI3ZWI1NzQyZjBiMzVkNGY3N2FmYmE2ZGU0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.PHBkRs_5NKs_UQK-YYODQtoJahEwLw4xqtQWlRoxMWE)
Any Idea for that?
The text was updated successfully, but these errors were encountered: