DLL using EasyLanguage Tool Kit Library.

P.A.M.

Newbie
Messages
3
Likes
0
Hi everyone. I want to write a dll for TradeStation using EasyLanguage Tool Kit Library, but I can't understand how to convert LPLONG type to a double. I want to multiply High[0] and High[1], but when I leave LPLONG type, I have a mistake: “Expression must have arithmetic or enum type”. So plz could someone explain it to me.:confused:
 
Tradestation 8.6 and I'm using elkit32.dll to pass pointers. Should I use elkit or better use tskit.dll?
I'm writting dll on VS 2010.
 
You should use TSKit for the newer TS version

You should use a basic C++ programming format as it works much easier

To do what you are asking from the C++ side would be similar to the following

double __stdcall MultiplyTwoPrices( IEasyLanguageObject *pEL )
{
return (pEL->Close[0] * pEL->Close[1]) ;
}
 
The EL side of things

external: "TheNameOfTheDLL.DLL", double, "MultiplyTwoPrices", IEasyLanguageObject ;

variables:
Result ( 0 ) ;

Result = MultiplyTwoPrices( self ) ;

print( Result ) ;


Don't forget that you have to reference the tskit.dll in your C++ program
 
You need to have a C++ compiler and the knowledge of the language well enough to be able to write simple programs. You don't have to do anything in EasyLanguage other than use proper code for calling the DLL. You have to reference the tskit.dll in your C++ program so that it knows how to interface. Other than that there isn't much else to know to write a simple code set. You are restricted in these cases mostly by the TradeStation side of things and what they allow, but you can definately write code that performs in TS.
 
Thank you StratOpt;
I like to ask you some questions.
can i use devC++???
the problem that when i make the path of tskit.dll in my C++ program many errors appear .
I don't understand what's the problem . I think perhaps because i use TradeStation 2000i or because i use devC++.
Have you any ideas ????
 
Top