¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

How is everybody plotting their data?


 

I've searched if anybody uses mplfinance or plotly and not much comes up. I'm curious how any of you are plotting your data (if you are). I need to in order to see if the indicators I've coded are behaving properly.
?
I'm using this code to request historic and tickbytick.
?
I have to wait for market to open to see if it does receive tickbytick. It's supposed to retrieve the last thousand ticks along with new tickbytick but it's not working this weekend. But I'm wondering what anybody is using to plot the data once it's in. I don't know how to pass it through mplfinance
?
#request data
app.reqTickByTickData(19001, mycontract, "Last", 1000, True)
#receive data
def
tickByTickMidPoint(self, reqId: int, time: int, midPoint: float):
print("Midpoint. ReqId:", reqId, "Time:", time, "MidPoint:", floatMaxString(midPoint))


 

You are not getting TickByTick data since you are requesting real-time live stream data while the markets are closed. You need to call to request historical TickByTick data.
?
´³¨¹°ù²µ±ð²Ô
?
?
On Sun, May 4, 2025 at 10:47 AM, donye wrote:

I've searched if anybody uses mplfinance or plotly and not much comes up. I'm curious how any of you are plotting your data (if you are). I need to in order to see if the indicators I've coded are behaving properly.
?
I'm using this code to request historic and tickbytick.
?
I have to wait for market to open to see if it does receive tickbytick. It's supposed to retrieve the last thousand ticks along with new tickbytick but it's not working this weekend. But I'm wondering what anybody is using to plot the data once it's in. I don't know how to pass it through mplfinance
?
#request data
app.reqTickByTickData(19001, mycontract, "Last", 1000, True)
#receive data
def
tickByTickMidPoint(self, reqId: int, time: int, midPoint: float):
print("Midpoint. ReqId:", reqId, "Time:", time, "MidPoint:", floatMaxString(midPoint))


 

From the documentation:
?
numberOfTicks: int. If a non-zero value is entered, then historical tick data is first returned via one of the? ? respectively. (Max number of historical Ticks is 1000)
?
I'm not getting an error anymore because I did not have the tick type set to midpoint. But I submitted a ticket for that. However, I'm more interested in how anybody is processing the data they are receiving. I can't find anything about MPL, Plotly, or MPLFinance on this site


 

That is because our group focuses on the TWS API interactions of your client applications and discussions about data plotting approaches are out of scope. Particularly, when they are related to just one programming language.
?
´³¨¹°ù²µ±ð²Ô
?
On Sun, May 4, 2025 at 12:13 PM, donye wrote:

However, I'm more interested in how anybody is processing the data they are receiving. I can't find anything about MPL, Plotly, or MPLFinance on this site