How can I get tskit.dll

Questions about MultiCharts and user contributed studies.
rajeshkhan808
Posts: 2
Joined: 05 Nov 2012

How can I get tskit.dll

Postby rajeshkhan808 » 29 Nov 2012

I only have multicharts installed and there is no tskit.dll. I am creating a custom dll and need to reference tskit.dll any suggestions ?

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: How can I get tskit.dll

Postby Andrew MultiCharts » 29 Nov 2012

Hello rajeshkhan808,

You can use Plkit.dll that comes with MultiCharts. it is identical to Tskit.dll.

rajeshkhan808
Posts: 2
Joined: 05 Nov 2012

Re: How can I get tskit.dll

Postby rajeshkhan808 » 29 Nov 2012

Here is what I am doing so far
In my C++ project I am doing

Code: Select all

#import "D:\\Program Files\\TS Support\\MultiCharts64\\PLKit.dll" no_namespace
However I still cant access

Code: Select all

IEasyLanguageObject * object
Any suggestions on what I might be doing wrong ?

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: How can I get tskit.dll

Postby Andrew MultiCharts » 17 Dec 2012

Here is an example that should be helpful for you.

nni8568
Posts: 4
Joined: 29 Aug 2022

Re: How can I get tskit.dll

Postby nni8568 » 01 Oct 2022

Here is an example that should be helpful for you.
Hi Andrew the link you posted is now broken. Do you have any updated one?

Thank you

User avatar
Svetlana MultiCharts
Posts: 645
Joined: 19 Oct 2017
Has thanked: 3 times
Been thanked: 163 times

Re: How can I get tskit.dll

Postby Svetlana MultiCharts » 05 Oct 2022

Here is C++ project sample.
Two test functions are created in the project.

Code: Select all

// MCDLL.cpp : Defines the exported functions for the DLL application. // #include "stdafx.h" #include <math.h> #import "C:\Program Files\TS Support\MultiCharts64\PLKit.dll" no_namespace //=================================================================== extern "C" int __stdcall TestFunc(int test) { return 2 * test; } int __stdcall dummyFunction(IEasyLanguageObject * elo) { try { if (elo->Close[0] > elo->Close[1]) { return 1; } } catch(...) { return 10; } return 0; }
Start MCDLL.sln project.
MCDLL.dll will be built in the project directories. You need to put it in MultiCharts installation folder.
Then import test_mcdll.pla in PowerLanguage Editor. Here is an example how to use these functions in PL.

Code: Select all

external: "mcdll.dll", int,"TestFunc",int; external: "mcdll.dll", int,"dummyFunction", ieasylanguageobject; value1 = TestFunc(3); value2 = dummyFunction(self); Plot1(value1); Plot2(value2);
The functions included in MCDLL.dll of this project will be used in test_mcdll.pla indicator.


Return to “MultiCharts”