Hi all,
I am trying to extract info from a returned delimited string ( namely, the avg fill price) from my broker's API. The postion tab for the fill price is the 11th space. Because of my limited knoweledge in this area, I don't know to extract that exact field.
I have enclosed the outcome of my code in a debug window.
My code so far:
var y = new String (d.call("tb_GetOrderDetailsString",TBTkt));
debugprinted "y"
var vLimit = y.split("");
var aLimit = vLimit.length;
for(i=0; i<aLimit; i++);
nLimit = i;
debugged, vLimit and nLimit .
What comes next in code to get only the 11th tabular space, in this case the fill price of 1242.75???
Thanks for any help on this in advance!!
angelo
I am trying to extract info from a returned delimited string ( namely, the avg fill price) from my broker's API. The postion tab for the fill price is the 11th space. Because of my limited knoweledge in this area, I don't know to extract that exact field.
I have enclosed the outcome of my code in a debug window.
My code so far:
var y = new String (d.call("tb_GetOrderDetailsString",TBTkt));
debugprinted "y"
var vLimit = y.split("");
var aLimit = vLimit.length;
for(i=0; i<aLimit; i++);
nLimit = i;
debugged, vLimit and nLimit .
What comes next in code to get only the 11th tabular space, in this case the fill price of 1242.75???
Thanks for any help on this in advance!!
angelo
Comment