How to Calculate Indicator (Step-By-Step guide)
To calculate the indicator using the library in the application you shall:
indicore2.dll
and lua.dll
to your application binary folder.indicore2.lib
to list of the libraries in the linker options.indicore2\include
folder to your project.indicore2\include\indicore2.h
to your source code.IIndicatorBarSource
and/or
IIndicatorTickSource
on your data source classes.IndicoreManager
using
IndicoreManager::getInstance()
method.IndicoreManager.loadIndicators()
method.IIndicators
*) using
the IndicoreManager.getIndicators()
method.IIndicator
*) from the instance of IIndicators
interface.IIndicator::getParameters()
method.IIndicator::getRequiredSource()
method.IIndicatorBarSource
interface
in case the indicator returns IIndicator::Bar
value.IIndicatorTickSource
interface in case
the indicator returns IIndicator::Tick
value. In this case, you can also use:
OpenTickWrapper
, CloseTickWrapper
,
HighTickWrapper
or LowTickWrapper
applied on
the instance of the IIndicatorBarSource interface, or the output stream of other indicator.IIndicator::getInstance()
method.IIndicatorInstance::update()
method
initially and every time when the source is changed. In case the one indicator is specified as
a source for another indicator, the indicator, specified as a source shall be updated prior
to the depending indicator.IIndicatorInstance::getStreams()
method.IIndicatorOutputStream::getType()
)IIndicatorInstance::release()
in case you do not plan to use the indicator instance anymore.IndicoreManager::release()
in case you do not
plan use the indicators anymore.