[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Any Help Please error in code



PureBytes Links

Trading Reference Links

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 amibroker@xxxxxxxxxxxxxxx, "Mark H" <amibroker@xxx> 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: amibroker@xxxxxxxxxxxxxxx 
>   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
>