Ya i know i read the documents but my afl just dont have 1 single foreign i have nearly 12 foreigns . These are for the calls & puts rt data of Nse 50 Index ( Nse 50). So i have 6 calls and 6 puts in one single afl all with the help of foreign i dono how to to use SET with multiple foreigns as u said.
Any way Thanks for response. -hetu --- In [email protected], "Mark H" <[EMAIL PROTECTED]> wrote: > > For this kind of error, the best way to resolve it is to read the document of that function. > Here it is: > SYNTAX TimeFrameGetPrice( pricefield, interval, shift = 0, mode = expandFirst ) > RETURNS ARRAY > FUNCTION The TimeFrameGetPrice - retrieves OHLCV fields from other time frames. This works immediatelly without need to call TimeFrameSet at all. > First parameter - pricefield - is one of the following: "O", "H", "L", "C", "V", "I" (open interest). > > > > So you have to do this: > > SetForeign(...) > a6=TimeFrameGetPrice("V",...); > > ----- Original Message ----- > From: Hetal > To: [email protected] > Sent: Sunday, August 06, 2006 6:54 AM > Subject: [amibroker] Any Help Please error in code > > > Hello Friends, > > I get an error5 Argument #1 has incorrect type (The function expects > diferent argument here) > Dono whether i am doing this is right or dono where i am going wrong. > What i want is in intraday mode i am tryinmg to pull full days todays > volume and comparing it with prv days volume > To get prv days is far i cant get to the 1st step any help would be > appreciated. > The code giving the above error is as below: > > a6=TimeFrameGetPrice(Foreign("NFCE1_3100","VOLUME"), inDaily ,0); // to > get today's total volume till now in intraday mode > > If this is solved i would also like to compre it with prv days's vol > also. > Thanks in advance > > Regards > -hetu > Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/amibroker/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
