Originally Posted By: jcl
To 1., I'm not sure that I understand the problem - can you give an example?

In the opening post of this topic I added a sample script that shows the problem. When looking into the actual t6 data (with ZHistory tool) then it becomes obvious that the given values are unexpected.

Originally Posted By: jcl
To 4., you can find the returned data by any specific API on the API page in the manual.

Yes. Unfortunately not all pages show this information.

The following do:
http://zorro-trader.com/manual/en/mt4plugin.htm
http://zorro-trader.com/manual/en/oanda.htm
http://zorro-trader.com/manual/en/fxcm.htm
http://zorro-trader.com/manual/en/ib.htm

And these do not:
http://zorro-trader.com/manual/en/ig.htm
http://zorro-trader.com/manual/en/ally.htm
http://zorro-trader.com/manual/en/dukascopy.htm
http://zorro-trader.com/manual/en/nxcore.htm

But as I said earlier this could easily be improved by providing functions that really return what they claim to return.

For example instead of a marketVol(int) function you could have a marketTickFrequency(int) and marketVolume() function that internally are aware if they return what they promise.

For example

Code:
void marketVolume(int offset)
{
	if (plugin == ig || assetData == t6)
	{
		return volume[offset];
	}
	return 0;
}



Otherwise the user needs to implement and maintain such checks himself (if he needs them).

Last edited by pascalx; 11/09/17 16:57.