Easier still, just use a global variable to hold the old valie at the end of onBookChange().
Best regards, - Martin 100% carbon-neutral since 1-Jan-2008 "Act without activism" On 22 Aug 2009, at 15:29, Eugene Kononov <[email protected]> wrote: > if(IndicatorABC.Close > IndicatorABC.PreviousClose) > > > > The framework does not support this functionality. However, it would > be straightforward to code it in your indicator. Simply add a > getPreviousValue() method to your indicator, and return the retained > previous value. Your strategy cal call that method when it needs > access to previous value. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "JBookTrader" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jbooktrader?hl=en -~----------~----~----~----~------~----~------~--~---
