Hi Simon,
I have never heard of this DLL before, but after searching the net, this is what I found:
Apparently it was posted on traders2traders, which no longer exists, so the documentation is very slim. It was designed as a DLL for TS 2000i, so chances are it will work with MC, too.
I found some code pieces on the TS forum, which are demo systems and provided only as an example and not as a complete trading system. Which means, you shouldn't use it for anything more than an example on how to call the DLLs and not trade it.
Correct me if I'm wrong, but from what I understand you can do the same in MC without this DLL by just using the "symbol_" keywords.
Code: Select all
{Begin Code}
{Make sure "c:\omega\ANYOHLC.DLL" is replaced with the the path you placed the AnyOHLC.dll}
DefineDLLFunc: "c:\omega\ANYOHLC.DLL", int, "MYOPEN", multiple;
DefineDLLFunc: "c:\omega\ANYOHLC.DLL", int, "MYHIGH", multiple;
DefineDLLFunc: "c:\omega\ANYOHLC.DLL", int, "MYLOW", multiple;
DefineDLLFunc: "c:\omega\ANYOHLC.DLL", int, "MYCLOSE", multiple;
Variables: nOpen(0);
nOpen = (MYOPEN((LPLONG)&Open,(int) -1)) / PRICESCALE;
Buy Next Bar at nOpen - 10 Limit;
Sell Short Next bar at NOpen + 10 Limit;
Code: Select all
var: NextOpen(0);
DefineDLLFunc: "c:\program files\TS\program\ANYOHLC.DLL", int, "MYOPEN", multiple;
if date=lastcalcdate then NextOpen=0 else NextOpen=(MYOPEN((LPLONG)&Open,(int) -1)) / PRICESCALE;
if NextOpen>closed(0) and absvalue(NextOpen-closed(0))/closed(0) <.0075 then sell short next bar open;
setprofittarget(absvalue(NextOpen-closed(0))*bigpointvalue+500);
setexitonclose;
As I said I would use the symbol_ keywords or ELCollections maybe, but not knowing what you are trying to do it's hard to give you a good example.
Regards,
ABC