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
Compile one system in one DLL
Questions about MultiCharts and user contributed studies.
2 posts • Page 1 of 1
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 ;