Gamestudio Links
Zorro Links
Newest Posts
New Zorro version 1.83
by jrath
Today at 11:53
New Aum and few things
by George
Today at 09:19
Transfer free license to different device?
by Raisinbran
Yesterday at 21:59
New BrokerCommand: SET_TRIGGER_PIPE
by AndrewAMD
Yesterday at 18:18
What are you working on?
by NeoDumont
Yesterday at 15:43
Beta Version Download does not work
by MatPed
Yesterday at 14:35
Camera Glide Works Over Water, But Not Under Water
by Ruben
Yesterday at 10:04
AUM Magazine
Latest Screens
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Forgotten Tales - Demo version
RPG PARTY
Who's Online
16 registered (3run, byakuren81, firecrest, FLD, Dbat, AndrewAMD, JeyKey II, GPEngine, jenGs, 1 invisible), 504 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
mbullied, Raisinbran, Grodt, drack, Paul_der_Zweite
17982 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: 311
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: 26363
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: 311
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