--
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 jbooktrader...@googlegroups.com.
To post to this group, send email to jbook...@googlegroups.com.
Visit this group at http://groups.google.com/group/jbooktrader.
For more options, visit https://groups.google.com/d/optout.
Hello Eugene,The indicator I am using is a variation of Tension, as follows:public class Force extends Indicator {private final double fastMultiplier, slowMultiplier;private double fastBal, slowBal, fastPrice, slowPrice;private final double scaleFactor;public Force(int fastPeriod, int slowPeriod, int scaleFactor) {super(fastPeriod, slowPeriod, scaleFactor);fastMultiplier = 2.0 / (fastPeriod + 1.0);slowMultiplier = 2.0 / (slowPeriod + 1.0);this.scaleFactor = scaleFactor;}@Overridepublic void calculate() {MarketSnapshot snapshot = marketBook.getSnapshot();// balancedouble balance = snapshot.getBalance();fastBal += (balance - fastBal) * fastMultiplier;slowBal += (balance - slowBal) * slowMultiplier;double balanceVelocity = fastBal - slowBal;// pricedouble price = snapshot.getPrice();fastPrice += (price - fastPrice) * fastMultiplier;slowPrice += (price - slowPrice) * slowMultiplier;double priceVelocity = fastPrice - slowPrice;// forcevalue = balanceVelocity - scaleFactor * priceVelocity;}Thanks again,Ali
Eugene,I am also trying another approach: I created the "monitoring" strategy with 9:30 to 16:00 trading schedule. I created my trading strategy by Extending the "monitoring" strategy and made its trading schedule from 10:05 to 15:25. Hopefully this makes sense and would work (without any unintended consequences).Thanks.Ali