I have to write a data plug-in to read intraday prices from files exactly as per the ASCII example from the ADK. I use a separate Python application to apply price filtering and construct the data files.
My situation is very similar to https://forum.amibroker.com/t/disable-or-programmatically-flush-in-memory-cache/3077. In that post, Tomasz explained that the last LPARAM
argument is "RecentInfo struct documented in ADK".
MY QUESTIONS
(1) Can I put LPARAM RecentInfo
as zero 0
? If yes, then things are much simpler.
(2) If the answer to (1) is 'no', what should I put under nStructSize
?
ADDITIONAL REQUEST
I know this is not a Python forum, but if anyone has experience using Python's win32api.SendMessage()
to send the WM_USER_STREAMING_UPDATE
to Amibroker, please share your experience.
One problem that I'm still googling is how to mark the nBitmap
field. According to the ADK html: "To mark which fields are valid you should store combination of RI_*** bit flags defined in Plugin.h into nBitmap field.". How should I do that in Python?
I've spent the last many hours googling and reading the ADK html & sample code; yet there's still a big gap in knowledge. I develop in Linux + Python and have almost no experience in Windows messaging nor C++. Unfortunately, I have to do this as it is critical to my project.
Thanks!