Hi

It looks like I am not explaining myself proper or I am getting the wrong end of the stick.

First

I have attached a screenshot of 4 products.

Euro FX 099741
2 year Treasure Notes 042601
Gold 088691
British Pound 096742

https://www.screencast.com/t/XALElOqCB3L

All the products apart from Gold use the same columns.
The current formula is field 2-3 + 4-5.
COT_CommercialPos and COT_CommercialIndex will return the wrong value if used on these products apart from Gold.

Of course I can rewrite the code to just grab these fields. But these 2 functions might only work on gold, I have not tested beyond these 4 products.

Second

When requesting field 6 it returns field 7.
See screenshot https://www.screencast.com/t/xRCYUUIOF
The fields are numbered in green in the first screenshot for this.

When requesting field 8 returns blank.
See screenshot https://www.screencast.com/t/Smag0oVgsqg
The fields are number in yellow in the first screenshot for this.

Here is a blown up screenshot to make it easier to see.
https://www.screencast.com/t/LYqddzv6



As at the moment these functions only work for gold and not others without editing. Again I only tested these four products.

Obviously I can change the format in the function so that it correct but then it would be good to point this out in the manual.

Thanks for taking the time to look at this.

Have a great weekend.

Last edited by Adey; 12/01/18 12:45.