Rank: Advanced Member
Groups: Registered, Registered Users Joined: 1/1/2006(UTC) Posts: 39
|
henry1224 wrote:
Dear FX,
Try this on the daily chart
TD:=ExtFml("PowerPivots.TrendDirection",1,2);
Long:=Sum(TD>0,2)>1;
Short:=Sum(TD<0,2)>1;
Long-Short
another version
TD1:=ExtFml("PowerPivots.TrendDirection",1,1);
TD2:=ExtFml("PowerPivots.TrendDirection",2,1);
TD3:=ExtFml("PowerPivots.TrendDirection",3,1);
TD4:=ExtFml("PowerPivots.TrendDirection",4,1);
TD5:=ExtFml("PowerPivots.TrendDirection",1,2);
Long:=(Sum(TD1>0,2)>1)+(Sum(TD2>0,2)>1)+(Sum(TD3>0,2)>1)+(Sum(TD4>0,2)>1)+(Sum(TD5>0,2)>1);
Short:=(Sum(TD1<0,2)>1)+(Sum(TD2<0,2)>1)+(Sum(TD3<0,2)>1)+(Sum(TD4<0,2)>1)+(Sum(TD5<0,2)>1);
Long-Short;
Henry,
I tried your solution; however, I got just as sensitive results by including only the following instruction (please see previous post for chart results):
Longs: Fml( "Pivot Points TD 1 1 Weekly Most sensitive") > 0
Shorts: Fml( "Pivot Points TD 1 1 Weekly Most sensitive") < 0
where the formula stands for the following:
{TD 1 2 thru TD 4 2 are based on Weekly Pivots so when plotted on daily charts they will not change as frequently as Daily Pivots}
TD11:= ExtFml("PowerPivots.TrendDirection",1,1);
TD11;
I appear to have a one bar delay (which is not a very good thing in forex). I am trying to figure out what to do at this stage. Any suggestions?
Regards,
FXLearning
|