The below code should print the lot size for obtained as property of
the stock object, and setforeign with the trade price option, but the
results are different, and LotF (the one obtained from setforeign) is
just equal to the current symbol lotsize.
Why?

AB = CreateObject("Broker.Application");
sts = AB.Stocks();
Qty = sts.Count;
for( i = 0; i < Qty-1; i ++ )
{
  st = sts.Item( i );
  Ticker = st.Ticker;
  Fil=1;  
  if (fil) 
  {
        LotP=st.roundlotsize;
        SetForeign(ticker,true,true);
        LotF=RoundLotSize;
        printf("\nTicker "+ticker+" LotF "+LotF+" LotP "+LotP+" C
"+LastValue(C)+" C "+LastValue(C));
        RestorePriceArrays();
  }  
  
}

Thanks

Ly

Reply via email to