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

[amibroker] Re: When AFL just stops updating the chart now and then...



PureBytes Links

Trading Reference Links

Hi Dennis,
Perhaps you can help me - you'd be the first on this problem :(
The problem I described is ~daily.  

MY AB workspace displays the quotes window, 1-2 t&s windows + 5 
symbol-linked chart windows (1 min, 2 min, 5 min, 15 min and daily).  
Each chart window has 8 sheets - but all these are empty except the 
first sheet with 1-3 panes each and 1 window has a study on the 
second sheet.  Total time (sum) for the 5 charts via 'display chart 
timing' is ~400 msec. Running through these charts afterhours is no 
problem (local db is enabled).. I see all charts windows completed in 
about 4 seconds after changing symbols.

What do you think are the best settings for the pref>data 
tab 'default db settings' in-memory  cache size (max symbols), (max 
megabytes) and number of bars to load... for a 7400 bar, 100 symbol 
db (and perhaps for a longer db with more symbols).  What do these 
fields actually mean/do? I have 4GB (3 GB available in vista32) and 
no other programs running... so is it best to use >1000 megabytes?  
What is number of bars to load (does db setting overwrite this?)?  

DB settings has a 'flush cache' button.  Doesn't seem to do anything 
for me.  Does it work for you?  Refresh and refresh all has no 
effect.  If I do a refresh current sym, I get new data for that sym 
but then no further updates for any symbol.

My db is 7400 1min bars*100 sym... are you working with a similar 
size?  

BTW, I know what you mean about getting hypnotized so I get alerted 
to the quote delay with the following in the 1min chart - you can 
probably get it to work with shorter periods or make it say something:

delayedcolor=IIf(TimeNum()<Now(4)-120 OR DateNum()<Now(3),32,16);
	//for time at bar start-- 32=colorred, 16=colorblack , red if 
last bar start-time is earlier than 1min20 sec of system time
 //my bar times are at start of interval so min# could be 101

Plot( C, "Close", delayedcolor, styleNoTitle | ParamStyle("Style") | 
GetPriceStyle() ); 

Thanks, Dan

--- In amibroker@xxxxxxxxxxxxxxx, Dennis Brown <see3d@xxx> wrote:
>
> Hello,
> 
> I have something that happens once every few days with my RT charts.
> 
> At some point in the day, the chart stops updating.  I also have  
> getRTData() functions in my AFL that also stop.
> 
> I don't know if it is the data feed that stops handing the quotes 
to  
> AB, or if XP is not giving the data, or if the AFL loop stops  
> running.  Everything looks normal, but I notice that my broker's  
> charts have moved ahead and my AB charts have stalled (My broker's  
> charts are prone to stalling in fast markets and my AB charts keep 
on  
> ticking).  This can be disconcerting when you are in a fast trade 
and  
> you go blind without realizing it.
> 
> I am using DTN IQFeed, but the same thing happened with eSignal in  
> previous years.  The data feed plug-in indicates everything is 
green  
> and working.
> 
> Clicking on the chart refresh button starts the chart running again.
> 
> I am usually in a panic when this happens, so I have not been able 
to  
> properly go through debug steps to isolate the problem area.
> 
> So my questions are:
> 
> 1.  Does anyone know the root cause of this?
> 2.  Is there a way to detect that the chart has stopped updating  
> (other than by eye)?
> 3.  Is there a way to automatically jump start the updating again 
when  
> it happens?
> 
> Thanks for any insights.
> 
> If nobody can help, I will ask support.
> 
> Best regards,
> Dennis
>



------------------------------------

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
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/