> All right. > values.getElement(1) is the value 2 minutes before. >
If your MovingWindow size is 60, then values.getElement(0) is the value 59 seconds ago, values.getElement(1) is the value 58 seconds ago, and values.getElement(59) is the value now. If that's not what you see, please post your indicator class code, and we'll figure it out. > Another issue : > I want the current price. So : > MarketSnapshot marketSnapshot = marketBook.getSnapshot(); > double currentPrice = marketSnapshot.getPrice(); > > I got : > marketBook has private access in > com.jbooktrader.platform.strategy.Strategy > > How can I solve that ? Thanks. It should be: double currentPrice = getMarketBook().getSnapshot().getPrice(); -- 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.
