Accessing Latest Data From Real-Time External Plugin

  1. I am using Real Time Datafeed through a Data Plugin. GlobalDataFeeds.Net and their product is NimbleDataPro2. Currently I am scanning 200 stocks/minute. Using 1 minute bars.

  2. My investment strategy is trend based and I analyse price-volume in real time. For this I need the most recent data.

  3. When I request Amibroker for the last bar (as in .. fMyOpen = O[BarCount-1]).
    If script data is outdated, a new 'fetch' command is dispatched to the external Data Plugin. And control returns immediately with outdated (old) data and assigns this to my variable fMyOpen. In the meantime, it takes a few milli-seconds for the Plugin to fetch fresh data from its back-end servers. The time required for this refresh can vary from a few milli-seconds to several seconds. Depending on Internet Speed etc. The latest data-bars are now sitting in the External Data Plugin.

  4. How can I access the latest data now sitting in the Data Plugin? Any help/pointers would be greatly appreciated. Thank you.

  5. I have also read the following help topics on AB forum.
    (a) Article - How to work with Real-Time data plugins by Tomasz.
    (b) Several other topics on Real-Time plugins on this forum.

I don't know if my reply will be of any help to you, but try LastValue(C) or GetRTData("Last") if you want the latest available price. Maybe I misunderstand you, but you are talking about miliseconds - and Open by the definition doesn't give you the latest, real-time transaction price, but just Open price. See here:

Besides it all depends on how this specific plugin works... This one is probably not officially supported by AB. Tomasz was writing about different plugin issues in this thread:

Some other aspects to consider:


Thank you Milosz for posting a solution and other helpful reads. I am in the process of testing GetRTData() & LastValue() in my test AFL. Shall post my results soon. Once again thank you so much.

1 Like

I was able to test GetRTData() & LastValue() functions. This absolutely works for me. The problem was, I did not know how to access data in my RealTime Plugin. This function does the trick. Thank you.

I wasn't aware Amibroker has a rich collection of outstanding functions. Exceedingly fine set of tools for a new-comer like me. Not only does GetRTData() fetch the latest "Last" price, but also provides fantastic data like "Ask" and "AskSize". Gives a peek into where a stock is headed. Also there are other goodies provided by this function. Fantastic stuff. Will keep me busy for the next couple of weeks.

We get a glimpse of the innards of AB everytime Mr Tomasz posts a comment. You are absolutely right in this regard. Thank you for posting links to additional information. That was very thoughtful.

Once again Milosz, thank you for your time and effort to help me & others through your reply. Blessings & Warm Regards.


@TheWord thanks for letting me know! I'm glad I could help :slight_smile:

1 Like