frycco
Jr. Member
 
Posts: 5
|
 |
« on: May 11, 2007, 04:16:10 AM » |
|
Hello,
I've installed Jurik Indicators and I would like to know if it's possible to add DMX indicator?
I've tried to install it by using DLL Manager with parameters :
extern _delclspec(dllimport) int WINAPI DMX( double *pdInHigh, double *pdInLow, double *pdInCLOSE, double *pdOutBipolar, double *pdOutPlus, double *pdOutMinus, double dLength, INT iSize);
where :
pdInHigh is a pointer to an Array of doubles that contain the time series of market bar High prices. pdInLow is a pointer to an Array of doubles that contain the time series of market bar Low prices. pdInClose is a pointer to an Array of doubles that contain the time series of market bar Close prices. pdOutBipolar is a pointer to an Array of doubles that the functions will write its DMX bipolar result. pdOutPlus is a pointer to an Array of doubles that the functions will write its DMX+ results to. pdOutMinus is a pointer to an Array of doubles that the functions will write its DMX- results to. dLength is a double floating point that specifies smoothness of DMX. isSize number of double in each data array.
And how can I use it?
thanx
|
|
|
|
|
Logged
|
|
|
|
|
|
frycco
Jr. Member
 
Posts: 5
|
 |
« Reply #2 on: May 11, 2007, 05:18:30 AM » |
|
thanx,
but I've successfully added DMX by using DLL Manager and the install documentation from jurik, and now I would like to use it!
What can I do for creating a function? The documentation not explain how to do this?
|
|
|
|
|
Logged
|
|
|
|
|
AlexG
|
 |
« Reply #3 on: May 31, 2007, 03:56:11 PM » |
|
Once you added Jurik tools to Tradecision, you can add the indicators to charts: Insert > Indicator. But as I see you would like to access Jurik as functions, right?
|
|
|
|
|
Logged
|
|
|
|
|
Tradecision Support Team
|
 |
« Reply #4 on: June 01, 2007, 04:59:04 AM » |
|
frycco,
once you have added Jurik tools, the corresponding indicators and functions are added to TD. To access functions you need to open Improvian Editor > the Categories sections > select Jurik tools.
|
|
|
|
|
Logged
|
|
|
|
frycco
Jr. Member
 
Posts: 5
|
 |
« Reply #5 on: June 01, 2007, 06:33:13 AM » |
|
Thanx AlexG and the support team for your Help,
In fact, I don't know how to use a DLL function in Tradecision. Adding is easy! For Example, I create the following function :
int SMA(int InputLength, double *inputs, double *outputs, int Size)
the return value is error code of the function.
InputLength is Inputs Length : Array size. *inputs is the pointer to inputs values Array. *outputs is the pointer to the outputs values Array. Size : moving average delay.
In Tradecision, I add it by using DLL Manager without any problem. IsTradecision Function name is MySMA : MySMA(InputLength, inputs, outputs, size)
The exact question is How can I use this function with Improvian Language ?
thank you for your help!
|
|
|
|
|
Logged
|
|
|
|
|
AlexG
|
 |
« Reply #6 on: June 05, 2007, 04:15:50 AM » |
|
If you added a function to Tradecision, it will appear in the <My functions> category of Improvian Editor. And so you can use it to create an indicator, strategy, etc or use as a model input.
|
|
|
|
|
Logged
|
|
|
|
|