org.unizone.finance.equity | ![]() |
org.unizone.0.5700
Instance of Type
Inheriting from Instrument
Type data | Value |
org.uninode.Type.displayPattern | {att:org.unizone.finance.Ticker.tickerId} |
org.unizone.finance.Instrument.defaultSettlementDays | 1 |
org.unizone.source.Source.valueAttribute | org.unizone.finance.Index.last |
org.uninode.Listable.resources | Reference[org.uninode.Listable.resources] of org.unizone.finance.equity.Equity |
Attribute summary | Defined in | Uninode® Id | Properties | Default | |
Company | company | Equity | org.unizone.0.5704 | ||
Real | turnover | Equity | org.unizone.0.5705 | ||
Real | volume | Equity | org.unizone.0.5703 | ||
Reference[org.uninode.Listable.resources] | resources | Listable | org.uninode.0.2001 | type | |
String | toString This is the display string. | Node | org.uninode.0.102 | ||
Type | type The type of an object determines the behaviour and attributes of the object. | Node | org.uninode.0.101 | ||
String | uri | Node | org.uninode.0.103 | ||
Real | closeMidnight This is the yesterday closing index. | Index | org.unizone.0.5002 | ||
Real | high | Index | org.unizone.0.5003 | ||
Real | last This is the index value. | Index | org.unizone.0.5001 | ||
Real | low | Index | org.unizone.0.5004 | ||
Real | ask | Instrument | org.unizone.0.5042 | ||
Real | bid | Instrument | org.unizone.0.5043 | ||
Int | defaultSettlementDays | Instrument | org.unizone.0.5044 | type inheritValue | 1 |
Exchange | exchange | Instrument | org.unizone.0.5041 | ||
TickerLeaf | product | Ticker | org.unizone.0.10765 | ||
String | tickerId This is the id of a ticker. The selection attribute determines the current selection from all products with the same tickerLeafId as this tickerId. | Ticker | org.unizone.0.5121 | ||
String | displayName The display name is the name that is shown in lists, displays and graphs. | Source | org.unizone.0.4001 | essential | |
Attribute | valueAttribute The value attribute is used for determining the default value that should be used for displaying this source in a graph. | Source | org.unizone.0.4011 | type inheritValue | |
Signature | valueType The value type determines which axes should be used in graphs. | Source | org.unizone.0.4002 | inheritValue |
Method summary | Defined in | Overrides | Properties | |
void | activate | Listable | ||
void | checkRange | Source | ||
void | collectSteps(List steps, Dimension dimensionType) | Source | ||
void | collectValues(List steps, List values, Type dimensionType) | Source | ||
void | designEditor(WidgetWorkspace ws) | Listable | ||
Real | evaluate | Source | ||
void | generateScript(ScriptGenerationInfo info) | Source | ScriptGenerator | |
Boolean | isResourceOf(Listable listable, Signature aspect) | Mixable | type | |
Listable | mixOn(Mixable mix) | Mixable | ||
Listable | mixWith(Mixable mix) | Mixable | ||
String | resourceString | Listable | introspection | |
Real | timeseries(Signature aspect) | Source | ||
Signature | valueType | Source | introspection | |
void | com.nodelab.java.source.Activate | Source | Listable | |
Listable | com.nodelab.java.source.MixWithMi | Source | Mixable |
Script summary |
com.nodelab.0.10407import com.nodelab.view.DiagramPainter; import com.nodelab.view.DiagramPainterLineBar; import com.nodelab.Scene; import com.nodelab.Actor; import com.nodelab.view.Axes; import com.nodelab.view.Diagram; import org.unizone.source.Source; import org.unizone.finance.equity.Volume; type Type diagramPainter() { return DiagramPainterLineBar; } trace void activate() { Scene scene = new Scene(Diagram); Actor actor = scene.addSource(this); Axes axes = Diagram{scene.view}.axesFor(actor); axes.setTopBottomAdjustment(0.0, 0.2); Source src = new Volume(this); actor = scene.addSource(src); actor.setColor(Color.lightGray); axes = Diagram{scene.view}.axesFor(actor); axes.setTopBottomAdjustment(0.6, 0.0); scene.activate; } |
org.unizone.0.8525import org.uninode.collection.List; import org.uninode.collection.TimeSeries[Real]; import org.unizone.finance.Instrument; constructor() { Instrument:(); } /* Signature valueType() { 'price'; } */ List[Signature] defaultAspects() { #('last', 'high', 'low'); } Signature defaultAspect() { 'last'; } TimeSeries[Real] timeseries(Signature aspect) { if (aspect == 'high') return high; if (aspect == 'low') return low; return null; } /* Int preferredDays() {365} Type diagramPainter() { if (external cond_history_resolution == #day) DiagramPainterLineBar; else DiagramPainter; } Void activate() { Gig gig = new Gig(ViewDiagramStandard); gig.addSource(this); Source src = new AdaptorAverageDay(); src.setNextSource(this); Part part = gig.addSource(src); part.setColor(Color.blue); Axes axes = ViewDiagram{gig.view}.axesFor(part); axes.setTopBottomAdjustment(0.0, 0.2); src = new AdaptorVolume(); src.setNextSource(this); part = gig.addSource(src); part.setColor(Color.lightGray); axes = ViewDiagram{gig.view}.axesFor(part); axes.setTopBottomAdjustment(0.4, 0.0); gig.activate(); } */ |