Class VolumeProfileStudy

java.lang.Object
com.motivewave.platform.sdk.study.Study
com.motivewave.platform.sdk.profile.VolumeProfileStudy
All Implemented Interfaces:
Cloneable

public class VolumeProfileStudy extends Study
Draws a summary volume profile on the left or right side of the chart.
  • Constructor Details

    • VolumeProfileStudy

      public VolumeProfileStudy()
  • Method Details

    • initialize

      public void initialize(Defaults defaults)
      Description copied from class: Study
      This method is called to initialize the design and runtime settings.
      Overrides:
      initialize in class Study
      Parameters:
      defaults - system defaults
    • onSettingsUpdated

      public void onSettingsUpdated(DataContext ctx)
      Description copied from class: Study
      This method is called whenever the settings for the study have been updated.
      Overrides:
      onSettingsUpdated in class Study
      Parameters:
      ctx - data context
    • clearState

      public void clearState()
      Description copied from class: Study
      Override this method to clear any internal state that may be kept within the study. This method is called when the settings have been updated, the user chooses a new bar size or when additional historical data is loaded into the series
      Overrides:
      clearState in class Study
    • getLabel

      public String getLabel()
      Gets the display label for the default plot including setting values.
      Overrides:
      getLabel in class Study
      Returns:
      display label for the default plot including setting values
    • calculateValues

      protected void calculateValues(DataContext ctx)
      Description copied from class: Study
      By default, this method is called on events where the data series has been affected.
      Overrides:
      calculateValues in class Study
      Parameters:
      ctx - data context
    • onTick

      public void onTick(DataContext ctx, Tick tick)
      Description copied from class: Study
      This method is called when a tick (trade) occurs.
      Overrides:
      onTick in class Study
      Parameters:
      tick - latest tick (trade)