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)
|
Highlights Tab
Long
Period:=25;
A:=TSF(C,period) - LinearReg(C,period);
B:=Ref(A,-2);
A1:=TSF(C,period*2) - LinearReg(C,period*2);
B1:=Ref(A1,-2);
Buy:=Cross(A,A1);
Sell:=Cross(A1,A);
i:=Cum(Buy>-1 AND Sell>-1)=1;
x:=BarsSince(i OR Buy)<=BarsSince(i OR Sell)=0;
X=0
Short
Period:=25;
A:=TSF(C,period) - LinearReg(C,period);
B:=Ref(A,-2);
A1:=TSF(C,period*2) - LinearReg(C,period*2);
B1:=Ref(A1,-2);
Buy:=Cross(A,A1);
Sell:=Cross(A1,A);
i:=Cum(Buy>-1 AND Sell>-1)=1;
x:=BarsSince(i OR Buy)>=BarsSince(i OR Sell)=0;
X=0
Symbol tab
long
Period:=25;
A:=TSF(C,period) - LinearReg(C,period);
B:=Ref(A,-2);
A1:=TSF(C,period*2) - LinearReg(C,period*2);
B1:=Ref(A1,-2);
Buy:=Cross(A,A1);
Sell:=Cross(A1,A);
i:=Cum(Buy>-1 AND Sell>-1)=1;
x:=BarsSince(i OR Buy)<=BarsSince(i OR Sell)=0;
X=0 AND Ref(X,-1)>0
Short
Period:=25;
A:=TSF(C,period) - LinearReg(C,period);
B:=Ref(A,-2);
A1:=TSF(C,period*2) - LinearReg(C,period*2);
B1:=Ref(A1,-2);
Buy:=Cross(A,A1);
Sell:=Cross(A1,A);
i:=Cum(Buy>-1 AND Sell>-1)=1;
x:=BarsSince(i OR Buy)>=BarsSince(i OR Sell)=0;
X=0 AND Ref(X,-1)>0
|