I don't like hacking a code that I did'nt write myself ... Whereas in JSystemTrader the quote history is always transferred as a parameter to the indicator, the same is not true for the marketBook in JBookTrader.
In this case one SOLUTION seems to be the following: If indicatorB calls indicatorA, all you have to do is providing indicatorA as a parameter to indicatorB. You can then access indicatorA within IndicatorB's calculate() method by indicatorA.getValue(). You just have to make sure to create indicatorA before indicatorB in your stategy. No hacking. I'm not sure wether this works for all cases but in my case it works as expected. -- 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.
