Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
PR:=Input("Enter Periods for W%R",1,100,14);
PB:=Input("Enter Periods for BUY",1,100,20);
PS:=Input("Enter Periods for SELL",1,100,20);
{CONVERT W%R TO +/-50 OSC}
DWR:=(Mov(WillR(PR),2,S))+50;
UpZone:=Mov(DWR,PS,S)+(1.3185 *Stdev(DWR,PS));
LwZone:=Mov(DWR,PB,S)-(1.3185 *Stdev(DWR,PB));
MidZone:=(UpZone + LwZone)/2;
LE:= Cross(C,LwZone);
LX:= Cross(UpZone,C);
SE:= Cross(UpZone,C);
SX:= Cross(C,LwZone);
B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!");
B>0 AND Ref(B,-1)<=0
You cannot use input functions in experts and systems or explorations, if you use a fml function of an indicator that has an input function it will then use the default value to calculate
This should work
PR:=14;
PB:=20;
PS:=20;
{CONVERT W%R TO +/-50 OSC}
DWR:=(Mov(WillR(PR),2,S))+50;
UpZone:=Mov(DWR,PS,S)+(1.3185 *Stdev(DWR,PS));
LwZone:=Mov(DWR,PB,S)-(1.3185 *Stdev(DWR,PB));
MidZone:=(UpZone + LwZone)/2;
LE:= Cross(C,LwZone);
LX:= Cross(UpZone,C);
SE:= Cross(UpZone,C);
SX:= Cross(C,LwZone);
B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!");
B>0 AND Ref(B,-1)<=0
|