Use methods in function

Questions about MultiCharts .NET and user contributed studies.
turbofib
Posts: 213
Joined: 11 May 2013
Has thanked: 67 times
Been thanked: 1 time

Use methods in function

Postby turbofib » 29 Jul 2014

hi,....see code below :

Code: Select all

using System;
using System.Drawing;
using System.Linq;


namespace PowerLanguage
{
namespace Function
{
public sealed class MainTrend : FunctionSeries<System.Int32>
{
public MainTrend(CStudyControl _master) : base(_master) { }
public MainTrend(CStudyControl _master, int _ds) : base(_master, _ds) { }
//***************************************************
public ISeries<double> Price { private get; set; }


..............
.............
...........

static void MT_est(); //METODO MT_est
{
poss=1;
//return(poss);
}

it give me following error..(see pics):

i can't use method in derived interface...

How can i do now?
Attachments
Immagine2.png
(12.12 KiB) Downloaded 478 times

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

Re: Use methods in function

Postby Henry MultiСharts » 29 Jul 2014

Hello turbofib,

Please attach the full code you are using.

turbofib
Posts: 213
Joined: 11 May 2013
Has thanked: 67 times
Been thanked: 1 time

Re: Use methods in function

Postby turbofib » 29 Jul 2014

below there is the code ...
I am translating an indicator easylanguage done ... so for now, it does not give any result from mistakes ... and wonder what this error is due
Attachments
Maintrend2.pln
(1.48 KiB) Downloaded 463 times

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

Re: Use methods in function

Postby Henry MultiСharts » 29 Jul 2014

Please find the proper code attached.
Attachments
MainTrend2_fix.pln
(1.47 KiB) Downloaded 377 times


Return to “MultiCharts .NET”