Price bars are typically used by the longer-term traders. JBT is best used for short-term trading (with the typical holding time of seconds to hours). Since JBT provides a 1-second resolution to prices and depth balances, building a price bar should be easy. For example, a 1 minute OHLC (open-high-low-close) bar can be constructed from a 1-second history as follows:
1-min bar Open: price 60 seconds ago 1-min bar Close: price now 1-min bar High: the highest price in the last 60 seconds 1-min bar Low: the lowest price in the last 60 seconds Instead of bars, I prefer exponential moving averages. See PriceEMA.java, for example. On Thu, Aug 14, 2014 at 5:21 PM, Frank <[email protected]> wrote: > Hi Eugene, > > Thanks for your reply. It's good idea to simulate orders in JBookTrader. I > am going to giVe it a try. > > However, I will need build price bar and implement logics on pricing trend > perspective in addition to market depth. > > Can you provide some suggestions on how to implement price bar based on > price history? > > Thanks, > > Frank > > -- > You received this message because you are subscribed to the Google Groups > "JBookTrader" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/jbooktrader. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "JBookTrader" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/jbooktrader. For more options, visit https://groups.google.com/d/optout.
