org.unizone.finance.equity

Type Equity

org.unizone.0.5700
Instance of Type
Inheriting from Instrument

Type dataValue
org.uninode.Type.displayPattern{att:org.unizone.finance.Ticker.tickerId}
org.unizone.finance.Instrument.defaultSettlementDays1
org.unizone.source.Source.valueAttributeorg.unizone.finance.Index.last
org.uninode.Listable.resourcesReference[org.uninode.Listable.resources] of org.unizone.finance.equity.Equity

Attribute summaryDefined inUninode® IdPropertiesDefault
CompanycompanyEquityorg.unizone.0.5704
RealturnoverEquityorg.unizone.0.5705
RealvolumeEquityorg.unizone.0.5703
Reference[org.uninode.Listable.resources]resourcesListableorg.uninode.0.2001type
StringtoString
This is the display string.
Nodeorg.uninode.0.102
Typetype
The type of an object determines the behaviour and attributes of the object.
Nodeorg.uninode.0.101
StringuriNodeorg.uninode.0.103
RealcloseMidnight
This is the yesterday closing index.
Indexorg.unizone.0.5002
RealhighIndexorg.unizone.0.5003
Reallast
This is the index value.
Indexorg.unizone.0.5001
ReallowIndexorg.unizone.0.5004
RealaskInstrumentorg.unizone.0.5042
RealbidInstrumentorg.unizone.0.5043
IntdefaultSettlementDaysInstrumentorg.unizone.0.5044type
inheritValue
1
ExchangeexchangeInstrumentorg.unizone.0.5041
TickerLeafproductTickerorg.unizone.0.10765
StringtickerId
This is the id of a ticker. The selection attribute determines the current selection from all products with the same tickerLeafId as this tickerId.
Tickerorg.unizone.0.5121
StringdisplayName
The display name is the name that is shown in lists, displays and graphs.
Sourceorg.unizone.0.4001essential
AttributevalueAttribute
The value attribute is used for determining the default value that should be used for displaying this source in a graph.
Sourceorg.unizone.0.4011type
inheritValue
SignaturevalueType
The value type determines which axes should be used in graphs.
Sourceorg.unizone.0.4002inheritValue

Method summaryDefined inOverridesProperties
voidactivateListable
voidcheckRangeSource
voidcollectSteps(List steps, Dimension dimensionType)Source
voidcollectValues(List steps, List values, Type dimensionType)Source
voiddesignEditor(WidgetWorkspace ws)Listable
RealevaluateSource
voidgenerateScript(ScriptGenerationInfo info)SourceScriptGenerator
BooleanisResourceOf(Listable listable, Signature aspect)Mixabletype
ListablemixOn(Mixable mix)Mixable
ListablemixWith(Mixable mix)Mixable
StringresourceStringListableintrospection
Realtimeseries(Signature aspect)Source
SignaturevalueTypeSourceintrospection
voidcom.nodelab.java.source.ActivateSourceListable
Listablecom.nodelab.java.source.MixWithMiSourceMixable

Script summary
com.nodelab.0.10407
import 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.8525
import 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();
}
*/