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

Re: [amibroker] Re: Intraday bid/ask spread question



PureBytes Links

Trading Reference Links

It is strange because I wrote the same code last night and was getting syntax errors.  This morning I copy and pasted your code and it worked.


thanks

tony
On 12/11/05, emp62 <emp62@xxxxxxx> wrote:
hi,

this should work:

Bid = GetRTData("Bid");
Ask = GetRTData("Ask");

Spread = Ask - Bid;

rgds, Ed


----- Original Message -----
From: "Qitrader" <yiupang91@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, December 11, 2005 6:39 AM
Subject: [amibroker] Re: Intraday bid/ask spread question


> --- In amibroker@xxxxxxxxxxxxxxx, Tony Lei <yiupang91@xxxx> wrote:
>>
>> Hi,
>>
>> Is it possible to make an intraday scan based on spread criteria?
>>
>> E.g.
>>
>> Buy = XcrossY and spread < .05 ;
>>
>> Spread = ask - bid < .05
>>
>> thanks
>>
>> tony
>>
>
> Hi all,
>
> I don't know why i'm getting some errors. Maybe I am not using the
> function correctly.  Any help is appreciated.
>
> "Bid = "+GetRTData("Bid");
> "Ask = "+GetRTData("Ask");
> //spread = ask-bid ;
>
> thanks
>
> tony
>
>
>
>
>
>
> 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
>
>
>
>
>
>


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






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