Use methods in function

Questions about MultiCharts .NET and user contributed studies.
turbofib
Posts: 162
Joined: 11 May 2013
Has thanked: 48 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
Immagine2.png (12.12 KiB) Viewed 451 times

User avatar
Henry MultiСharts
Posts: 9086
Joined: 25 Aug 2011
Has thanked: 1258 times
Been thanked: 2921 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: 162
Joined: 11 May 2013
Has thanked: 48 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 369 times

User avatar
Henry MultiСharts
Posts: 9086
Joined: 25 Aug 2011
Has thanked: 1258 times
Been thanked: 2921 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 281 times


Return to “MultiCharts .NET”