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

Notification

Icon
Error

Options
Go to last post Go to first unread
KTP2  
#1 Posted : Tuesday, November 11, 2008 4:37:52 PM(UTC)
KTP2

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 2/2/2007(UTC)
Posts: 367

Was thanked: 1 time(s) in 1 post(s)

To create the "Trade Against the Gap" system by Stephane Reverre in MetaStock 6.52 or higher, select System Tester from the Tools menu, click New and enter the following code:

Name: Trade Against the Gap

Enter long:
     GapLong := 3;
     GapShort := 3;
     Gap := 100*(CLOSE-Ref(CLOSE,-1))/Ref(CLOSE,-1);

     Gap <= -GapLong

Close long:
     GapLong := 3;
     GapShort := 3;
     Gap := 100*(CLOSE-Ref(CLOSE,-1))/Ref(CLOSE,-1);

     BarsSince(Gap <= -GapLong) = 1

Enter short:
     GapLong := 3;
     GapShort := 3;
     Gap := 100*(CLOSE-Ref(CLOSE,-1))/Ref(CLOSE,-1);

     Gap >= GapShort

Close short:
     GapLong := 3;
     GapShort := 3;
     Gap := 100*(CLOSE-Ref(CLOSE,-1))/Ref(CLOSE,-1);

     BarsSince(Gap >= GapShort) = 2

Click OK, then click Options, on the Testing page under Trade Price set both the Entry and Exit Price to Close and set both Delays to 0.

Users browsing this topic
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.