New version of the Indicator SDK released (2010-II)

Articles related to Indicators, and Indicator development. This section is read only.

Moderator: admin

New version of the Indicator SDK released (2010-II)

Postby Nikolay.Gekht » Wed Apr 07, 2010 12:57 pm

The new version of the Marketscope is on the pre-production testing now and is expected on the production in a few days. The new version of SDK and the documentation are released!

Download the new SDK
Read the documentation

What’s new?

Important! The bar size format is changed. Now the case of the letter which specifies the unit matters. H and D letters now are always capital (these letters was small in the previous version).

A) Fixes:

1) The Marketscope does not connect parts of the output indicator lines, which aren’t filled with the data, by a straight line. So, now it’s possible to write the indicators which draws the output line by various colors.

2) The crash in the drawLine function when the range is out of the output range is fixed.
Nikolay.Gekht
FXCodeBase: Base Builder
 
Posts: 1222
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

New version of the Indicator SDK released (2010-II)

Postby Nikolay.Gekht » Wed Apr 07, 2010 12:58 pm

B) New powerful features!

This version dramatically increases an ability of the indicator authors to create powerful indicators.

1) Text output streams!

Now the indicator can produce another kind of the output: text output streams. The text output streams is a set of labels, which places in the specified time period, at the specified price level. The indicator can also choose the font, font size, font color and alignment of the labels. The labels can also have a tooltip.

See instance:createTextOutput(...).

2) An ability to group a number of the streams into new entities.

Now, the indicator can group two lines into the channel (an area between two lines which is highlighted), into from/to bar (the vertical bar drawn between two lines) or even group for lines into a candle!

See instance:createCandleGroup(), instance:createChannelGroup(), instance:createFromToBarGroup() for details.

3) A new, powerful host table is added to control the Marketscope. Using the table the indicator can:

- Load more data (for example load another instrument or another time frame). See getHistory and extendHistory host calls.

- Get an access to bid and ask data of the source. See getBidPrice and getAskPrice host calls.

- Draws custom lines and labels on the chart.

The host also supports many other useful functions!

3) A new entity, signal appears. The signal is a Lua code, which listens offers, can load prices, can apply indicators and, when a certain condition is met, show the text alert and/or play the sound alert.
Nikolay.Gekht
FXCodeBase: Base Builder
 
Posts: 1222
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: New version of the Indicator SDK released (2010-II)

Postby Nikolay.Gekht » Wed Apr 07, 2010 12:59 pm

C) New core and service functions.

1) NOW constant can be used to access to the latest available data in the streams.

Example:

Old syntax:
curr_high = source.high[source:size() – 1]
prev_close = source.close[source:size() – 2]

New syntax:
curr_high = source.high[NOW]
prev_close = source.close[NOW - 1]

2) The core.minmax function is added.

The function returns both, minimum and maximum values in the specified range in one call.

Old syntax:
local min, max, minpos, maxpos;
local range;
range = core.rangeTo(period, N);
min, minpos = core.min(source.low, range);
max, maxpos = core.min(source.high, range);

New syntax:
local min, max, minpos, maxpos;
local range;
range = core.rangeTo(period, N);
min, max, minpos, maxpos = core.minmax(source, range);

3) core.getcandle function is added.

The function calculates the date and time of the begin and the end of a candle of the specified size.

4) core. isnontrading function is added.

The function checks whether the candle belongs to the regular non-trading hours (Friday 17:00EST-Sunday 17:00EST).

5) The bar_stream now contains tick sub-streams for median, typical and weighted prices.

6) The bar and tick streams now can return the unique identifier of the bar (serial number).

7) The indicator can check whether the source is a bid or ask source (isBid()) and whether the source is historical or receives the new data (isAlive())

8) A new table http_loader which can be used to load any data from the WEB, for example news or statistical data.
Nikolay.Gekht
FXCodeBase: Base Builder
 
Posts: 1222
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: New version of the Indicator SDK released (2010-II)

Postby Nikolay.Gekht » Wed Apr 07, 2010 1:11 pm

How does it look in the new version of the Marketscope:

show.png


(click the image to enlarge)
Nikolay.Gekht
FXCodeBase: Base Builder
 
Posts: 1222
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC


Return to Articles (READ ONLY)

Who is online

Users browsing this forum: No registered users and 1 guest