Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by txesmi
49 minutes 53 seconds ago
save you.x in *.txt with ent_next doesen't work :(
by Ezzett
Today at 10:24
Log file - overwrite and/or append
by DdlV
Today at 00:14
c_scan and c_trace / TRIGGER
by Ayumi
Yesterday at 22:57
The Z Systems
by AndrewAMD
Yesterday at 18:08
Always accept detrended result as more realistic?
by jcl
Yesterday at 07:50
Login 0 IG ..
03/15/18 20:50
AUM Magazine
Latest Screens
Forgotten Tales - Demo version
Triton Wing now available on Steam
AckCon'17: Lotter vs The World
Who's Online
16 registered (easyX, FLD, MatPed, dmac, DAVIDMORETON, boatman, 20BN, maurice1973, Ezzett, Kartoffel, 1 invisible), 501 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
maurice1973, IMMO_VIE, Enric, rhodes386, Igz
17916 Registered Users
Page 3 of 3 < 1 2 3
Topic Options
Rate This Topic
#469756 - 12/06/17 17:30 Re: About marketVol() function [Re: jcl]
AndrewAMD Offline

Registered: 02/21/17
Posts: 218
Loc: Chicago
It sounds like if a user wanted to replicate a volume-per-bar (such as for a money flow index indicator), then this is what he will need to do:

* Set future brokercommand SET_VOLTYPE to absolute volume (either ticks or real)
* Therefore, future brokercommand GET_VOLTYPE will acknowledge this setting.
* User will then detect changes in absolute volume and use that as real volume or tick volume for a given bar.

Is this correct?

If so, I would definitely use the absolute ticks setting for any forex plugin and an absolute volume setting for stocks, options, and futures.

Question: Were you planning on adding these brokercommands to the IB, FXCM, and Oanda plug-ins?

I also understand that, depending on how the plugin collects history data, whether from newest to oldest or oldest to newest, that it might require absolute volume to be accumulated in reverse order. That is...
* Newest volume is zero
* Previous tick is higher
* The tick before that is even higher.

So you can leave that to the end user to straighten out. (Or I might publish a handy helper function or two in the headers.)

#469772 - 12/07/17 17:03 Re: About marketVol() function [Re: AndrewAMD]
jcl Offline

Chief Engineer

Registered: 07/22/00
Posts: 26261
Loc: Frankfurt
I know no API where you can set the volume type. So SET_VOLTYPE is at the moment only theoretical, a placeholder for a possible future feature that will probably be implemented in Zorro, not in the API plugin. Normally, trade volume is relative to a starting point in live trading, and absolute in historical data. Tick volume is always absolute. History data is always stored from newest to oldest.

#470103 - 12/22/17 15:28 Re: About marketVol() function [Re: jcl]
AndrewAMD Offline

Registered: 02/21/17
Posts: 218
Loc: Chicago

Is there a way that I can alter historical data in-place? Suppose I want to edit only the marketVal values - all of them. Will I need to edit the historical files explicitly, or is there a high-level Zorro approach available?

My plan is to have M1 historical-only volume in marketVol, and then I can calculate absolute volume in marketVal. Then my plugins will put live absolute volume in marketVal.

This way, I can compare historical fluctuations in absolute volume with real fluctations in absolute volume.


Well, I did figure out how to read the T6 files, it's literally just a binary array of T6 structs, with the newest entries in the front. I just need to overwrite that file.


On the plugin side, for live data, I see a way to explicitly set an output for MarketVol (double *pVolume) but not for MarketVal, so it appears that my approach outlined above will not work.

Edited by AndrewAMD (12/27/17 22:29)

#471276 - 02/26/18 09:15 Re: About marketVol() function [Re: AndrewAMD]
roshanbaba Offline

Registered: 01/24/16
Posts: 12
can somebody code the money flow index or the aonbalance volume for zorro.

Page 3 of 3 < 1 2 3

Gamestudio download | chip programmers | Zorro platform | shop | resources | magazine | manual | support faq | bugs

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