Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 6/12/2007(UTC) Posts: 32
|
Hi Roy & Johnathan
Correcting the spelling did the trick, but I've ran into anthor error problem. This time using the global variable to get Custom Indicator Gobal Bestup to reference its parameter from Custom Indicator Bands, I got the error message "This variable or expression must contain only constant data". Where have I gone wrong.
{Bands}
x:=Input("Short Term Moving Average",7,14,7); y:=Input("Envelopes Percentage variation",1,99,5)/100; a:=x*5;
STMA:=Mov(C,x,E); UB:=Mov(C,x,S)*(1+y); LB:=Mov(C,x,S)*(1-y); LTMA:=Mov(C,a,E);
STMA; UB; LB; LTMA;
{Gobal Variable} I:=ExtFml("GVf.SetVar","Gx",x); I:=ExtFml("GVf.SetVar","Gy",y*100);
{Gobal Bsetup}
Gx:=ExtFml("GVf.GetVar","Gx"); y:=5/100;
EMA:=Mov(C,Gx,E); UB:=Mov(C,Gx,S)*(1+y); LB:=Mov(C,Gx,S)*(1-y); lta:=Mov(C,Gx*5, S); {Long term average}
I am also having diffculty understand the idea "Before calling a global variable from the GlobalVar DLL (or any copy of it by another name) that variable must be populated with the correct data array values". In your example you have variable Eq, I don't understant what variable I would use in my case.
Gregor
|