tengfei932
Newbie
- Messages
- 1
- Likes
- 0
Hi,
I need help in Metastock Developers Kit (MDK). I copied forum.dll and I try this code and it works:
prd:=PeakBars(1,C,5)-1;
data:=ExtFml("Forum20.Ref",C,prd);
But if I try to make my own code with my own function then it show error "This variable or expression must contain only constant data." for "prd" :
prd:=PeakBars(1,C,5)-1;
data:=ExtFml("MyCode.Ref",C,prd);
I try to make the function just like they have in the example CSampleDLL.cpp. But it still showing me same error. What mistake am I doing. Why my function only accept constant and not the calculate "prd".?
Please Please help. I am going mad solving this.
Thank You
Teng Fei
I need help in Metastock Developers Kit (MDK). I copied forum.dll and I try this code and it works:
prd:=PeakBars(1,C,5)-1;
data:=ExtFml("Forum20.Ref",C,prd);
But if I try to make my own code with my own function then it show error "This variable or expression must contain only constant data." for "prd" :
prd:=PeakBars(1,C,5)-1;
data:=ExtFml("MyCode.Ref",C,prd);
I try to make the function just like they have in the example CSampleDLL.cpp. But it still showing me same error. What mistake am I doing. Why my function only accept constant and not the calculate "prd".?
Please Please help. I am going mad solving this.
Thank You
Teng Fei