Gamestudio Links
Zorro Links
Newest Posts
About auto hide invisible entitiesl
by Superku
40 minutes 20 seconds ago
LotAmount and PipCost
by tradingest
Today at 15:17
Bump with detail?
by Superku
Today at 15:16
New Zorro version 1.88
by DdlV
Today at 14:33
CCI and SMA Pullback Strategy
by Materz
Today at 13:34
Position Close not possible
by Paul_der_Zweite
Today at 11:28
CSVToHistory.c
by Paul_der_Zweite
Today at 10:43
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
16 registered (AndrewAMD, Jason_Rogers, alibaba, 20BN, 3run, Dalla, MatPed, kvm, 2 invisible), 444 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
egkachai, cepturion, Mon3y, vincitytaymo, just
18058 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: 371
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: 26491
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: 371
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: 12
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