Page 1 of 1

IndicoreSDK 3 debugger error: getAskPrice, getBidPrice

PostPosted: Sat Jan 28, 2017 3:13 am
by dtb71fxcm
I've been using a chunk of code with getAskPrice & getBidPrice in several indicators, and they work fine in the FXCM Trading Station, tested up thru version 01.15.090516

And the code works fine in debugger: IndicoreSDK 2.3.1

Code: Select all
    indicator:requiredSource( core.Bar );
    indicator:type( core.Indicator );


Code: Select all
    -----------------------------------
    -- spread
    -----------------------------------
    if source:isBid() then
        bidPrice = source;
        askPrice = core.host:execute("getAskPrice");

    else
        askPrice = source;
        bidPrice = core.host:execute("getBidPrice");
    end


But any indicator with that chunk of code always fails with an unrecoverable error when testing/debugging with the latest debuggers: IndicoreSDK 3.0.1 and IndicoreSDK 3.1.0

ERROR " Command is not supported" in file
Debug session is finished


Is that code deprecated? Or will the debugger get fixed?

Thanks

Re: IndicoreSDK 3 debugger error: getAskPrice, getBidPrice

PostPosted: Sat Aug 12, 2017 12:14 am
by Konstantin.Toporov
These methods are deprecated.

Now you need to pull the data directly from the Offers table:
http://www.fxcodebase.com/bin/products/ ... ffers.html