PureBytes Links
Trading Reference Links
|
Don,
Here's part of what I had in one indicator that I called COMHX01X09.
COMHX03:= ( FmlVar("COMH-MXX","COMHMXX") - Ref(
FmlVar("COMH-MXX","COMHMXX") , -3 )) / 3;
COMHX04:= ( FmlVar("COMH-MXX","COMHMXX") - Ref(
FmlVar("COMH-MXX","COMHMXX") , -4 )) / 4;
COMHX05:= ( FmlVar("COMH-MXX","COMHMXX") - Ref(
FmlVar("COMH-MXX","COMHMXX") , -5 )) / 5;
COMHX06:= ( FmlVar("COMH-MXX","COMHMXX") - Ref(
FmlVar("COMH-MXX","COMHMXX") , -6 ) ) / 6;
COMHX07:= ( FmlVar("COMH-MXX","COMHMXX") - Ref(
FmlVar("COMH-MXX","COMHMXX") , -7 ) ) / 7;
COMHX08:= ( FmlVar("COMH-MXX","COMHMXX") - Ref(
FmlVar("COMH-MXX","COMHMXX") , -8 ) ) / 8;
COMHX09:= ( FmlVar("COMH-MXX","COMHMXX") - Ref(
FmlVar("COMH-MXX","COMHMXX") , -9 ) ) / 9;
COMHX09;
The only thing missing is COMHX01 and COMHX02. When running, it works
sporadically or not at all. I cut and pasted COMHX01 and COMHX02 into their
own indicators (which is how I tested them in the first place) and they work
fine. I'm now moving all of these back into individual indicators. I have
no idea why this didn't work since I only had 9 variables. The COMX09;
entry was strictly for plotting purposes so I could check out the detailed
results (remember, I'm doing a conversion here and need to verify
calculations to 4 decimal places).
After verifying my calculation results, I delete the final COMHX09 plotting
entry. Anyway, why they don't work when contained in one indicator and do
work when cut and pasted into their own indicator, I have absolutely no
idea.
Regards,
Guy
" If at first you don't succeed, skydiving is not for you."
|