New SDK 2.0 beta available!

Moderator: admin

New SDK 2.0 beta available!

Postby Nikolay.Gekht » Fri Mar 25, 2011 4:57 pm

SDK 2.0 beta is released.

Finally:
- new improved UI
- new advanced market simulator, backtester and parameter optimizer!

Please read the detailed release notes here:
http://fxcodebase.com/wiki/index.php/Wh ... SDK_2.0%3F

Please pay attention on new resource: FXCodebase Wiki
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: New SDK 2.0 beta available!

Postby Gidien » Sat Mar 26, 2011 3:21 pm

Hi ,

i have a problem with the new sdk version.

my strategy is for a hedging account, and use valuemap.RateLimit or pegged Limit .

The strategy debugger placed the orders with Limit, but the backtester do not place any order until i removed RateLimit or pegged limit from the code.

Here Debugger chart with Limit:
debugger.png
Debugger with limit set


Here Backtest chart with Limit:
backtest.png
Backtest with Limit


Here Debugger chart without Limit:
debugger_without_limit.png
db without limit


Here Backtest without Limit:
backtest_without_limit.png
bt without limit


Settings Backtest equal to debugger:

What wrong??
Gidien
FXCodeBase: Confirmed User
 
Posts: 106
Joined: Mon Feb 08, 2010 7:39 am
Location: Hamburg

Re: New SDK 2.0 beta available!

Postby Nikolay.Gekht » Sun Mar 27, 2011 8:09 pm

Gidien wrote:What wrong??

Give me a piece of the code which creates the order, w/o logic, just filling the valuemap, please.

p.s. Oh, and please check whether "Can Close" is "Yes" in the settings (when you start the project).
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: New SDK 2.0 beta available!

Postby Gidien » Sun Mar 27, 2011 11:33 pm

Here Code snap:

Code: Select all
    local   l                       =   Amount*BaseSize                                                                                          ;
    local   valuemap                                                                                                                                ,
            success                                                                                                                                 ,
            msg                                                                                                                                     ;
           
            valuemap                =   core.valuemap()                                                                                             ;
            valuemap.Command        =   "CreateOrder"                                                                                               ;
            valuemap.OrderType      =   "OM"                                                                                                        ;
            valuemap.OfferID        =   Offer                                                                                                       ;
            valuemap.AcctID         =   Account                                                                                                     ;
            valuemap.Quantity       =   l                                                                                                           ;
            valuemap.BuySell        =   BuySell                                                                                                     ;
           
            valuemap.CustomID       =   "BB SRSI"                                                                                                   ;
    ------------------------------------------------------------------------------------------------------------------------------------------------
    if      BuySell                 ==  "B"                                                                                                         then
        --------------------------------------------------------------------------------------------------------------------------------------------

            valuemap.RateLimit       =  instance.ask[NOW] + Limit                                                          ;
        --------------------------------------------------------------------------------------------------------------------------------------------
    end
    if      BuySell                 ==  "S"                                                                                                         then
        --------------------------------------------------------------------------------------------------------------------------------------------

            valuemap.RateLimit       =   instance.bid[NOW] - Limit                                                           ;
    end


The same code works in the old SDK version

Canclose and hedging are both "YES".
The issue is only seen in the CheckPerformance/BackTest
Gidien
FXCodeBase: Confirmed User
 
Posts: 106
Joined: Mon Feb 08, 2010 7:39 am
Location: Hamburg

Re: New SDK 2.0 beta available!

Postby Nikolay.Gekht » Mon Mar 28, 2011 10:06 am

Found the problem. In this version somehow the backtester always runs in "cannot close" mode. Fixed. Please re-download and install. I apologize for the inconvenience.
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: New SDK 2.0 beta available!

Postby Gidien » Mon Mar 28, 2011 10:39 pm

Thanks it works now.
Gidien
FXCodeBase: Confirmed User
 
Posts: 106
Joined: Mon Feb 08, 2010 7:39 am
Location: Hamburg

Re: New SDK 2.0 beta available!

Postby Nikolay.Gekht » Fri Apr 01, 2011 4:05 pm

SDK 2.0 update 1

1) Further improvement of UI:
- folding of the source code
- disable break point (toggle break point now works as set->disable->remove->set->...)
- go to next/previous breakpoint
- SDK help and context help in all 3 applications (editor, indicator debugger, strategy debugger)

2) CPU usage is optimized in suspended mode. No more CPU loading the the debugger is just waiting for the user input.

3) Fix a lot of stability problems in optimizer

4) expat_lua extension now compatible 100% with LuaJIT (in older versions it may cause crashes).

5) geomean and median methods are added to mathex table.
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 67 guests