I suspect (guess is a better word) that when you get a new data there is a 
refresh which sets the SelectedValue() to the last bar.  Someone should be able 
to confirm or deny.

Bill
  ----- Original Message ----- 
  From: sidhartha70 
  To: [email protected] 
  Sent: Tuesday, October 07, 2008 8:48 AM
  Subject: [amibroker] Re: Interpretation Window


  Bill,

  Thanks. Well, I'm using it from a chart into the interpretation window
  so it 'should not' be returning (after a second or two) from the
  selectedvalue() of the selector line to that of barcount-1.

  TJ, can you comment...? I did email support yesterday about this.

  TIA

  --- In [email protected], "wavemechanic" <[EMAIL PROTECTED]> wrote:
  >
  > See discussion in Help:
  http://www.amibroker.com/guide/afl/selectedvalue.html
  > 
  > Bill
  >   ----- Original Message -----
  >   From: sidhartha70 
  >   To: [email protected] 
  >   Sent: Tuesday, October 07, 2008 5:20 AM
  >   Subject: [amibroker] Re: Interpretation Window
  > 
  > 
  >   Can anyone help with this...? Is this behaviour expected or is it a
  >   bug...?
  > 
  >   TIA
  > 
  >   --- In [email protected], "sidhartha70" <sidhartha70@> wrote:
  >   >
  >   > Hi All,
  >   > 
  >   > I'm trying to use the interpretation window to display detailed
  >   > information about the currently 'selected' bar (i.e. currently
  >   > selected with selector line).
  >   > I use code in the following form,
  >   > 
  >   > if(SelectedValue(Condition1)) printf("Buy Here\n");
  >   > if(SelectedValue(Condition2)) printf("Sell Here\n");
  >   > 
  >   > It works fine. Except, that every time the price 'ticks' (i.e. I
  get a
  >   > new live price into the chart - which is set every 2 seconds in my
  >   > preferences), the interpretation window immediately changes to
  display
  >   > the current bars information - the current bar now being that at the
  >   > right hand edge of the chart rather than that selected by the
  selector
  >   > bar.
  >   > 
  >   > Is there a way of stopping this behaviour...?
  >   > 
  >   > Many Thanks
  >   >
  > 
  > 
  > 
  >   ------------------------------------
  > 
  >   **** IMPORTANT ****
  >   This group is for the discussion between users only.
  >   This is *NOT* technical support channel.
  > 
  >   *********************
  >   TO GET TECHNICAL 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
  > 
  > 
  > 
  > 
  > 
  >
  ------------------------------------------------------------------------------
  > 
  > 
  > 
  >   No virus found in this incoming message.
  >   Checked by AVG - http://www.avg.com 
  >   Version: 8.0.173 / Virus Database: 270.7.6/1711 - Release Date:
  10/6/2008 5:37 PM
  >



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

  **** IMPORTANT ****
  This group is for the discussion between users only.
  This is *NOT* technical support channel.

  *********************
  TO GET TECHNICAL 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





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



  No virus found in this incoming message.
  Checked by AVG - http://www.avg.com 
  Version: 8.0.173 / Virus Database: 270.7.6/1711 - Release Date: 10/6/2008 
5:37 PM

Reply via email to