Hello,

That is pretty easy using Status() function.

LastBarVisible = Status("lastvisiblebarindex") < LastValue( BarIndex() );

SetChartBkColor( IIf( LastBarVisible, colorRed , colorWhite ) );

Best regards,
Tomasz Janeczko
amibroker.com
  ----- Original Message ----- 
  From: Wes Smith 
  To: [email protected] 
  Sent: Tuesday, January 23, 2007 10:22 PM
  Subject: [amibroker] Detecting when chart is not at right hand edge


  How would I tell in AFL if the chart has been scrolled back, and is not at 
the right and edge showing the latest quote?
  I've looked at bar/selected bar index etc... not quite sure what to look at.

  tia

   

Reply via email to