com.dukascopy.api.indicators
Interface IIndicatorsProvider


public interface IIndicatorsProvider

Interface to get indicator groups, indicator names, and indicators itself


Method Summary
 Collection<String> getAllNames()
          Returns list of all indicator names
 Collection<String> getGroups()
          Returns list of indicator groups
 IIndicator getIndicator(String name)
          Returns indicator with specified name or null if no indicator was found
 Collection<String> getNames(String groupName)
          Returns indicator names that belongs to specified group
 String getTitle(String name)
          Returns indicator's title
 boolean isEnabledOnCharts(String indicatorName)
          Returns true if indicator should be available in add indicator dialog
 void registerUserIndicator(File compiledCustomIndcatorFile)
          Attempts to open and register custom indicator in the system
 

Method Detail

getGroups

Collection<String> getGroups()
Returns list of indicator groups

Returns:
list of indicator groups

getNames

Collection<String> getNames(String groupName)
Returns indicator names that belongs to specified group

Parameters:
groupName - indicator group
Returns:
indicator names

getAllNames

Collection<String> getAllNames()
Returns list of all indicator names

Returns:
list of all indicator names

getIndicator

IIndicator getIndicator(String name)
Returns indicator with specified name or null if no indicator was found

Parameters:
name - name of the indicator
Returns:
indicator

isEnabledOnCharts

boolean isEnabledOnCharts(String indicatorName)
Returns true if indicator should be available in add indicator dialog

Parameters:
indicatorName - name of the indicator
Returns:
true if indicator should be available in add indicator dialog or false otherwise

getTitle

String getTitle(String name)
Returns indicator's title

Parameters:
name - name of the indicator
Returns:
indicator's title

registerUserIndicator

void registerUserIndicator(File compiledCustomIndcatorFile)
                           throws JFException
Attempts to open and register custom indicator in the system

Parameters:
compiledCustomIndcatorFile - file with the compiled indicator (the one with .jfx extension)
Throws:
JFException - when indicator doesn't exists or can't be instantiated or don't pass validation


Copyright © 2011. All Rights Reserved.