Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Undocumented Kagi API
 Post subject: Undocumented Kagi API Post rating: 0   New post Posted: Thu 02 Feb, 2017, 19:14 
User avatar

User rating: 0
Joined: Thu 02 Feb, 2017, 18:50
Posts: 1
Location: Germany,
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?


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com