Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (opm), 778 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to use IB Volume? #476839
04/11/19 16:42
04/11/19 16:42
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Offline OP
Serious User
AndrewAMD  Offline OP
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
jcl,

For the IB plugin, the manual says this is the volume policy:

Quote:
marketVol: Trade volume per minute in historical data; accumulated volume since market open in live data. Only for exchange-traded assets, not for currencies.

Okay, so I can download M1 volume.

Now suppose that:
* I only had the IB plugin.
* I need the M30 volume. (That is, I need all of the volume for one thirty-minute bar.)
* I need this info both in backtests and live.
* I need to use priceRecord() to update volume data live.

Therefore, I must do this:
* Download the M1 data from IB using the IB plugin with script "A".
* Convert the M1 volume to accumulated volume for consistency purposes with script "A".
* Script "B" is a separate trading script. (It must be separate, because the historical data will be modified.)
* The script has BarPeriod = 30 (or BarPeriod * Timeframe == 30).
* Calculate bar volume with my own indicator. (It just determines the difference in accumulated volume between this bar and the last bar, accounting for exceptions/resets.)
* Finally, priceRecord() will continue to add accumulated volume to the historical data.

Is my understanding correct?

Re: How to use IB Volume? [Re: AndrewAMD] #476840
04/11/19 17:09
04/11/19 17:09
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
Yes, that looks correct to me. I don't know why the volume is different in live data, but probably the API delivers it so.

Re: How to use IB Volume? [Re: jcl] #476843
04/11/19 17:18
04/11/19 17:18
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Offline OP
Serious User
AndrewAMD  Offline OP
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
Thanks for the clarification.

Currently, my Sierra Chart plugin automatically emulates accumulated volume for historical downloads, so that historical and live match. I am considering offering additional options.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1