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

Re: [amibroker] Re: Real time indicators using GETRTDATA



PureBytes Links

Trading Reference Links

Hi Tomasz,

Much appreciated!!! You're a legend, and keep up the good work....

Cheers, James.

On 8/13/07, Tomasz Janeczko < groups@xxxxxxxxxxxxx> wrote:

Hello,
 
You should call GetRTData for bid and ask and store using AddToComposite:
 
Appropriate code should look as follows (I DID NOT TEST IT - I am writting off hand)
- it will create 5 second bid/ask "bars".
High will hold ask, Low will hold bid.
 
=== Code that generates array
 
tn = Now(4);
ltn = StaticVarGet( "LastTimeNum"+Name() );
 
if( ltn != tn )
{
  StaticVarSet( "LastTimeNum"+Name(), tn );
 
 bidarray = 0;
 bidarray[ BarCount - 1 ] = GetRTData("bid");
 askarray = 0;
 askarray[ BarCount - 1 ] = GetRTData("ask");
 
  AddToComposite( bidarray, "~BA_"+Name(), "X", atcFlagDefaults | atcFlagEnableInIndicator );
  AddToComposite( askdarray, "~BA_"+Name(), "H", atcFlagDefaults | atcFlagEnableInIndicator );
}
 
================
To use them somewhere lese use:
 
askarray = Foreign("~BA_"+Name()", "H" );
bidarray = Foreign("~BA_"+Name()", "L" );
 

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: james
Sent: Monday, August 13, 2007 3:19 AM
Subject: Re: [amibroker] Re: Real time indicators using GETRTDATA

Tomasz,
 
could you point me in the right direction in how to code something to do this in real time, or is it impossible at the moment??
 
Cheers, James

 
On 8/13/07, treliff <treliff@xxxxxxxxx> wrote:
 


__._,_.___

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___