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

Re: [amibroker] Detecting when chart is not at right hand edge



PureBytes Links

Trading Reference Links

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: amibroker@xxxxxxxxxxxxxxx 
  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

   
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.5/645 - Release Date: 1/22/2007 4:10 PM