I am a little desperate right now.
I am working since a week on this problem and cant finde a solution.
I put on a chart with
Data1 = M1 (minute)
Data2= D1 (daily)
I just want to have the daily DMI (data2). It doesn’t matter which stock
Code:
Code: Select all
variables:
dplus(0),
dminus(0);
dplus=DMIPlusCustom(h of data2,l of data2, c of data2,14);
dminus=DMIMinusCustom(h of data2,l of data2, c of data2,14);
print(" dplus: ",dplus," dminus: ",dminus);
It is obvious that this has to be wrong. There is no DMI with “0” or over “90”.output:
…
dplus: 0.00 dminus: 81.36
…
dplus: 0.00 dminus: 97.29
…
Could someone please tell me where I am wrong?