Canot make my static class with static function - VERIFIED.

Questions about MultiCharts .NET and user contributed studies.
sylfvdk
Posts: 57
Joined: 06 Dec 2005

Canot make my static class with static function - VERIFIED.

Postby sylfvdk » 26 Feb 2016

Hi, MC Support.

I created my own static function slightly modified your prebuilt function RateOfChange.
It compiles, works fine, but I cannot get rid of red circle in PowerLanguage .NET Editor.
Basically after further testing, I figured it out that we just cannot have static class VERIFIED in Editor. Any solution? How prebuilt functions were compiled?


Here is my class:
using System;

namespace PowerLanguage.Function
{
public static class _RateOfChangeD
{
public static double RateOfChangeD(this ISeries<Double> price, double _openD)
{
var _price = _openD;
return _price != 0 ? (price.Value/_price - 1)*100 : 0;
}
}
}

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Canot make my static class with static function - VERIFI

Postby Henry MultiСharts » 03 Mar 2016

Hello sylfvdk,

Our engineers have created a sample static function that is verified by the PLEditor and an indicator that utilizes this function for you. Please find the studies in the attached file.
Attachments
UseExtMethods.pln
(1.57 KiB) Downloaded 283 times


Return to “MultiCharts .NET”