logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
henry1224  
#1 Posted : Saturday, April 23, 2005 3:31:08 PM(UTC)
henry1224

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)
Indicator Balance of power THL:=If(H-L=0,.00001,H-L); {Reward Based on the Open} BuRBoO:=(H-O)/(THL); BeRBoO:=(O-L)/(THL); {Reward Based on the Close} BuRBoC:=(C-L)/(THL); BeRBoC:=(H-C)/(THL); {Reward Based on the Open-Close} BuRBoOC:=If(C>O,(C-O)/(THL),0); BeRBoOC:=If(C>O,0,(O-C)/(THL)); BOP:=(BuRBoO+BuRBoC+BuRBoOC)/3 - (BeRBoO+BeRBoC+BeRBoOC)/3; Sig:=Mov(Bop,14,S); Sig; BOP; Expert you will need the PowerPivots Plus Add-on for this expert to work Highlights Long TD:=ExtFml("PowerPivots.TrendDirection",1,2); THL:=If(H-L=0,.00001,H-L); {Reward Based on the Open} BuRBoO:=(H-O)/(THL); BeRBoO:=(O-L)/(THL); {Reward Based on the Close} BuRBoC:=(C-L)/(THL); BeRBoC:=(H-C)/(THL); {Reward Based on the Open-Close} BuRBoOC:=If(C>O,(C-O)/(THL),0); BeRBoOC:=If(C>O,0,(O-C)/(THL)); BOP:=(BuRBoO+BuRBoC+BuRBoOC)/3 - (BeRBoO+BeRBoC+BeRBoOC)/3; Sig:=Mov(Bop,14,S); A:=If(Sig>0 AND TD>0,-1,If(Sig<0 AND TD<0,1,0)); A=-1 Short TD:=ExtFml("PowerPivots.TrendDirection",1,2); THL:=If(H-L=0,.00001,H-L); {Reward Based on the Open} BuRBoO:=(H-O)/(THL); BeRBoO:=(O-L)/(THL); {Reward Based on the Close} BuRBoC:=(C-L)/(THL); BeRBoC:=(H-C)/(THL); {Reward Based on the Open-Close} BuRBoOC:=If(C>O,(C-O)/(THL),0); BeRBoOC:=If(C>O,0,(O-C)/(THL)); BOP:=(BuRBoO+BuRBoC+BuRBoOC)/3 - (BeRBoO+BeRBoC+BeRBoOC)/3; Sig:=Mov(Bop,14,S); A:=If(Sig>0 AND TD>0,-1,If(Sig<0 AND TD<0,1,0)); A=1 Out TD:=ExtFml("PowerPivots.TrendDirection",1,2); THL:=If(H-L=0,.00001,H-L); {Reward Based on the Open} BuRBoO:=(H-O)/(THL); BeRBoO:=(O-L)/(THL); {Reward Based on the Close} BuRBoC:=(C-L)/(THL); BeRBoC:=(H-C)/(THL); {Reward Based on the Open-Close} BuRBoOC:=If(C>O,(C-O)/(THL),0); BeRBoOC:=If(C>O,0,(O-C)/(THL)); BOP:=(BuRBoO+BuRBoC+BuRBoOC)/3 - (BeRBoO+BeRBoC+BeRBoOC)/3; Sig:=Mov(Bop,14,S); A:=If(Sig>0 AND TD>0,-1,If(Sig<0 AND TD<0,1,0)); A=0 Symbols Long Entry TD:=ExtFml("PowerPivots.TrendDirection",1,2); THL:=If(H-L=0,.00001,H-L); {Reward Based on the Open} BuRBoO:=(H-O)/(THL); BeRBoO:=(O-L)/(THL); {Reward Based on the Close} BuRBoC:=(C-L)/(THL); BeRBoC:=(H-C)/(THL); {Reward Based on the Open-Close} BuRBoOC:=If(C>O,(C-O)/(THL),0); BeRBoOC:=If(C>O,0,(O-C)/(THL)); BOP:=(BuRBoO+BuRBoC+BuRBoOC)/3 - (BeRBoO+BeRBoC+BeRBoOC)/3; Sig:=Mov(Bop,14,S); A:=If(Sig>0 AND TD>0,-1,If(Sig<0 AND TD<0,1,0)); A=-1 AND Ref(A,-1)>-1 Short Entry TD:=ExtFml("PowerPivots.TrendDirection",1,2); THL:=If(H-L=0,.00001,H-L); {Reward Based on the Open} BuRBoO:=(H-O)/(THL); BeRBoO:=(O-L)/(THL); {Reward Based on the Close} BuRBoC:=(C-L)/(THL); BeRBoC:=(H-C)/(THL); {Reward Based on the Open-Close} BuRBoOC:=If(C>O,(C-O)/(THL),0); BeRBoOC:=If(C>O,0,(O-C)/(THL)); BOP:=(BuRBoO+BuRBoC+BuRBoOC)/3 - (BeRBoO+BeRBoC+BeRBoOC)/3; Sig:=Mov(Bop,14,S); A:=If(Sig>0 AND TD>0,-1,If(Sig<0 AND TD<0,1,0)); A=1 AND Ref(A,-1)<1 Long Exit TD:=ExtFml("PowerPivots.TrendDirection",1,2); THL:=If(H-L=0,.00001,H-L); {Reward Based on the Open} BuRBoO:=(H-O)/(THL); BeRBoO:=(O-L)/(THL); {Reward Based on the Close} BuRBoC:=(C-L)/(THL); BeRBoC:=(H-C)/(THL); {Reward Based on the Open-Close} BuRBoOC:=If(C>O,(C-O)/(THL),0); BeRBoOC:=If(C>O,0,(O-C)/(THL)); BOP:=(BuRBoO+BuRBoC+BuRBoOC)/3 - (BeRBoO+BeRBoC+BeRBoOC)/3; Sig:=Mov(Bop,14,S); A:=If(Sig>0 AND TD>0,-1,If(Sig<0 AND TD<0,1,0)); A=0 AND Ref(A,-1)=-1 Short Exit TD:=ExtFml("PowerPivots.TrendDirection",1,2); THL:=If(H-L=0,.00001,H-L); {Reward Based on the Open} BuRBoO:=(H-O)/(THL); BeRBoO:=(O-L)/(THL); {Reward Based on the Close} BuRBoC:=(C-L)/(THL); BeRBoC:=(H-C)/(THL); {Reward Based on the Open-Close} BuRBoOC:=If(C>O,(C-O)/(THL),0); BeRBoOC:=If(C>O,0,(O-C)/(THL)); BOP:=(BuRBoO+BuRBoC+BuRBoOC)/3 - (BeRBoO+BeRBoC+BeRBoOC)/3; Sig:=Mov(Bop,14,S); A:=If(Sig>0 AND TD>0,-1,If(Sig<0 AND TD<0,1,0)); A=0 AND Ref(A,-1)=1
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.