Compile one system in one DLL

Questions about MultiCharts and user contributed studies.
tradersheldon
Posts: 22
Joined: 29 Jul 2010
Has thanked: 1 time
Been thanked: 4 times

Compile one system in one DLL

Postby tradersheldon » 25 Aug 2010

Hi i would like to know to compile my systems in one DLL, ther is some manual to do it and how to use the objets of multichats...

Thanks in advanced

tradersheldon
Posts: 22
Joined: 29 Jul 2010
Has thanked: 1 time
Been thanked: 4 times

Re: Compile one system in one DLL

Postby tradersheldon » 26 Aug 2010

hi i have tried to compile one moving average in c++ and like appears in the example that multichart has of TS example and give me one error can solve it somebody or see where is the error please...

Code: Select all

#import " C:\Program Files\TS Support\MultiCharts\PLKit.dll" no_namespace

//////////////////////////////////////////////////////////////
// Calculate simple moving average value
double __stdcall MovAvg
( IEasyLanguageObject * pELObj, int iAvgLength )
{
double dMovAvg ;
dMovAvg = 0 ;
// verify that sufficient bars have passed before back-referencing historical prices
if( pELObj->CloseMD[data1]->barsback > iAvgLength && iAvgLength > 0 )
{
double dSum = 0.0 ;
for (int i = 0; i < iAvgLength; i++)
{
dSum += pELObj->CloseMD[data1]->AsDouble[ i ] ;
}
dMovAvg = dSum / iAvgLength ;
}
return dMovAvg ;

}


Return to “MultiCharts”