Gamestudio Links
Zorro Links
Newest Posts
Detrend=SHUFFLE?
by jcl
52 minutes 54 seconds ago
type casting issue
by hatten
Today at 13:44
bmap_process crashes
by Superku
Today at 13:43
Intercept Friday Daily Close
by OptimusPrime
Yesterday at 19:25
tmf...
by MINER
Yesterday at 10:43
Multiple BB Bands
by jcl
Yesterday at 09:45
Using R
by jcl
Yesterday at 09:41
AUM Magazine
Latest Screens
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Who's Online
14 registered (AndrewAMD, AndyDow, kvm, hatten, PriceAlgoTrader, chsmac85, jenGs, CocaCola, 3 invisible), 483 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
PersianBoy, xenomoprhen, PriceAlgoTrader, Tomber, MorganP
18126 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
Senior Member

Registered: 02/21/17
Posts: 483
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 Online

Chief Engineer

Registered: 07/22/00
Posts: 26665
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
#470103 - 12/22/17 15:28 Re: About marketVol() function [Re: jcl]
AndrewAMD Online
Senior Member

Registered: 02/21/17
Posts: 483
Loc: Chicago
jcl,

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.

_____________________________
UPDATE:

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.

_____________________________
UPDATE #2:

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)

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

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

Top
Page 3 of 3 < 1 2 3



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

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