Dukascopy provides source code Java examples of optimal timing forex trading
More indicator with better coding examples
https://www.dukascopy.com/wiki/en/development/strategy-api/indicators/indicator-catalog#hilbert-transform-instantaneous-trendline
https://www.dukascopy.com/wiki/en/development/strategy-api/indicators/indicator-calculation
NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!