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 : Wednesday, November 14, 2012 6:04:18 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)
On another forum, someone asked about using the MACD w Bollinger bands as a system

here is the long only chart

UserPostedImage

the code

Code:


A:=Mov(C,12,S)-Mov(C,26,S);
A2:=Mov(A,5,S);
BBT:=BBandTop(A2,10,S,1);
BBB:=BBandBot(A2,10,S,1);
Sys:=If(A>BBT,1,If(A<BBB,-1,0));
entry:= {<-- Do not change entry parameter name}
 Sys=1 AND Ref(Sys,-1)<>1;

exit:= {<-- Do not change exit parameter name}
 Sys<>1 AND Ref(Sys,-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.