Hi! What would this code look like in JST or do I need to use a public class with global variables as supposed by HF Dave?
Thanx Lars On Aug 13, 2:02 pm, nonlinear5 <[email protected]> wrote: > There is no portfolio management function in either JBT or JST. Each > strategy can only have one contract, and each strategy runs > independently. However, there is a "back door" which you can use to > access strategy B and its instrument from strategy A. In JBT, the code > would be: > > Strategy otherStrategy = Dispatcher.getTrader().getAssistant > ().getStrategy(otherStrategyId); > double otherInstrumentPrice = otherStrategy.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 -~----------~----~----~----~------~----~------~--~---
