Static
addStatic
addStatic
addadd watermark drawing function to watermark registry
implementations can be set active by calling BG.charts.utils.set('activeWatermark', $name);
Additionally, it needs to be enabled for each BG.charts.Controller-instance by setting the showWatermark
-setting to true.
Static
adjustStatic
adjustStatic
cloneStatic
comparecompare an object identifier returns true if identifiers match, false otherwise the optional parameter controls wether ids should be considered for comparison (default = true)
Optional
considerIds: booleanStatic
convertEODTimestampStatic
ellipsifyStatic
equalsStatic
fetchStatic
findStatic
findStatic
formatbuilds a string using the supplied format and key value callback
supports variables like {NAME} variables can supply default values like {NAME:DEFAULT} if the value retrieved from the callback matches the default it will be skipped, same as if there was no value at all
multiple variables can be joined with {SEPARATOR|VARIABLE|VARIABLE|...}
also supports conditionals that are only displayed when at least one enclosed variable has a non-default value: "[Currency: {currency}]"
available variables depend on used data loader that has to provide them in the properties object as part of the metadata
Example: "{name}[ ({, |currency|qs})]" => "DAX (XXP, Last)" or "Foo (Bid)" or "Foo ($)" or "Foo"
Static
getStatic
hasStatic
hasStatic
htmlentitiesStatic
intervalreturns the name for an interval
Static
lista list containing all available objects of the specified type lists are available for the following types: indicator, tool, generator, loader, layer NOTE: the map can contain duplicates, as one clazz might be registered for multiple types
Static
mergemerges properties of the second object into the first one
non-existing properties are simply added to the first object. if properties exist in both objects:
Static
nearestStatic
normalizeStatic
parseparse an object identifier identifiers consist of a type, optional params enclosed by parenthesis, and an optional resolution prefixed with @
Example: Instrument(133962,4)@86400000 => {type:"Instrument", params:[133962,4], resolution:86400000, id:null} SMA(20) => {type:"SMA", params:[20], resolution:86400000, id:null} MACD => {type:"MACD", params:[], resolution:86400000, id:null} Expression(A/(B+C))@3600000 => {type:"Expression", params:["A/(B+C)"], resolution:3600000, id:null} Instrument(133962)#Foo => {type:"Instrument", params:[133962], resolution:86400000, id:Foo}
Static
rmStatic
rmStatic
setStatic
setStatic
setStatic
shiftStatic
spanreturns the name for an interval
Static
stripStatic
tickchecks if the specified tick is already complete
a timestamp (UTC)
interval to match with
timezone identifier for grouping
daily start time in milliseconds
daily end time in milliseconds
flag indicating if tick is complete
Static
tickTFinds the nearest timestamp before the referenceTick that indicates a border between intervals of the given length
a timestamp (UTC)
interval to match with
timezone identifier for grouping
daily start time in milliseconds
the matched timestamp (UTC)
Static
typeStatic
urlStatic
validate
a collection of utility functions used by the chart classes