Metastock developer kit (MDK) Help Needed... Please

#1
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
 
Thread starter Similar threads Forum Replies Date
S AmiBroker 0
S MetaStock 0
A MetaStock 2
P MetaStock 2
B MetaStock 19

Similar threads