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;
}
}
}
Canot make my static class with static function - VERIFIED.
- 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
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.
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