[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use DLLs ?



PureBytes Links

Trading Reference Links

Philipe.

> It beeps endlessly and TS is stuck during 1 minute, even if there's
> no new quotation.

> 1. Could you explain to me why ?

Because on EVERY BAR on your chart the dll gets called when you 
invoke the function the FIRST time. AFTERWARDS only the LAST bar 
gets calculated.. 

Gerrit

> 


> I tried to use a DLL function as explained in the TSY2K 
developer's kit.

> I created a Signal using a slightly modified Omega's example :
> {#DLL001}
> 
> DefineDLLFunc: "USER32.DLL",bool,"MessageBeep",int;
> 
> If Open > Close  or Open < Close then MessageBeep(0);
> 
> 
> After I inserted this signal into a system with the systemBuilder and I
> plotted it into a chart.
> 
> The results are :
> It beeps endlessly and TS is stuck during 1 minute, even if there's no new
> quotation.
> Furthermore, It stops without my intervention and after it works fine : it
> generates a beep each 5 minutes on a 5 min bar chart.
> 
> 
> 1. Could you explain to me why ?
> 
> 2. How can I find the useable DLLs with TS2000 ?
> 
> 3. How can I know the functions available in one DLL ?
> For example, what else can we do with the USER32 library ?
> 
> 
> 
> Thanks,
> 
> 
> Greetings from Paris
> 
> °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
> plhermie@xxxxxxxxxxxxxxxx
> 
> Philippe Lhermie           ¤¿¤
>                                            ~
> ===================================
> 
>