Profile Picture

Aceess to SystemData.CustomString in Risk Assessment plugin

Posted By johan 2 Years Ago

Aceess to SystemData.CustomString in Risk Assessment plugin

Message
Posted Monday July 20 2015
I have some data in a CustomString which I want to take up in Risk Assessment plugin.  Here is part of code in Risk Assessment plugin.

public double PerformCalculation(RiskAssessmentCalculationType calculationType,

            SystemData baseSystem)

        {

            double value3 = 0;

            string equitytext = baseSystem.CustomString;

            string[] resultsList = equitytext.Split(',');

            value3 = Convert.ToDouble(resultsList[7]);

 

            return value3;

        }

public double PerformCalculation(RiskAssessmentCalculationType calculationType,

            SystemData baseSystem)

        {

            double value3 = 0;

            string equitytext = baseSystem.CustomString;

            string[] resultsList = equitytext.Split(',');

            value3 = Convert.ToDouble(resultsList[7]);

 

            return value3;

        }


It seems the CustomString is not populated.  Is there any way to get access to the CustomString in the Risk Assessment plugin?
Posted Tuesday July 21 2015
I have sorted the problem.  I only create the CustomString in the ShutDown method.  It seems the Risk Assessment plugin is called on every NewBar.


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems