Hello,
Kagi charts are now available on the platform, but there seems to be no documentation on how to implement them in a strategy. I tried to access the Kagi API by replacing IRenkoBar with IKagi. This works partly:
public void onFeedData(IFeedDescriptor feedDescriptor, ITimedData feedData) {
print("Bar completed: " + feedData);
IKagi latestBar = (IKagi)feedData;
double openCurrent = latestBar.getOpen();
boolean kagiRising = latestBar.isRising();
etc.
I can use the methods getOpen(), getClose() etc. and isRising(). But when I print the feed data to the console I get more info that I'd like to access, especially yin and yang are of interest:
1486057893213/2017-02-02 17:51:33:213, O=1.07877, H=1.07921, L=1.07877, C=1.07915, V=265.59, rising=true, fec=120, yin[1.07864;1.07882], yang[1.07882;1.07921], 1486057987302/2017-02-02 17:53:07:302
So my question is: Which methods are available in the IKagi interface? Also, I was only able to get a Kagi feed when I manually set it up via @Configurable. So what's the equivalent of the following line for a Kagi feed?
@Configurable("")
public IFeedDescriptor feedDescriptor = new PointAndFigureFeedDescriptor(Instrument.EURUSD, PriceRange.ONE_PIP, ReversalAmount.THREE, OfferSide.BID);
I tried KagiFeedDescriptor, but that didn't work.
Any ideas?