Class ExitPointDescriptor

java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<ExitPoint>
com.motivewave.platform.sdk.common.desc.ExitPointDescriptor

public class ExitPointDescriptor extends SettingDescriptor<ExitPoint>
Describes an exit point for a strategy.
  • Constructor Details

    • ExitPointDescriptor

      public ExitPointDescriptor(String name, String label, int pips, int lots, boolean enabled, boolean supportsDisable)
      Constructor
      Parameters:
      name -
      label -
      pips -
      lots -
      enabled -
      supportsDisable -
  • Method Details

    • getDefaultValue

      public ExitPoint getDefaultValue()
      Gets the default value for this setting.
      Overrides:
      getDefaultValue in class SettingDescriptor<ExitPoint>
      Returns:
      default value for the setting
    • createInputFX

      public javafx.scene.Node createInputFX(Settings settings, boolean readOnly)
      Description copied from class: SettingDescriptor
      Creates the component that will accept the user input. This is called by the study framework.
      Specified by:
      createInputFX in class SettingDescriptor<ExitPoint>
      Parameters:
      settings - settings for the study
      readOnly - true if the component should not accept user input
      Returns:
      component that will accept user input.
    • getPips

      public int getPips()
    • getLots

      public int getLots()
    • fromJson

      public Object fromJson(Object json)
      Overrides:
      fromJson in class SettingDescriptor<ExitPoint>