Gamestudio Links
Zorro Links
Newest Posts
Votes for future features
by DdlV
Yesterday at 23:46
Project Aum - Winter Contest 2017 - Update
by George
Yesterday at 22:37
hold key code returns very high value instead of 0 or 1
by 3run
Yesterday at 16:08
oldschool fps project
by 3run
Yesterday at 15:46
Sam Foster Sound | Experienced Indie Game Composer for Hire
by titanicpiano14
Yesterday at 15:02
[ALL STYLES] 2D Videogame Artist (pixel, vector, painted)
by DesixStudios
12/15/17 14:45
Easy question
by jcl
12/15/17 13:47
AUM Magazine
Latest Screens
RPG PARTY
Triton Wing now available on Steam
AckCon'17: Lotter vs The World
Triton Wing
Who's Online
12 registered (ChrstphFr, Ch40zzC0d3r, Dico, 3run, boatman, AndrewAMD, alibaba, easyX, 3 invisible), 453 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
Meisterbene, Amocfx, cme, pataba, byano
17835 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 Online
Member

Registered: 02/21/17
Posts: 121
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.)

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

Chief Engineer

Registered: 07/22/00
Posts: 26002
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.

Top
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) 3dgamestudio.net