Would it be easier to write these values to a text file, then look up the text file for what you want. (Eg Use notepad to store the roundlotsize) for use with foreign
-- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com On 15/04/2008, loveyourenemynow <[EMAIL PROTECTED]> wrote: > 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
