Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
Khandelia, You've got a few posts on the forum asking about T-Fade and the PP+ addon. I tripped over some code in my archives (from 2007) including what I think might be the original(?) code for T-Fade. I have no idea where it came from, but if I run the code side-by-side with the "proper" version, the results are identical. The original code was very poorly written, so I cleaned it up to be able to see more clearly what is going on and where errors might be caused, in short, the "smart" part of the code goes like this: Code:
lP:=ExtFml("PowerPivots.NthPivotPrice",-2,0,1);
hP:=ExtFml("PowerPivots.NthPivotPrice", 2,0,1);
LE:=Cross(C,ExtFml("PowerPivots.TimeCapsules",L,2,1));
SE:=Cross(ExtFml("PowerPivots.TimeCapsules",H,2,1),C);
LX:=C<lP;
SX:=C>hP;
tr:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!");
season:=if(tr>0,100100,if(tr<0,-100100,0));
The rest of the expert advisor commentary, highlights and symbols deal with the signals generated by 'tr' and 'season'; the stop values are given by 'hp' and 'lp' If you've got more questions on how these functions, ask Henry as he's the resident "expert" wabbit [:D]
|